REFACTOR "STASH" (nowhere near working btw)
This commit is contained in:
parent
8dfe3b2f25
commit
ab3942d3b5
25 changed files with 1021 additions and 845 deletions
53
src/shared.c
Normal file
53
src/shared.c
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
#define IGNORE_EXTERNS
|
||||
#include "shared.h"
|
||||
|
||||
/* variables */
|
||||
int locked;
|
||||
void *exclusive_focus;
|
||||
struct wl_event_loop *event_loop;
|
||||
struct wlr_backend *backend;
|
||||
struct wlr_scene *scene;
|
||||
struct wlr_scene_tree *layers[NUM_LAYERS];
|
||||
struct wlr_scene_tree *drag_icon;
|
||||
/* Map from ZWLR_LAYER_SHELL_* constants to Lyr* enum */
|
||||
const int layermap[] = {LyrBg, LyrBottom, LyrTop, LyrOverlay};
|
||||
struct wlr_renderer *drw;
|
||||
struct wlr_allocator *alloc;
|
||||
struct wlr_compositor *compositor;
|
||||
struct wlr_session *session;
|
||||
|
||||
struct wlr_xdg_shell *xdg_shell;
|
||||
struct wlr_xdg_activation_v1 *activation;
|
||||
struct wlr_xdg_decoration_manager_v1 *xdg_decoration_mgr;
|
||||
struct wl_list clients; /* tiling order */
|
||||
struct wl_list fstack; /* focus order */
|
||||
struct wlr_idle_notifier_v1 *idle_notifier;
|
||||
struct wlr_idle_inhibit_manager_v1 *idle_inhibit_mgr;
|
||||
struct wlr_layer_shell_v1 *layer_shell;
|
||||
struct wlr_output_manager_v1 *output_mgr;
|
||||
struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr;
|
||||
struct wlr_virtual_pointer_manager_v1 *virtual_pointer_mgr;
|
||||
struct wlr_cursor_shape_manager_v1 *cursor_shape_mgr;
|
||||
struct wlr_output_power_manager_v1 *power_mgr;
|
||||
|
||||
struct wlr_pointer_constraints_v1 *pointer_constraints;
|
||||
struct wlr_relative_pointer_manager_v1 *relative_pointer_mgr;
|
||||
struct wlr_pointer_constraint_v1 *active_constraint;
|
||||
|
||||
struct wlr_cursor *cursor;
|
||||
struct wlr_xcursor_manager *cursor_mgr;
|
||||
|
||||
struct wlr_scene_rect *root_bg;
|
||||
struct wlr_session_lock_manager_v1 *session_lock_mgr;
|
||||
struct wlr_scene_rect *locked_bg;
|
||||
struct wlr_session_lock_v1 *cur_lock;
|
||||
|
||||
struct wlr_seat *seat;
|
||||
unsigned int cursor_mode;
|
||||
Client *grabc;
|
||||
int grabcx, grabcy; /* client-relative */
|
||||
|
||||
struct wlr_output_layout *output_layout;
|
||||
struct wlr_box sgeom;
|
||||
struct wl_list mons;
|
||||
Monitor *selmon;
|
||||
Loading…
Add table
Add a link
Reference in a new issue