i3
data.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * include/data.h: This file defines all data structures used by i3
8  *
9  */
10 #pragma once
11 
12 #define SN_API_NOT_YET_FROZEN 1
13 #include <libsn/sn-launcher.h>
14 
15 #include <xcb/randr.h>
16 #include <pcre.h>
17 #include <sys/time.h>
18 
19 #include "queue.h"
20 
21 /*
22  * To get the big concept: There are helper structures like struct
23  * Workspace_Assignment. Every struct which is also defined as type (see
24  * forward definitions) is considered to be a major structure, thus important.
25  *
26  * The following things are all stored in a 'Con', from very high level (the
27  * biggest Cons) to very small (a single window):
28  *
29  * 1) X11 root window (as big as all your outputs combined)
30  * 2) output (like LVDS1)
31  * 3) content container, dockarea containers
32  * 4) workspaces
33  * 5) split containers
34  * ... (you can arbitrarily nest split containers)
35  * 6) X11 window containers
36  *
37  */
38 
39 /* Forward definitions */
40 typedef struct Binding Binding;
41 typedef struct Rect Rect;
42 typedef struct xoutput Output;
43 typedef struct Con Con;
44 typedef struct Match Match;
45 typedef struct Assignment Assignment;
46 typedef struct Window i3Window;
47 typedef struct gaps_t gaps_t;
48 typedef struct mark_t mark_t;
49 
50 /******************************************************************************
51  * Helper types
52  *****************************************************************************/
53 typedef enum { D_LEFT,
57 typedef enum { NO_ORIENTATION = 0,
60 typedef enum { BEFORE,
62 typedef enum { BS_NORMAL = 0,
63  BS_NONE = 1,
65 
68 typedef enum { DONT_KILL_WINDOW = 0,
71 
73 typedef enum { ADJ_NONE = 0,
78 
79 typedef enum { SMART_BORDERS_OFF,
82 
83 typedef enum { SMART_GAPS_OFF,
86 
87 typedef enum { HEBM_NONE = ADJ_NONE,
91  HEBM_SMART = (1 << 5),
93 
94 typedef enum { MM_REPLACE,
96 
100 typedef enum {
103  L_TABBED = 2,
105  L_OUTPUT = 4,
106  L_SPLITV = 5,
107  L_SPLITH = 6
109 
113 typedef enum {
115  B_MOUSE = 1
117 
121 typedef enum {
126  I3_XKB_GROUP_MASK_4 = (1 << 3)
128 
135 typedef uint32_t i3_event_state_mask_t;
136 
140 typedef enum {
144 
145 struct gaps_t {
146  int inner;
147  int top;
148  int right;
149  int bottom;
150  int left;
151 };
152 
156 typedef enum {
162 
173 struct Rect {
174  uint32_t x;
175  uint32_t y;
176  uint32_t width;
177  uint32_t height;
178 };
179 
185 struct reservedpx {
186  uint32_t left;
187  uint32_t right;
188  uint32_t top;
189  uint32_t bottom;
190 };
191 
197 struct width_height {
198  uint32_t w;
199  uint32_t h;
200 };
201 
211  struct width_height con_rect;
217 };
218 
224  char *name;
225  char *output;
227 
229 };
230 
231 struct Ignore_Event {
232  int sequence;
234  time_t added;
235 
236  SLIST_ENTRY(Ignore_Event) ignore_events;
237 };
238 
246  char *id;
248  char *workspace;
250  SnLauncherContext *context;
253  time_t delete_at;
254 
256 };
257 
267 struct regex {
268  char *pattern;
269  pcre *regex;
270  pcre_extra *extra;
271 };
272 
279  xcb_keycode_t keycode;
282 };
283 
284 /******************************************************************************
285  * Major types
286  *****************************************************************************/
287 
294 struct Binding {
295  /* The type of input this binding is for. (Mouse bindings are not yet
296  * implemented. All bindings are currently assumed to be keyboard bindings.) */
298 
301  enum {
302  /* This binding will only be executed upon KeyPress events */
304  /* This binding will be executed either upon a KeyRelease event, or… */
306  /* …upon a KeyRelease event, even if the modifiers don’t match. This
307  * state is triggered from get_binding() when the corresponding
308  * KeyPress (!) happens, so that users can release the modifier keys
309  * before releasing the actual key. */
312 
315  bool border;
316 
321 
325 
327  uint32_t keycode;
328 
333 
337  char *symbol;
338 
342  TAILQ_HEAD(keycodes_head, Binding_Keycode) keycodes_head;
343 
345  char *command;
346 
348 };
349 
357 struct Autostart {
359  char *command;
365 };
366 
367 struct output_name {
368  char *name;
370 };
371 
379 struct xoutput {
381  xcb_randr_output_t id;
382 
385  bool active;
386 
389  bool changed;
391  bool primary;
392 
396  SLIST_HEAD(names_head, output_name) names_head;
397 
400 
403 
405 };
406 
412 struct Window {
413  xcb_window_t id;
414 
417  xcb_window_t leader;
418  xcb_window_t transient_for;
419 
422  uint32_t nr_assignments;
424 
425  char *class_class;
427 
430 
434  char *role;
435 
438 
441 
444 
448 
450  xcb_atom_t window_type;
451 
453  uint32_t wm_desktop;
454 
456  enum { W_NODOCK = 0,
459 
461  struct timeval urgent;
462 
464  struct reservedpx reserved;
465 
467  uint16_t depth;
468 
469  /* the wanted size of the window, used in combination with size
470  * increments (see below). */
473 
474  /* minimum increment size specified for the window (in pixels) */
477 
478  /* Minimum size specified for the window. */
481 
482  /* Maximum size specified for the window. */
485 
486  /* aspect ratio from WM_NORMAL_HINTS (MPlayer uses this for example) */
489 
491  bool shaped;
494 
495  /* Time when the window became managed. Used to determine whether a window
496  * should be swallowed after initial management. */
498 
499  /* The window has been swallowed. */
500  bool swallowed;
501 };
502 
511 struct Match {
512  /* Set if a criterion was specified incorrectly. */
513  char *error;
514 
515  struct regex *title;
517  struct regex *class;
518  struct regex *instance;
519  struct regex *mark;
521  struct regex *workspace;
522  struct regex *hexid;
523  xcb_atom_t window_type;
524  enum {
526  U_LATEST = 0,
527  U_OLDEST = 1
529  enum {
531  M_NODOCK = 0,
534  M_DOCK_BOTTOM = 3
535  } dock;
536  xcb_window_t id;
537  enum { WM_ANY = 0,
545 
546  /* Where the window looking for a match should be inserted:
547  *
548  * M_HERE = the matched container will be replaced by the window
549  * (layout saving)
550  * M_ASSIGN_WS = the matched container will be inserted in the target_ws.
551  * M_BELOW = the window will be inserted as a child of the matched container
552  * (dockareas)
553  *
554  */
555  enum { M_HERE = 0,
558 
559  TAILQ_ENTRY(Match) matches;
560 
561  /* Whether this match was generated when restarting i3 inplace.
562  * Leads to not setting focus when managing a new window, because the old
563  * focus stack should be restored. */
565 };
566 
575 struct Assignment {
587  enum {
588  A_ANY = 0,
589  A_COMMAND = (1 << 0),
590  A_TO_WORKSPACE = (1 << 1),
591  A_NO_FOCUS = (1 << 2),
593  A_TO_OUTPUT = (1 << 4)
594  } type;
595 
598 
600  union {
601  char *command;
602  char *workspace;
603  char *output;
604  } dest;
605 
607 };
608 
610 typedef enum { CF_NONE = 0,
613 
614 struct mark_t {
615  char *name;
616 
618 };
619 
624 struct Con {
625  bool mapped;
626 
627  /* Should this container be marked urgent? This gets set when the window
628  * inside this container (if any) sets the urgency hint, for example. */
629  bool urgent;
630 
636  uint8_t ignore_unmap;
637 
638  /* The surface used for the frame window. */
642 
643  enum {
644  CT_ROOT = 0,
646  CT_CON = 2,
649  CT_DOCKAREA = 5
650  } type;
651 
654  int num;
655 
658 
659  struct Con *parent;
660 
661  /* The position and size for this con. These coordinates are absolute. Note
662  * that the rect of a container does not include the decoration. */
663  struct Rect rect;
664  /* The position and size of the actual client window. These coordinates are
665  * relative to the container's rect. */
666  struct Rect window_rect;
667  /* The position and size of the container's decoration. These coordinates
668  * are relative to the container's parent's rect. */
669  struct Rect deco_rect;
671  struct Rect geometry;
672 
673  char *name;
674 
677 
678  /* a sticky-group is an identifier which bundles several containers to a
679  * group. The contents are shared between all of them, that is they are
680  * displayed on whichever of the containers is currently visible */
682 
683  /* user-definable marks to jump to this container later */
684  TAILQ_HEAD(marks_head, mark_t) marks_head;
685  /* cached to decide whether a redraw is needed */
687 
688  double percent;
689 
690  /* the x11 border pixel attribute */
693 
694  struct Window *window;
695 
696  /* timer used for disabling urgency */
697  struct ev_timer *urgency_timer;
698 
701 
702  /* Only workspace-containers can have floating clients */
703  TAILQ_HEAD(floating_head, Con) floating_head;
704 
705  TAILQ_HEAD(nodes_head, Con) nodes_head;
706  TAILQ_HEAD(focus_head, Con) focus_head;
707 
708  TAILQ_HEAD(swallow_head, Match) swallow_head;
709 
711 
712  /* Whether this window should stick to the glass. This corresponds to
713  * the _NET_WM_STATE_STICKY atom and will only be respected if the
714  * window is floating. */
715  bool sticky;
716 
717  /* layout is the layout of this container: one of split[v|h], stacked or
718  * tabbed. Special containers in the tree (above workspaces) have special
719  * layouts like dockarea or output.
720  *
721  * last_split_layout is one of splitv or splith to support the old "layout
722  * default" command which by now should be "layout splitv" or "layout
723  * splith" explicitly.
724  *
725  * workspace_layout is only for type == CT_WORKSPACE cons. When you change
726  * the layout of a workspace without any children, i3 cannot just set the
727  * layout (because workspaces need to be splitv/splith to allow focus
728  * parent and opening new containers). Instead, it stores the requested
729  * layout in workspace_layout and creates a new split container with that
730  * layout whenever a new container is attached to the workspace. */
739  enum {
743  FLOATING_USER_ON = 3
745 
746  TAILQ_ENTRY(Con) nodes;
749  TAILQ_ENTRY(Con) floating_windows;
750 
752  void (*on_remove_child)(Con *);
753 
754  enum {
755  /* Not a scratchpad window. */
757 
758  /* Just moved to scratchpad, not resized by the user yet.
759  * Window will be auto-centered and sized appropriately. */
761 
762  /* The user changed position/size of the scratchpad window. */
765 
766  /* The ID of this container before restarting. Necessary to correctly
767  * interpret back-references in the JSON (such as the focus stack). */
768  int old_id;
769 
770  /* Depth of the container window */
771  uint16_t depth;
772 
773  /* The colormap for this con if a custom one is used. */
774  xcb_colormap_t colormap;
775 };
struct pending_marks * marks
struct autostarts_always_head autostarts_always
Definition: main.c:88
struct autostarts_head autostarts
Definition: main.c:85
struct assignments_head assignments
Definition: main.c:91
struct ws_assignments_head ws_assignments
Definition: main.c:95
struct bindings_head * bindings
Definition: main.c:81
struct outputs_head outputs
Definition: randr.c:22
struct Con * focused
Definition: tree.c:13
struct all_cons_head all_cons
Definition: tree.c:15
hide_edge_borders_mode_t
Definition: data.h:87
@ HEBM_VERTICAL
Definition: data.h:88
@ HEBM_SMART_NO_GAPS
Definition: data.h:92
@ HEBM_HORIZONTAL
Definition: data.h:89
@ HEBM_BOTH
Definition: data.h:90
@ HEBM_SMART
Definition: data.h:91
@ HEBM_NONE
Definition: data.h:87
smart_gaps_t
Definition: data.h:83
@ SMART_GAPS_INVERSE_OUTER
Definition: data.h:85
@ SMART_GAPS_ON
Definition: data.h:84
@ SMART_GAPS_OFF
Definition: data.h:83
i3_xkb_group_mask_t
Bitmask for matching XCB_XKB_GROUP_1 to XCB_XKB_GROUP_4.
Definition: data.h:121
@ I3_XKB_GROUP_MASK_2
Definition: data.h:124
@ I3_XKB_GROUP_MASK_3
Definition: data.h:125
@ I3_XKB_GROUP_MASK_4
Definition: data.h:126
@ I3_XKB_GROUP_MASK_1
Definition: data.h:123
@ I3_XKB_GROUP_MASK_ANY
Definition: data.h:122
smart_borders_t
Definition: data.h:79
@ SMART_BORDERS_ON
Definition: data.h:80
@ SMART_BORDERS_NO_GAPS
Definition: data.h:81
@ SMART_BORDERS_OFF
Definition: data.h:79
position_t
Definition: data.h:60
@ AFTER
Definition: data.h:61
@ BEFORE
Definition: data.h:60
uint32_t i3_event_state_mask_t
The lower 16 bits contain a xcb_key_but_mask_t, the higher 16 bits contain an i3_xkb_group_mask_t.
Definition: data.h:135
warping_t
Mouse pointer warping modes.
Definition: data.h:140
@ POINTER_WARPING_OUTPUT
Definition: data.h:141
@ POINTER_WARPING_NONE
Definition: data.h:142
layout_t
Container layouts.
Definition: data.h:100
@ L_STACKED
Definition: data.h:102
@ L_TABBED
Definition: data.h:103
@ L_DOCKAREA
Definition: data.h:104
@ L_OUTPUT
Definition: data.h:105
@ L_SPLITH
Definition: data.h:107
@ L_SPLITV
Definition: data.h:106
@ L_DEFAULT
Definition: data.h:101
mark_mode_t
Definition: data.h:94
@ MM_ADD
Definition: data.h:95
@ MM_REPLACE
Definition: data.h:94
focus_wrapping_t
Focus wrapping modes.
Definition: data.h:156
@ FOCUS_WRAPPING_OFF
Definition: data.h:157
@ FOCUS_WRAPPING_ON
Definition: data.h:158
@ FOCUS_WRAPPING_FORCE
Definition: data.h:159
@ FOCUS_WRAPPING_WORKSPACE
Definition: data.h:160
orientation_t
Definition: data.h:57
@ VERT
Definition: data.h:59
@ HORIZ
Definition: data.h:58
@ NO_ORIENTATION
Definition: data.h:57
adjacent_t
describes if the window is adjacent to the output (physical screen) edges.
Definition: data.h:73
@ ADJ_LEFT_SCREEN_EDGE
Definition: data.h:74
@ ADJ_LOWER_SCREEN_EDGE
Definition: data.h:77
@ ADJ_RIGHT_SCREEN_EDGE
Definition: data.h:75
@ ADJ_UPPER_SCREEN_EDGE
Definition: data.h:76
@ ADJ_NONE
Definition: data.h:73
fullscreen_mode_t
Fullscreen modes.
Definition: data.h:610
@ CF_OUTPUT
Definition: data.h:611
@ CF_GLOBAL
Definition: data.h:612
@ CF_NONE
Definition: data.h:610
border_style_t
Definition: data.h:62
@ BS_NONE
Definition: data.h:63
@ BS_PIXEL
Definition: data.h:64
@ BS_NORMAL
Definition: data.h:62
input_type_t
Binding input types.
Definition: data.h:113
@ B_KEYBOARD
Definition: data.h:114
@ B_MOUSE
Definition: data.h:115
kill_window_t
parameter to specify whether tree_close_internal() and x_window_kill() should kill only this specific...
Definition: data.h:68
@ KILL_CLIENT
Definition: data.h:70
@ KILL_WINDOW
Definition: data.h:69
@ DONT_KILL_WINDOW
Definition: data.h:68
direction_t
Definition: data.h:53
@ D_RIGHT
Definition: data.h:54
@ D_LEFT
Definition: data.h:53
@ D_UP
Definition: data.h:55
@ D_DOWN
Definition: data.h:56
struct _i3String i3String
Opaque data structure for storing strings.
Definition: libi3.h:48
Part of the struct Config.
Definition: configuration.h:51
Definition: data.h:145
int inner
Definition: data.h:146
int left
Definition: data.h:150
int right
Definition: data.h:148
int top
Definition: data.h:147
int bottom
Definition: data.h:149
Stores a rectangle, for example the size of a window, the child window etc.
Definition: data.h:173
uint32_t height
Definition: data.h:177
uint32_t x
Definition: data.h:174
uint32_t y
Definition: data.h:175
uint32_t width
Definition: data.h:176
Stores the reserved pixels on each screen edge read from a _NET_WM_STRUT_PARTIAL.
Definition: data.h:185
uint32_t top
Definition: data.h:188
uint32_t bottom
Definition: data.h:189
uint32_t right
Definition: data.h:187
uint32_t left
Definition: data.h:186
Stores a width/height pair, used as part of deco_render_params to check whether the rects width/heigh...
Definition: data.h:197
uint32_t w
Definition: data.h:198
uint32_t h
Definition: data.h:199
Stores the parameters for rendering a window decoration.
Definition: data.h:208
int border_style
Definition: data.h:210
struct Colortriple * color
Definition: data.h:209
bool con_is_leaf
Definition: data.h:216
color_t background
Definition: data.h:214
layout_t parent_layout
Definition: data.h:215
struct width_height con_rect
Definition: data.h:211
Rect con_deco_rect
Definition: data.h:213
struct width_height con_window_rect
Definition: data.h:212
Stores which workspace (by name or number) goes to which output and its gaps config.
Definition: data.h:223
TAILQ_ENTRY(Workspace_Assignment) ws_assignments
int sequence
Definition: data.h:232
SLIST_ENTRY(Ignore_Event) ignore_events
time_t added
Definition: data.h:234
int response_type
Definition: data.h:233
Stores internal information about a startup sequence, like the workspace it was initiated on.
Definition: data.h:244
TAILQ_ENTRY(Startup_Sequence) sequences
char * id
startup ID for this sequence, generated by libstartup-notification
Definition: data.h:246
time_t delete_at
time at which this sequence should be deleted (after it was marked as completed)
Definition: data.h:253
char * workspace
workspace on which this startup was initiated
Definition: data.h:248
SnLauncherContext * context
libstartup-notification context for this launch
Definition: data.h:250
Regular expression wrapper.
Definition: data.h:267
pcre_extra * extra
Definition: data.h:270
pcre * regex
Definition: data.h:269
char * pattern
Definition: data.h:268
Stores a resolved keycode (from a keysym), including the modifier mask.
Definition: data.h:278
i3_event_state_mask_t modifiers
Definition: data.h:280
xcb_keycode_t keycode
Definition: data.h:279
TAILQ_ENTRY(Binding_Keycode) keycodes
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
Definition: data.h:294
enum Binding::@12 release
If true, the binding should be executed upon a KeyRelease event, not a KeyPress (the default).
bool whole_window
If this is true for a mouse binding, the binding should be executed when the button is pressed over a...
Definition: data.h:320
char * command
Command, like in command mode.
Definition: data.h:345
bool border
If this is true for a mouse binding, the binding should be executed when the button is pressed over t...
Definition: data.h:315
uint32_t keycode
Keycode to bind.
Definition: data.h:327
TAILQ_HEAD(keycodes_head, Binding_Keycode) keycodes_head
Only in use if symbol != NULL.
char * symbol
Symbol the user specified in configfile, if any.
Definition: data.h:337
bool exclude_titlebar
If this is true for a mouse binding, the binding should only be executed if the button press was not ...
Definition: data.h:324
TAILQ_ENTRY(Binding) bindings
i3_event_state_mask_t event_state_mask
Bitmask which is applied against event->state for KeyPress and KeyRelease events to determine whether...
Definition: data.h:332
input_type_t input_type
Definition: data.h:297
@ B_UPON_KEYPRESS
Definition: data.h:303
@ B_UPON_KEYRELEASE_IGNORE_MODS
Definition: data.h:310
@ B_UPON_KEYRELEASE
Definition: data.h:305
Holds a command specified by either an:
Definition: data.h:357
TAILQ_ENTRY(Autostart) autostarts
bool no_startup_id
no_startup_id flag for start_application().
Definition: data.h:362
TAILQ_ENTRY(Autostart) autostarts_always
char * command
Command, like in command mode.
Definition: data.h:359
SLIST_ENTRY(output_name) names
char * name
Definition: data.h:368
An Output is a physical output on your graphics driver.
Definition: data.h:379
Con * con
Pointer to the Con which represents this output.
Definition: data.h:399
bool changed
Internal flags, necessary for querying RandR screens (happens in two stages)
Definition: data.h:389
bool to_be_disabled
Definition: data.h:390
bool active
Whether the output is currently active (has a CRTC attached with a valid mode)
Definition: data.h:385
TAILQ_ENTRY(xoutput) outputs
xcb_randr_output_t id
Output id, so that we can requery the output directly later.
Definition: data.h:381
bool primary
Definition: data.h:391
Rect rect
x, y, width, height
Definition: data.h:402
SLIST_HEAD(names_head, output_name) names_head
List of names for the output.
A 'Window' is a type which contains an xcb_window_t and all the related information (hints like _NET_...
Definition: data.h:412
double max_aspect_ratio
Definition: data.h:488
time_t managed_since
Definition: data.h:497
char * class_instance
Definition: data.h:426
bool uses_net_wm_name
Whether the application used _NET_WM_NAME.
Definition: data.h:440
bool input_shaped
The window has a nonrectangular input shape.
Definition: data.h:493
struct timeval urgent
When this window was marked urgent.
Definition: data.h:461
int base_height
Definition: data.h:472
i3String * name
The name of the window.
Definition: data.h:429
int height_increment
Definition: data.h:476
int max_height
Definition: data.h:484
double min_aspect_ratio
Definition: data.h:487
bool name_x_changed
Flag to force re-rendering the decoration upon changes.
Definition: data.h:437
int max_width
Definition: data.h:483
xcb_window_t id
Definition: data.h:413
int min_height
Definition: data.h:480
xcb_atom_t window_type
The _NET_WM_WINDOW_TYPE for this window.
Definition: data.h:450
Assignment ** ran_assignments
Definition: data.h:423
bool doesnt_accept_focus
Whether this window accepts focus.
Definition: data.h:447
bool shaped
The window has a nonrectangular shape.
Definition: data.h:491
int width_increment
Definition: data.h:475
bool needs_take_focus
Whether the application needs to receive WM_TAKE_FOCUS.
Definition: data.h:443
char * class_class
Definition: data.h:425
@ W_DOCK_TOP
Definition: data.h:457
@ W_DOCK_BOTTOM
Definition: data.h:458
@ W_NODOCK
Definition: data.h:456
enum Window::@13 dock
Whether the window says it is a dock window.
xcb_window_t transient_for
Definition: data.h:418
char * role
The WM_WINDOW_ROLE of this window (for example, the pidgin buddy window sets "buddy list").
Definition: data.h:434
uint32_t wm_desktop
The _NET_WM_DESKTOP for this window.
Definition: data.h:453
struct reservedpx reserved
Pixels the window reserves.
Definition: data.h:464
int base_width
Definition: data.h:471
xcb_window_t leader
Holds the xcb_window_t (just an ID) for the leader window (logical parent for toolwindows and similar...
Definition: data.h:417
uint16_t depth
Depth of the window.
Definition: data.h:467
int min_width
Definition: data.h:479
bool swallowed
Definition: data.h:500
uint32_t nr_assignments
Pointers to the Assignments which were already ran for this Window (assignments run only once)
Definition: data.h:422
A "match" is a data structure which acts like a mask or expression to match certain windows or not.
Definition: data.h:511
struct regex * window_role
Definition: data.h:520
xcb_atom_t window_type
Definition: data.h:523
@ WM_FLOATING
Definition: data.h:543
@ WM_TILING_USER
Definition: data.h:539
@ WM_ANY
Definition: data.h:537
@ WM_TILING
Definition: data.h:540
@ WM_TILING_AUTO
Definition: data.h:538
@ WM_FLOATING_AUTO
Definition: data.h:541
@ WM_FLOATING_USER
Definition: data.h:542
struct regex * title
Definition: data.h:515
struct regex * instance
Definition: data.h:518
enum Match::@15 dock
@ U_LATEST
Definition: data.h:526
@ U_DONTCHECK
Definition: data.h:525
@ U_OLDEST
Definition: data.h:527
struct regex * application
Definition: data.h:516
@ M_ASSIGN_WS
Definition: data.h:556
@ M_HERE
Definition: data.h:555
@ M_BELOW
Definition: data.h:557
enum Match::@17 insert_where
struct regex * mark
Definition: data.h:519
struct regex * hexid
Definition: data.h:522
bool restart_mode
Definition: data.h:564
struct regex * workspace
Definition: data.h:521
enum Match::@16 window_mode
TAILQ_ENTRY(Match) matches
@ M_DOCK_BOTTOM
Definition: data.h:534
@ M_DOCK_TOP
Definition: data.h:533
@ M_DONTCHECK
Definition: data.h:530
@ M_NODOCK
Definition: data.h:531
@ M_DOCK_ANY
Definition: data.h:532
xcb_window_t id
Definition: data.h:536
Con * con_id
Definition: data.h:544
enum Match::@14 urgent
char * error
Definition: data.h:513
An Assignment makes specific windows go to a specific workspace/output or run a command for that wind...
Definition: data.h:575
Match match
the criteria to check if a window matches
Definition: data.h:597
@ A_COMMAND
Definition: data.h:589
@ A_TO_WORKSPACE
Definition: data.h:590
@ A_TO_WORKSPACE_NUMBER
Definition: data.h:592
@ A_ANY
Definition: data.h:588
@ A_NO_FOCUS
Definition: data.h:591
@ A_TO_OUTPUT
Definition: data.h:593
char * output
Definition: data.h:603
union Assignment::@19 dest
destination workspace/command/output, depending on the type
char * command
Definition: data.h:601
char * workspace
Definition: data.h:602
enum Assignment::@18 type
type of this assignment:
TAILQ_ENTRY(Assignment) assignments
Definition: data.h:614
char * name
Definition: data.h:615
TAILQ_ENTRY(mark_t) marks
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition: data.h:624
struct Con * parent
Definition: data.h:659
struct Rect deco_rect
Definition: data.h:669
int border_width
Definition: data.h:691
layout_t workspace_layout
Definition: data.h:731
double percent
Definition: data.h:688
TAILQ_ENTRY(Con) all_cons
layout_t last_split_layout
Definition: data.h:731
struct Rect rect
Definition: data.h:663
gaps_t gaps
Only applicable for containers of type CT_WORKSPACE.
Definition: data.h:657
@ SCRATCHPAD_NONE
Definition: data.h:756
@ SCRATCHPAD_CHANGED
Definition: data.h:763
@ SCRATCHPAD_FRESH
Definition: data.h:760
enum Con::@20 type
int current_border_width
Definition: data.h:692
bool sticky
Definition: data.h:715
@ FLOATING_USER_ON
Definition: data.h:743
@ FLOATING_AUTO_ON
Definition: data.h:742
@ FLOATING_USER_OFF
Definition: data.h:741
@ FLOATING_AUTO_OFF
Definition: data.h:740
xcb_colormap_t colormap
Definition: data.h:774
TAILQ_HEAD(floating_head, Con) floating_head
bool pixmap_recreated
Definition: data.h:641
TAILQ_HEAD(nodes_head, Con) nodes_head
enum Con::@21 floating
floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whet...
TAILQ_ENTRY(Con) floating_windows
layout_t layout
Definition: data.h:731
bool mapped
Definition: data.h:625
int num
the workspace number, if this Con is of type CT_WORKSPACE and the workspace is not a named workspace ...
Definition: data.h:654
struct ev_timer * urgency_timer
Definition: data.h:697
@ CT_ROOT
Definition: data.h:644
@ CT_WORKSPACE
Definition: data.h:648
@ CT_CON
Definition: data.h:646
@ CT_FLOATING_CON
Definition: data.h:647
@ CT_OUTPUT
Definition: data.h:645
@ CT_DOCKAREA
Definition: data.h:649
uint8_t ignore_unmap
This counter contains the number of UnmapNotify events for this container (or, more precisely,...
Definition: data.h:636
struct Rect window_rect
Definition: data.h:666
TAILQ_ENTRY(Con) focused
struct Window * window
Definition: data.h:694
int old_id
Definition: data.h:768
enum Con::@22 scratchpad_state
char * title_format
The format with which the window's name should be displayed.
Definition: data.h:676
TAILQ_HEAD(marks_head, mark_t) marks_head
surface_t frame
Definition: data.h:639
border_style_t border_style
Definition: data.h:732
TAILQ_HEAD(focus_head, Con) focus_head
char * name
Definition: data.h:673
struct Rect geometry
the geometry this window requested when getting mapped
Definition: data.h:671
char * sticky_group
Definition: data.h:681
uint16_t depth
Definition: data.h:771
surface_t frame_buffer
Definition: data.h:640
TAILQ_ENTRY(Con) nodes
struct deco_render_params * deco_render_params
Cache for the decoration rendering.
Definition: data.h:700
void(* on_remove_child)(Con *)
callbacks
Definition: data.h:752
bool mark_changed
Definition: data.h:686
TAILQ_HEAD(swallow_head, Match) swallow_head
fullscreen_mode_t fullscreen_mode
Definition: data.h:710
bool urgent
Definition: data.h:629
Definition: libi3.h:419