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 #include "libi3.h"
13 
14 #define SN_API_NOT_YET_FROZEN 1
15 #include <libsn/sn-launcher.h>
16 
17 #include <xcb/randr.h>
18 #include <stdbool.h>
19 #include <pcre.h>
20 #include <sys/time.h>
21 
22 #include "queue.h"
23 
24 /*
25  * To get the big concept: There are helper structures like struct
26  * Workspace_Assignment. Every struct which is also defined as type (see
27  * forward definitions) is considered to be a major structure, thus important.
28  *
29  * The following things are all stored in a 'Con', from very high level (the
30  * biggest Cons) to very small (a single window):
31  *
32  * 1) X11 root window (as big as all your outputs combined)
33  * 2) output (like LVDS1)
34  * 3) content container, dockarea containers
35  * 4) workspaces
36  * 5) split containers
37  * ... (you can arbitrarily nest split containers)
38  * 6) X11 window containers
39  *
40  */
41 
42 /* Forward definitions */
43 typedef struct Binding Binding;
44 typedef struct Rect Rect;
45 typedef struct xoutput Output;
46 typedef struct Con Con;
47 typedef struct Match Match;
48 typedef struct Assignment Assignment;
49 typedef struct Window i3Window;
50 typedef struct gaps_t gaps_t;
51 typedef struct mark_t mark_t;
52 
53 /******************************************************************************
54  * Helper types
55  *****************************************************************************/
56 typedef enum { D_LEFT,
57  D_RIGHT,
60 typedef enum { NO_ORIENTATION = 0,
63 typedef enum { BEFORE,
65 typedef enum { BS_NORMAL = 0,
66  BS_NONE = 1,
68 
71 typedef enum { DONT_KILL_WINDOW = 0,
74 
76 typedef enum { ADJ_NONE = 0,
81 
82 typedef enum { SMART_BORDERS_OFF,
85 
86 typedef enum { SMART_GAPS_OFF,
89 
90 typedef enum { HEBM_NONE = ADJ_NONE,
94  HEBM_SMART = (1 << 5),
96 
97 typedef enum { MM_REPLACE,
99 
103 typedef enum {
106  L_TABBED = 2,
108  L_OUTPUT = 4,
109  L_SPLITV = 5,
110  L_SPLITH = 6
112 
116 typedef enum {
118  B_MOUSE = 1
120 
124 typedef enum {
129  I3_XKB_GROUP_MASK_4 = (1 << 3)
131 
138 typedef uint32_t i3_event_state_mask_t;
139 
143 typedef enum {
147 
148 struct gaps_t {
149  int inner;
150  int top;
151  int right;
152  int bottom;
153  int left;
154 };
155 
159 typedef enum {
165 
176 struct Rect {
177  uint32_t x;
178  uint32_t y;
179  uint32_t width;
180  uint32_t height;
181 };
182 
188 struct reservedpx {
189  uint32_t left;
190  uint32_t right;
191  uint32_t top;
192  uint32_t bottom;
193 };
194 
200 struct width_height {
201  uint32_t w;
202  uint32_t h;
203 };
204 
214  struct width_height con_rect;
220 };
221 
227  char *name;
228  char *output;
230 
233 };
234 
235 struct Ignore_Event {
236  int sequence;
238  time_t added;
239 
241  ignore_events;
242 };
243 
251  char *id;
253  char *workspace;
255  SnLauncherContext *context;
258  time_t delete_at;
259 
261  sequences;
262 };
263 
273 struct regex {
274  char *pattern;
275  pcre *regex;
276  pcre_extra *extra;
277 };
278 
285  xcb_keycode_t keycode;
287 
289  keycodes;
290 };
291 
292 /******************************************************************************
293  * Major types
294  *****************************************************************************/
295 
302 struct Binding {
303  /* The type of input this binding is for. (Mouse bindings are not yet
304  * implemented. All bindings are currently assumed to be keyboard bindings.) */
305  input_type_t input_type;
306 
309  enum {
310  /* This binding will only be executed upon KeyPress events */
311  B_UPON_KEYPRESS = 0,
312  /* This binding will be executed either upon a KeyRelease event, or… */
313  B_UPON_KEYRELEASE = 1,
314  /* …upon a KeyRelease event, even if the modifiers don’t match. This
315  * state is triggered from get_binding() when the corresponding
316  * KeyPress (!) happens, so that users can release the modifier keys
317  * before releasing the actual key. */
318  B_UPON_KEYRELEASE_IGNORE_MODS = 2,
319  } release;
320 
323  bool border;
324 
328  bool whole_window;
329 
332  bool exclude_titlebar;
333 
335  uint32_t keycode;
336 
340  i3_event_state_mask_t event_state_mask;
341 
345  char *symbol;
346 
350  TAILQ_HEAD(keycodes_head, Binding_Keycode)
351  keycodes_head;
352 
354  char *command;
355 
357  bindings;
358 };
359 
367 struct Autostart {
369  char *command;
373 
376 
379 };
380 
381 struct output_name {
382  char *name;
383 
385  names;
386 };
387 
395 struct xoutput {
397  xcb_randr_output_t id;
398 
401  bool active;
402 
405  bool changed;
407  bool primary;
408 
412  SLIST_HEAD(names_head, output_name)
413  names_head;
414 
416  Con *con;
417 
419  Rect rect;
420 
423 };
424 
430 struct Window {
431  xcb_window_t id;
432 
435  xcb_window_t leader;
436  xcb_window_t transient_for;
437 
440  uint32_t nr_assignments;
442 
443  char *class_class;
445 
448 
452  char *role;
453 
456 
459 
462 
466 
468  xcb_atom_t window_type;
469 
471  uint32_t wm_desktop;
472 
474  enum { W_NODOCK = 0,
475  W_DOCK_TOP = 1,
476  W_DOCK_BOTTOM = 2 } dock;
477 
479  struct timeval urgent;
480 
482  struct reservedpx reserved;
483 
485  uint16_t depth;
486 
487  /* the wanted size of the window, used in combination with size
488  * increments (see below). */
491 
492  /* minimum increment size specified for the window (in pixels) */
495 
496  /* Minimum size specified for the window. */
499 
500  /* Maximum size specified for the window. */
503 
504  /* aspect ratio from WM_NORMAL_HINTS (MPlayer uses this for example) */
507 
509  bool shaped;
512 
513  /* Time when the window became managed. Used to determine whether a window
514  * should be swallowed after initial management. */
516 };
517 
526 struct Match {
527  /* Set if a criterion was specified incorrectly. */
528  char *error;
529 
530  struct regex *title;
532  struct regex *class;
533  struct regex *instance;
534  struct regex *mark;
536  struct regex *workspace;
537  xcb_atom_t window_type;
538  enum {
539  U_DONTCHECK = -1,
540  U_LATEST = 0,
541  U_OLDEST = 1
542  } urgent;
543  enum {
544  M_DONTCHECK = -1,
545  M_NODOCK = 0,
546  M_DOCK_ANY = 1,
547  M_DOCK_TOP = 2,
548  M_DOCK_BOTTOM = 3
549  } dock;
550  xcb_window_t id;
551  enum { WM_ANY = 0,
553  WM_FLOATING } window_mode;
555 
556  /* Where the window looking for a match should be inserted:
557  *
558  * M_HERE = the matched container will be replaced by the window
559  * (layout saving)
560  * M_ASSIGN_WS = the matched container will be inserted in the target_ws.
561  * M_BELOW = the window will be inserted as a child of the matched container
562  * (dockareas)
563  *
564  */
565  enum { M_HERE = 0,
567  M_BELOW } insert_where;
568 
570  matches;
571 
572  /* Whether this match was generated when restarting i3 inplace.
573  * Leads to not setting focus when managing a new window, because the old
574  * focus stack should be restored. */
575  bool restart_mode;
576 };
577 
586 struct Assignment {
598  enum {
599  A_ANY = 0,
600  A_COMMAND = (1 << 0),
601  A_TO_WORKSPACE = (1 << 1),
602  A_NO_FOCUS = (1 << 2),
603  A_TO_WORKSPACE_NUMBER = (1 << 3),
604  A_TO_OUTPUT = (1 << 4)
605  } type;
606 
609 
611  union {
612  char *command;
613  char *workspace;
614  char *output;
615  } dest;
616 
619 };
620 
622 typedef enum { CF_NONE = 0,
625 
626 struct mark_t {
627  char *name;
628 
631 };
632 
637 struct Con {
638  bool mapped;
639 
640  /* Should this container be marked urgent? This gets set when the window
641  * inside this container (if any) sets the urgency hint, for example. */
642  bool urgent;
643 
649  uint8_t ignore_unmap;
650 
651  /* The surface used for the frame window. */
655 
656  enum {
657  CT_ROOT = 0,
658  CT_OUTPUT = 1,
659  CT_CON = 2,
660  CT_FLOATING_CON = 3,
661  CT_WORKSPACE = 4,
662  CT_DOCKAREA = 5
663  } type;
664 
667  int num;
668 
671 
672  struct Con *parent;
673 
674  /* The position and size for this con. These coordinates are absolute. Note
675  * that the rect of a container does not include the decoration. */
676  struct Rect rect;
677  /* The position and size of the actual client window. These coordinates are
678  * relative to the container's rect. */
679  struct Rect window_rect;
680  /* The position and size of the container's decoration. These coordinates
681  * are relative to the container's parent's rect. */
682  struct Rect deco_rect;
684  struct Rect geometry;
685 
686  char *name;
687 
690 
691  /* a sticky-group is an identifier which bundles several containers to a
692  * group. The contents are shared between all of them, that is they are
693  * displayed on whichever of the containers is currently visible */
695 
696  /* user-definable marks to jump to this container later */
697  TAILQ_HEAD(marks_head, mark_t)
698  marks_head;
699  /* cached to decide whether a redraw is needed */
700  bool mark_changed;
701 
702  double percent;
703 
704  /* the x11 border pixel attribute */
705  int border_width;
706  int current_border_width;
707 
708  struct Window *window;
709 
710  /* timer used for disabling urgency */
711  struct ev_timer *urgency_timer;
712 
715 
716  /* Only workspace-containers can have floating clients */
717  TAILQ_HEAD(floating_head, Con)
718  floating_head;
719 
720  TAILQ_HEAD(nodes_head, Con)
721  nodes_head;
722 
723  TAILQ_HEAD(focus_head, Con)
724  focus_head;
725 
726  TAILQ_HEAD(swallow_head, Match)
727  swallow_head;
728 
729  fullscreen_mode_t fullscreen_mode;
730 
731  /* Whether this window should stick to the glass. This corresponds to
732  * the _NET_WM_STATE_STICKY atom and will only be respected if the
733  * window is floating. */
734  bool sticky;
735 
736  /* layout is the layout of this container: one of split[v|h], stacked or
737  * tabbed. Special containers in the tree (above workspaces) have special
738  * layouts like dockarea or output.
739  *
740  * last_split_layout is one of splitv or splith to support the old "layout
741  * default" command which by now should be "layout splitv" or "layout
742  * splith" explicitly.
743  *
744  * workspace_layout is only for type == CT_WORKSPACE cons. When you change
745  * the layout of a workspace without any children, i3 cannot just set the
746  * layout (because workspaces need to be splitv/splith to allow focus
747  * parent and opening new containers). Instead, it stores the requested
748  * layout in workspace_layout and creates a new split container with that
749  * layout whenever a new container is attached to the workspace. */
750  layout_t layout, last_split_layout, workspace_layout;
751  border_style_t border_style;
758  enum {
759  FLOATING_AUTO_OFF = 0,
760  FLOATING_USER_OFF = 1,
761  FLOATING_AUTO_ON = 2,
762  FLOATING_USER_ON = 3
763  } floating;
764 
766  nodes;
767 
770 
773 
775  floating_windows;
776 
778  void (*on_remove_child)(Con *);
779 
780  enum {
781  /* Not a scratchpad window. */
782  SCRATCHPAD_NONE = 0,
783 
784  /* Just moved to scratchpad, not resized by the user yet.
785  * Window will be auto-centered and sized appropriately. */
786  SCRATCHPAD_FRESH = 1,
787 
788  /* The user changed position/size of the scratchpad window. */
789  SCRATCHPAD_CHANGED = 2
790  } scratchpad_state;
791 
792  /* The ID of this container before restarting. Necessary to correctly
793  * interpret back-references in the JSON (such as the focus stack). */
794  int old_id;
795 
796  /* Depth of the container window */
797  uint16_t depth;
798 
799  /* The colormap for this con if a custom one is used. */
800  xcb_colormap_t colormap;
801 };
gaps_t::left
int left
Definition: data.h:153
surface_t
Definition: libi3.h:561
Con::parent
struct Con * parent
Definition: data.h:672
Window::transient_for
xcb_window_t transient_for
Definition: data.h:436
Autostart::command
char * command
Command, like in command mode.
Definition: data.h:369
Workspace_Assignment::output
char * output
Definition: data.h:228
Match::id
xcb_window_t id
Definition: data.h:550
VERT
@ VERT
Definition: data.h:62
Window::max_aspect_ratio
double max_aspect_ratio
Definition: data.h:506
Workspace_Assignment
Stores which workspace (by name or number) goes to which output and its gaps config.
Definition: data.h:226
L_OUTPUT
@ L_OUTPUT
Definition: data.h:108
Match::window_type
xcb_atom_t window_type
Definition: data.h:537
POINTER_WARPING_NONE
@ POINTER_WARPING_NONE
Definition: data.h:145
reservedpx::left
uint32_t left
Definition: data.h:189
Window::min_height
int min_height
Definition: data.h:498
i3String
struct _i3String i3String
Opaque data structure for storing strings.
Definition: libi3.h:48
Rect::y
uint32_t y
Definition: data.h:178
Window::name_x_changed
bool name_x_changed
Flag to force re-rendering the decoration upon changes.
Definition: data.h:455
Window::doesnt_accept_focus
bool doesnt_accept_focus
Whether this window accepts focus.
Definition: data.h:465
AFTER
@ AFTER
Definition: data.h:64
orientation_t
orientation_t
Definition: data.h:60
L_DEFAULT
@ L_DEFAULT
Definition: data.h:104
gaps_t::inner
int inner
Definition: data.h:149
output_name
Definition: data.h:381
SMART_GAPS_OFF
@ SMART_GAPS_OFF
Definition: data.h:86
gaps_t::bottom
int bottom
Definition: data.h:152
Match::workspace
struct regex * workspace
Definition: data.h:536
L_SPLITV
@ L_SPLITV
Definition: data.h:109
ADJ_LOWER_SCREEN_EDGE
@ ADJ_LOWER_SCREEN_EDGE
Definition: data.h:80
focus_wrapping_t
focus_wrapping_t
Focus wrapping modes.
Definition: data.h:159
Ignore_Event::added
time_t added
Definition: data.h:238
regex::pattern
char * pattern
Definition: data.h:274
Match::application
struct regex * application
Definition: data.h:531
gaps_t
Definition: data.h:148
D_LEFT
@ D_LEFT
Definition: data.h:58
border_style_t
border_style_t
Definition: data.h:65
MM_REPLACE
@ MM_REPLACE
Definition: data.h:97
ADJ_RIGHT_SCREEN_EDGE
@ ADJ_RIGHT_SCREEN_EDGE
Definition: data.h:78
HEBM_SMART
@ HEBM_SMART
Definition: data.h:94
deco_render_params::color
struct Colortriple * color
Definition: data.h:212
I3_XKB_GROUP_MASK_ANY
@ I3_XKB_GROUP_MASK_ANY
Definition: data.h:125
Window::width_increment
int width_increment
Definition: data.h:493
NO_ORIENTATION
@ NO_ORIENTATION
Definition: data.h:60
Startup_Sequence
Stores internal information about a startup sequence, like the workspace it was initiated on.
Definition: data.h:249
xoutput::id
xcb_randr_output_t id
Output id, so that we can requery the output directly later.
Definition: data.h:397
warping_t
warping_t
Mouse pointer warping modes.
Definition: data.h:143
KILL_CLIENT
@ KILL_CLIENT
Definition: data.h:73
autostarts
struct autostarts_head autostarts
Definition: main.c:77
reservedpx::right
uint32_t right
Definition: data.h:190
Window::role
char * role
The WM_WINDOW_ROLE of this window (for example, the pidgin buddy window sets "buddy list").
Definition: data.h:452
Window
A 'Window' is a type which contains an xcb_window_t and all the related information (hints like _NET_...
Definition: data.h:430
Con::mapped
bool mapped
Definition: data.h:638
Con::pixmap_recreated
bool pixmap_recreated
Definition: data.h:654
L_DOCKAREA
@ L_DOCKAREA
Definition: data.h:107
BS_PIXEL
@ BS_PIXEL
Definition: data.h:67
all_cons
struct all_cons_head all_cons
Definition: tree.c:15
layout_t
layout_t
Container layouts.
Definition: data.h:103
Con::ignore_unmap
uint8_t ignore_unmap
This counter contains the number of UnmapNotify events for this container (or, more precisely,...
Definition: data.h:649
SMART_BORDERS_OFF
@ SMART_BORDERS_OFF
Definition: data.h:82
Window::base_width
int base_width
Definition: data.h:489
reservedpx::bottom
uint32_t bottom
Definition: data.h:192
POINTER_WARPING_OUTPUT
@ POINTER_WARPING_OUTPUT
Definition: data.h:144
L_SPLITH
@ L_SPLITH
Definition: data.h:110
regex::regex
pcre * regex
Definition: data.h:275
Window::min_aspect_ratio
double min_aspect_ratio
Definition: data.h:505
Binding_Keycode
Stores a resolved keycode (from a keysym), including the modifier mask.
Definition: data.h:284
CF_OUTPUT
@ CF_OUTPUT
Definition: data.h:623
I3_XKB_GROUP_MASK_3
@ I3_XKB_GROUP_MASK_3
Definition: data.h:128
mark_t::name
char * name
Definition: data.h:627
L_TABBED
@ L_TABBED
Definition: data.h:106
HEBM_HORIZONTAL
@ HEBM_HORIZONTAL
Definition: data.h:92
CF_NONE
@ CF_NONE
Definition: data.h:622
FOCUS_WRAPPING_OFF
@ FOCUS_WRAPPING_OFF
Definition: data.h:160
I3_XKB_GROUP_MASK_4
@ I3_XKB_GROUP_MASK_4
Definition: data.h:129
I3_XKB_GROUP_MASK_2
@ I3_XKB_GROUP_MASK_2
Definition: data.h:127
Assignment::match
Match match
the criteria to check if a window matches
Definition: data.h:608
Autostart::no_startup_id
bool no_startup_id
no_startup_id flag for start_application().
Definition: data.h:372
i3_event_state_mask_t
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:138
MM_ADD
@ MM_ADD
Definition: data.h:98
HEBM_NONE
@ HEBM_NONE
Definition: data.h:90
Match::M_ASSIGN_WS
@ M_ASSIGN_WS
Definition: data.h:566
mark_t
Definition: data.h:626
FOCUS_WRAPPING_ON
@ FOCUS_WRAPPING_ON
Definition: data.h:161
Window::window_type
xcb_atom_t window_type
The _NET_WM_WINDOW_TYPE for this window.
Definition: data.h:468
SLIST_ENTRY
#define SLIST_ENTRY(type)
Definition: queue.h:101
deco_render_params::background
color_t background
Definition: data.h:217
deco_render_params::con_deco_rect
Rect con_deco_rect
Definition: data.h:216
Match::WM_TILING
@ WM_TILING
Definition: data.h:552
D_RIGHT
@ D_RIGHT
Definition: data.h:59
Ignore_Event::response_type
int response_type
Definition: data.h:237
queue.h
Window::height_increment
int height_increment
Definition: data.h:494
D_DOWN
@ D_DOWN
Definition: data.h:61
Window::name
i3String * name
The name of the window.
Definition: data.h:447
B_MOUSE
@ B_MOUSE
Definition: data.h:118
kill_window_t
kill_window_t
parameter to specify whether tree_close_internal() and x_window_kill() should kill only this specific...
Definition: data.h:71
Assignment
An Assignment makes specific windows go to a specific workspace/output or run a command for that wind...
Definition: data.h:586
Ignore_Event::sequence
int sequence
Definition: data.h:236
gaps_t::right
int right
Definition: data.h:151
Window::nr_assignments
uint32_t nr_assignments
Pointers to the Assignments which were already ran for this Window (assignments run only once)
Definition: data.h:440
ADJ_NONE
@ ADJ_NONE
Definition: data.h:76
xoutput
An Output is a physical output on your graphics driver.
Definition: data.h:395
Binding_Keycode::keycode
xcb_keycode_t keycode
Definition: data.h:285
position_t
position_t
Definition: data.h:63
reservedpx
Stores the reserved pixels on each screen edge read from a _NET_WM_STRUT_PARTIAL.
Definition: data.h:188
SMART_GAPS_ON
@ SMART_GAPS_ON
Definition: data.h:87
gaps_t::top
int top
Definition: data.h:150
deco_render_params::con_is_leaf
bool con_is_leaf
Definition: data.h:219
Con::num
int num
the workspace number, if this Con is of type CT_WORKSPACE and the workspace is not a named workspace ...
Definition: data.h:667
Rect::width
uint32_t width
Definition: data.h:179
L_STACKED
@ L_STACKED
Definition: data.h:105
BEFORE
@ BEFORE
Definition: data.h:63
Window::ran_assignments
Assignment ** ran_assignments
Definition: data.h:441
Window::managed_since
time_t managed_since
Definition: data.h:515
Autostart
Holds a command specified by either an:
Definition: data.h:367
deco_render_params::parent_layout
layout_t parent_layout
Definition: data.h:218
deco_render_params::con_rect
struct width_height con_rect
Definition: data.h:214
DONT_KILL_WINDOW
@ DONT_KILL_WINDOW
Definition: data.h:71
regex
Regular expression wrapper.
Definition: data.h:273
autostarts_always
struct autostarts_always_head autostarts_always
Definition: main.c:80
Startup_Sequence::context
SnLauncherContext * context
libstartup-notification context for this launch
Definition: data.h:255
Con::urgent
bool urgent
Definition: data.h:642
ADJ_LEFT_SCREEN_EDGE
@ ADJ_LEFT_SCREEN_EDGE
Definition: data.h:77
smart_gaps_t
smart_gaps_t
Definition: data.h:86
Window::id
xcb_window_t id
Definition: data.h:431
Match::error
char * error
Definition: data.h:528
deco_render_params::con_window_rect
struct width_height con_window_rect
Definition: data.h:215
Match
A "match" is a data structure which acts like a mask or expression to match certain windows or not.
Definition: data.h:526
Colortriple
Part of the struct Config.
Definition: configuration.h:54
Window::class_instance
char * class_instance
Definition: data.h:444
SMART_GAPS_INVERSE_OUTER
@ SMART_GAPS_INVERSE_OUTER
Definition: data.h:88
deco_render_params
Stores the parameters for rendering a window decoration.
Definition: data.h:211
Window::max_width
int max_width
Definition: data.h:501
HEBM_BOTH
@ HEBM_BOTH
Definition: data.h:93
Workspace_Assignment::gaps
gaps_t gaps
Definition: data.h:229
focused
struct Con * focused
Definition: tree.c:13
Match::title
struct regex * title
Definition: data.h:530
Window::min_width
int min_width
Definition: data.h:497
width_height::h
uint32_t h
Definition: data.h:202
Workspace_Assignment::name
char * name
Definition: data.h:227
marks
struct pending_marks * marks
HEBM_VERTICAL
@ HEBM_VERTICAL
Definition: data.h:91
Con::sticky_group
char * sticky_group
Definition: data.h:694
hide_edge_borders_mode_t
hide_edge_borders_mode_t
Definition: data.h:90
Window::uses_net_wm_name
bool uses_net_wm_name
Whether the application used _NET_WM_NAME.
Definition: data.h:458
Con::gaps
gaps_t gaps
Only applicable for containers of type CT_WORKSPACE.
Definition: data.h:670
deco_render_params::border_style
int border_style
Definition: data.h:213
Window::input_shaped
bool input_shaped
The window has a nonrectangular input shape.
Definition: data.h:511
outputs
struct outputs_head outputs
Definition: randr.c:21
I3_XKB_GROUP_MASK_1
@ I3_XKB_GROUP_MASK_1
Definition: data.h:126
Assignment::output
char * output
Definition: data.h:614
fullscreen_mode_t
fullscreen_mode_t
Fullscreen modes.
Definition: data.h:622
bindings
struct bindings_head * bindings
Definition: main.c:74
Binding
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
Definition: data.h:302
adjacent_t
adjacent_t
describes if the window is adjacent to the output (physical screen) edges.
Definition: data.h:76
width_height::w
uint32_t w
Definition: data.h:201
ADJ_UPPER_SCREEN_EDGE
@ ADJ_UPPER_SCREEN_EDGE
Definition: data.h:79
HEBM_SMART_NO_GAPS
@ HEBM_SMART_NO_GAPS
Definition: data.h:95
color_t
Definition: libi3.h:413
Binding_Keycode::modifiers
i3_event_state_mask_t modifiers
Definition: data.h:286
BS_NONE
@ BS_NONE
Definition: data.h:66
SMART_BORDERS_ON
@ SMART_BORDERS_ON
Definition: data.h:83
B_KEYBOARD
@ B_KEYBOARD
Definition: data.h:117
SLIST_HEAD
#define SLIST_HEAD(name, type)
Definition: queue.h:93
Assignment::command
char * command
Definition: data.h:612
Con::frame
surface_t frame
Definition: data.h:652
Assignment::workspace
char * workspace
Definition: data.h:613
Window::depth
uint16_t depth
Depth of the window.
Definition: data.h:485
i3_xkb_group_mask_t
i3_xkb_group_mask_t
Bitmask for matching XCB_XKB_GROUP_1 to XCB_XKB_GROUP_4.
Definition: data.h:124
TAILQ_ENTRY
#define TAILQ_ENTRY(type)
Definition: queue.h:327
reservedpx::top
uint32_t top
Definition: data.h:191
Window::shaped
bool shaped
The window has a nonrectangular shape.
Definition: data.h:509
xoutput::changed
bool changed
Internal flags, necessary for querying RandR screens (happens in two stages)
Definition: data.h:405
Con::frame_buffer
surface_t frame_buffer
Definition: data.h:653
assignments
struct assignments_head assignments
Definition: main.c:83
regex::extra
pcre_extra * extra
Definition: data.h:276
Con
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition: data.h:637
xoutput::primary
bool primary
Definition: data.h:407
Workspace_Assignment::ws_assignments
ws_assignments
Definition: data.h:232
xoutput::active
bool active
Whether the output is currently active (has a CRTC attached with a valid mode)
Definition: data.h:401
Window::class_class
char * class_class
Definition: data.h:443
mark_mode_t
mark_mode_t
Definition: data.h:97
Window::max_height
int max_height
Definition: data.h:502
Startup_Sequence::id
char * id
startup ID for this sequence, generated by libstartup-notification
Definition: data.h:251
SMART_BORDERS_NO_GAPS
@ SMART_BORDERS_NO_GAPS
Definition: data.h:84
BS_NORMAL
@ BS_NORMAL
Definition: data.h:65
Match::window_role
struct regex * window_role
Definition: data.h:535
Match::mark
struct regex * mark
Definition: data.h:534
Startup_Sequence::workspace
char * workspace
workspace on which this startup was initiated
Definition: data.h:253
KILL_WINDOW
@ KILL_WINDOW
Definition: data.h:72
Match::con_id
Con * con_id
Definition: data.h:554
Window::leader
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:435
CF_GLOBAL
@ CF_GLOBAL
Definition: data.h:624
Ignore_Event
Definition: data.h:235
Con::old_id
int old_id
Definition: data.h:794
Rect::height
uint32_t height
Definition: data.h:180
FOCUS_WRAPPING_FORCE
@ FOCUS_WRAPPING_FORCE
Definition: data.h:162
output_name::name
char * name
Definition: data.h:382
width_height
Stores a width/height pair, used as part of deco_render_params to check whether the rects width/heigh...
Definition: data.h:200
xoutput::to_be_disabled
bool to_be_disabled
Definition: data.h:406
Con::name
char * name
Definition: data.h:686
HORIZ
@ HORIZ
Definition: data.h:61
smart_borders_t
smart_borders_t
Definition: data.h:82
Rect::x
uint32_t x
Definition: data.h:177
Con::colormap
xcb_colormap_t colormap
Definition: data.h:800
TAILQ_HEAD
#define TAILQ_HEAD(name, type)
Definition: queue.h:318
Con::title_format
char * title_format
The format with which the window's name should be displayed.
Definition: data.h:689
Con::depth
uint16_t depth
Definition: data.h:797
D_UP
@ D_UP
Definition: data.h:60
Window::base_height
int base_height
Definition: data.h:490
input_type_t
input_type_t
Binding input types.
Definition: data.h:116
Window::needs_take_focus
bool needs_take_focus
Whether the application needs to receive WM_TAKE_FOCUS.
Definition: data.h:461
FOCUS_WRAPPING_WORKSPACE
@ FOCUS_WRAPPING_WORKSPACE
Definition: data.h:163
libi3.h
Startup_Sequence::delete_at
time_t delete_at
time at which this sequence should be deleted (after it was marked as completed)
Definition: data.h:258
Window::wm_desktop
uint32_t wm_desktop
The _NET_WM_DESKTOP for this window.
Definition: data.h:471
Match::instance
struct regex * instance
Definition: data.h:533
direction_t
direction_t
Definition: data.h:56
Rect
Stores a rectangle, for example the size of a window, the child window etc.
Definition: data.h:176