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 PCRE2_CODE_UNIT_WIDTH 8
13 
14 #define SN_API_NOT_YET_FROZEN 1
15 #include <libsn/sn-launcher.h>
16 
17 #include <xcb/randr.h>
18 #include <pcre2.h>
19 #include <sys/time.h>
20 #include <cairo/cairo.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,
60 typedef enum { NO_ORIENTATION = 0,
63 typedef enum { BEFORE,
65 typedef enum {
66  BS_NONE = 0,
67  BS_PIXEL = 1,
68  BS_NORMAL = 2,
70 
73 typedef enum { DONT_KILL_WINDOW = 0,
76 
78 typedef enum { ADJ_NONE = 0,
83 
84 typedef enum { SMART_BORDERS_OFF,
87 
88 typedef enum { SMART_GAPS_OFF,
91 
92 typedef enum { HEBM_NONE = ADJ_NONE,
96  HEBM_SMART = (1 << 5),
98 
99 typedef enum { MM_REPLACE,
101 
105 typedef enum {
108  L_TABBED = 2,
110  L_OUTPUT = 4,
111  L_SPLITV = 5,
112  L_SPLITH = 6
114 
118 typedef enum {
120  B_MOUSE = 1
122 
126 typedef enum {
131  I3_XKB_GROUP_MASK_4 = (1 << 3)
133 
140 typedef uint32_t i3_event_state_mask_t;
141 
145 typedef enum {
149 
150 struct gaps_t {
151  int inner;
152  int top;
153  int right;
154  int bottom;
155  int left;
156 };
157 
158 typedef enum {
159  GAPS_INNER = (1 << 0),
160  GAPS_TOP = (1 << 1),
161  GAPS_RIGHT = (1 << 2),
162  GAPS_BOTTOM = (1 << 3),
163  GAPS_LEFT = (1 << 4),
167 } gaps_mask_t;
168 
172 typedef enum {
178 
182 typedef enum {
184  QUBE_RED = 1,
192 } qube_label_t;
193 
194 #define QUBE_NUM_LABELS 9
195 
196 
207 struct Rect {
208  uint32_t x;
209  uint32_t y;
210  uint32_t width;
211  uint32_t height;
212 };
213 
219 struct reservedpx {
220  uint32_t left;
221  uint32_t right;
222  uint32_t top;
223  uint32_t bottom;
224 };
225 
231 struct width_height {
232  uint32_t w;
233  uint32_t h;
234 };
235 
245  struct width_height con_rect;
251 };
252 
258  char *name;
259  char *output;
262 
264 };
265 
266 struct Ignore_Event {
267  int sequence;
269  time_t added;
270 
271  SLIST_ENTRY(Ignore_Event) ignore_events;
272 };
273 
281  char *id;
283  char *workspace;
285  SnLauncherContext *context;
288  time_t delete_at;
289 
291 };
292 
302 struct regex {
303  char *pattern;
304  pcre2_code *regex;
305 };
306 
313  xcb_keycode_t keycode;
316 };
317 
318 /******************************************************************************
319  * Major types
320  *****************************************************************************/
321 
328 struct Binding {
329  /* The type of input this binding is for. (Mouse bindings are not yet
330  * implemented. All bindings are currently assumed to be keyboard bindings.) */
332 
335  enum {
336  /* This binding will only be executed upon KeyPress events */
338  /* This binding will be executed either upon a KeyRelease event, or… */
340  /* …upon a KeyRelease event, even if the modifiers don’t match. This
341  * state is triggered from get_binding() when the corresponding
342  * KeyPress (!) happens, so that users can release the modifier keys
343  * before releasing the actual key. */
346 
349  bool border;
350 
355 
359 
361  uint32_t keycode;
362 
367 
371  char *symbol;
372 
376  TAILQ_HEAD(keycodes_head, Binding_Keycode) keycodes_head;
377 
379  char *command;
380 
382 };
383 
391 struct Autostart {
393  char *command;
399 };
400 
401 struct output_name {
402  char *name;
404 };
405 
413 struct xoutput {
415  xcb_randr_output_t id;
416 
419  bool active;
420 
423  bool changed;
425  bool primary;
426 
430  SLIST_HEAD(names_head, output_name) names_head;
431 
434 
437 
439 };
440 
446 struct Window {
447  xcb_window_t id;
448 
451  xcb_window_t leader;
452  xcb_window_t transient_for;
453 
456  uint32_t nr_assignments;
458 
459  char *class_class;
461 
464 
467 
470 
474  char *role;
475 
477  char *machine;
478 
481 
484 
487 
491 
493  xcb_atom_t window_type;
494 
496  uint32_t wm_desktop;
497 
499  enum { W_NODOCK = 0,
502 
504  struct timeval urgent;
505 
507  struct reservedpx reserved;
508 
510  uint16_t depth;
511 
512  /* the wanted size of the window, used in combination with size
513  * increments (see below). */
516 
517  /* minimum increment size specified for the window (in pixels) */
520 
521  /* Minimum size specified for the window. */
524 
525  /* Maximum size specified for the window. */
528 
529  /* aspect ratio from WM_NORMAL_HINTS (MPlayer uses this for example) */
532 
534  cairo_surface_t *icon;
535 
537  bool shaped;
540 
541  /* Time when the window became managed. Used to determine whether a window
542  * should be swallowed after initial management. */
544 
545  /* The window has been swallowed. */
546  bool swallowed;
547 };
548 
557 struct Match {
558  /* Set if a criterion was specified incorrectly. */
559  char *error;
560 
561  struct regex *title;
563  struct regex *class;
564  struct regex *instance;
565  struct regex *mark;
567  struct regex *workspace;
568  struct regex *machine;
569  xcb_atom_t window_type;
570  enum {
572  U_LATEST = 0,
573  U_OLDEST = 1
575  enum {
577  M_NODOCK = 0,
580  M_DOCK_BOTTOM = 3
581  } dock;
582  xcb_window_t id;
583  enum { WM_ANY = 0,
592 
593  /* Where the window looking for a match should be inserted:
594  *
595  * M_HERE = the matched container will be replaced by the window
596  * (layout saving)
597  * M_ASSIGN_WS = the matched container will be inserted in the target_ws.
598  * M_BELOW = the window will be inserted as a child of the matched container
599  * (dockareas)
600  *
601  */
602  enum { M_HERE = 0,
605 
606  TAILQ_ENTRY(Match) matches;
607 
608  /* Whether this match was generated when restarting i3 inplace.
609  * Leads to not setting focus when managing a new window, because the old
610  * focus stack should be restored. */
612 };
613 
622 struct Assignment {
634  enum {
635  A_ANY = 0,
636  A_COMMAND = (1 << 0),
637  A_TO_WORKSPACE = (1 << 1),
638  A_NO_FOCUS = (1 << 2),
640  A_TO_OUTPUT = (1 << 4)
641  } type;
642 
645 
647  union {
648  char *command;
649  char *workspace;
650  char *output;
651  } dest;
652 
654 };
655 
657 typedef enum { CF_NONE = 0,
660 
661 struct mark_t {
662  char *name;
663 
665 };
666 
671 struct Con {
672  bool mapped;
673 
674  /* Should this container be marked urgent? This gets set when the window
675  * inside this container (if any) sets the urgency hint, for example. */
676  bool urgent;
677 
683  uint8_t ignore_unmap;
684 
685  /* The surface used for the frame window. */
689 
690  enum {
691  CT_ROOT = 0,
693  CT_CON = 2,
696  CT_DOCKAREA = 5
697  } type;
698 
701  int num;
702 
705 
706  struct Con *parent;
707 
708  /* The position and size for this con. These coordinates are absolute. Note
709  * that the rect of a container does not include the decoration. */
710  struct Rect rect;
711  /* The position and size of the actual client window. These coordinates are
712  * relative to the container's rect. */
713  struct Rect window_rect;
714  /* The position and size of the container's decoration. These coordinates
715  * are relative to the container's parent's rect. */
716  struct Rect deco_rect;
718  struct Rect geometry;
719 
720  char *name;
721 
724 
729 
730  /* a sticky-group is an identifier which bundles several containers to a
731  * group. The contents are shared between all of them, that is they are
732  * displayed on whichever of the containers is currently visible */
734 
735  /* user-definable marks to jump to this container later */
736  TAILQ_HEAD(marks_head, mark_t) marks_head;
737  /* cached to decide whether a redraw is needed */
739 
740  double percent;
741 
742  /* the x11 border pixel attribute */
745 
746  struct Window *window;
747 
748  /* timer used for disabling urgency */
749  struct ev_timer *urgency_timer;
750 
753 
754  /* Only workspace-containers can have floating clients */
755  TAILQ_HEAD(floating_head, Con) floating_head;
756 
757  TAILQ_HEAD(nodes_head, Con) nodes_head;
758  TAILQ_HEAD(focus_head, Con) focus_head;
759 
760  TAILQ_HEAD(swallow_head, Match) swallow_head;
761 
763 
764  /* Whether this window should stick to the glass. This corresponds to
765  * the _NET_WM_STATE_STICKY atom and will only be respected if the
766  * window is floating. */
767  bool sticky;
768 
769  /* layout is the layout of this container: one of split[v|h], stacked or
770  * tabbed. Special containers in the tree (above workspaces) have special
771  * layouts like dockarea or output.
772  *
773  * last_split_layout is one of splitv or splith to support the old "layout
774  * default" command which by now should be "layout splitv" or "layout
775  * splith" explicitly.
776  *
777  * workspace_layout is only for type == CT_WORKSPACE cons. When you change
778  * the layout of a workspace without any children, i3 cannot just set the
779  * layout (because workspaces need to be splitv/splith to allow focus
780  * parent and opening new containers). Instead, it stores the requested
781  * layout in workspace_layout and creates a new split container with that
782  * layout whenever a new container is attached to the workspace. */
784 
786  /* When the border style of a con changes because of motif hints, we don't
787  * want to set more decoration that the user wants. The user's preference is determined by these:
788  * 1. For new tiling windows, as set by `default_border`
789  * 2. For new floating windows, as set by `default_floating_border`
790  * 3. For all windows that the user runs the `border` command, whatever is
791  * the result of that command for that window. */
793 
800  enum {
804  FLOATING_USER_ON = 3
806 
807  TAILQ_ENTRY(Con) nodes;
810  TAILQ_ENTRY(Con) floating_windows;
811 
813  void (*on_remove_child)(Con *);
814 
815  enum {
816  /* Not a scratchpad window. */
818 
819  /* Just moved to scratchpad, not resized by the user yet.
820  * Window will be auto-centered and sized appropriately. */
822 
823  /* The user changed position/size of the scratchpad window. */
826 
827  /* The ID of this container before restarting. Necessary to correctly
828  * interpret back-references in the JSON (such as the focus stack). */
829  int old_id;
830 
831  /* Depth of the container window */
832  uint16_t depth;
833 
834  /* The colormap for this con if a custom one is used. */
835  xcb_colormap_t colormap;
836 };
focused
struct Con * focused
Definition: tree.c:13
Startup_Sequence::context
SnLauncherContext * context
libstartup-notification context for this launch
Definition: data.h:285
FOCUS_WRAPPING_OFF
@ FOCUS_WRAPPING_OFF
Definition: data.h:173
I3_XKB_GROUP_MASK_4
@ I3_XKB_GROUP_MASK_4
Definition: data.h:131
Ignore_Event::response_type
int response_type
Definition: data.h:268
Assignment::A_TO_OUTPUT
@ A_TO_OUTPUT
Definition: data.h:640
Match::U_OLDEST
@ U_OLDEST
Definition: data.h:573
Autostart::TAILQ_ENTRY
TAILQ_ENTRY(Autostart) autostarts_always
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:126
Con::FLOATING_AUTO_ON
@ FLOATING_AUTO_ON
Definition: data.h:803
Window::icon
cairo_surface_t * icon
Window icon, as Cairo surface.
Definition: data.h:534
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:451
output_name
Definition: data.h:401
Assignment::type
enum Assignment::@16 type
type of this assignment:
Assignment::A_COMMAND
@ A_COMMAND
Definition: data.h:636
Autostart
Holds a command specified by either an:
Definition: data.h:391
Con::CT_FLOATING_CON
@ CT_FLOATING_CON
Definition: data.h:694
Con::CT_OUTPUT
@ CT_OUTPUT
Definition: data.h:692
Window::machine
char * machine
WM_CLIENT_MACHINE of the window.
Definition: data.h:477
SMART_GAPS_ON
@ SMART_GAPS_ON
Definition: data.h:89
Con::max_user_border_style
border_style_t max_user_border_style
Definition: data.h:792
deco_render_params::con_deco_rect
Rect con_deco_rect
Definition: data.h:247
Match::id
xcb_window_t id
Definition: data.h:582
Window::input_shaped
bool input_shaped
The window has a nonrectangular input shape.
Definition: data.h:539
Con::FLOATING_USER_OFF
@ FLOATING_USER_OFF
Definition: data.h:802
queue.h
autostarts
struct autostarts_head autostarts
Definition: main.c:91
Match::TAILQ_ENTRY
TAILQ_ENTRY(Match) matches
output_name::name
char * name
Definition: data.h:402
Window::uses_net_wm_name
bool uses_net_wm_name
Whether the application used _NET_WM_NAME.
Definition: data.h:483
hide_edge_borders_mode_t
hide_edge_borders_mode_t
Definition: data.h:92
GAPS_INNER
@ GAPS_INNER
Definition: data.h:159
SMART_BORDERS_ON
@ SMART_BORDERS_ON
Definition: data.h:85
B_KEYBOARD
@ B_KEYBOARD
Definition: data.h:119
outputs
struct outputs_head outputs
Definition: randr.c:22
QUBE_YELLOW
@ QUBE_YELLOW
Definition: data.h:186
Window::wm_desktop
uint32_t wm_desktop
The _NET_WM_DESKTOP for this window.
Definition: data.h:496
DONT_KILL_WINDOW
@ DONT_KILL_WINDOW
Definition: data.h:73
Con::rect
struct Rect rect
Definition: data.h:710
Window::max_width
int max_width
Definition: data.h:526
ADJ_NONE
@ ADJ_NONE
Definition: data.h:78
Ignore_Event
Definition: data.h:266
Window::class_instance
char * class_instance
Definition: data.h:460
reservedpx::left
uint32_t left
Definition: data.h:220
Binding_Keycode::TAILQ_ENTRY
TAILQ_ENTRY(Binding_Keycode) keycodes
smart_borders_t
smart_borders_t
Definition: data.h:84
Con::name
char * name
Definition: data.h:720
Window::transient_for
xcb_window_t transient_for
Definition: data.h:452
SMART_GAPS_INVERSE_OUTER
@ SMART_GAPS_INVERSE_OUTER
Definition: data.h:90
Assignment::match
Match match
the criteria to check if a window matches
Definition: data.h:644
Window::role
char * role
The WM_WINDOW_ROLE of this window (for example, the pidgin buddy window sets "buddy list").
Definition: data.h:474
HEBM_SMART_NO_GAPS
@ HEBM_SMART_NO_GAPS
Definition: data.h:97
Binding
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
Definition: data.h:328
Workspace_Assignment::gaps
gaps_t gaps
Definition: data.h:260
Window::depth
uint16_t depth
Depth of the window.
Definition: data.h:510
QUBE_RED
@ QUBE_RED
Definition: data.h:184
Match::application
struct regex * application
Definition: data.h:562
Match::WM_FLOATING_AUTO
@ WM_FLOATING_AUTO
Definition: data.h:587
Con::window
struct Window * window
Definition: data.h:746
Con::CT_ROOT
@ CT_ROOT
Definition: data.h:691
deco_render_params::parent_layout
layout_t parent_layout
Definition: data.h:249
L_STACKED
@ L_STACKED
Definition: data.h:107
BEFORE
@ BEFORE
Definition: data.h:63
Assignment::dest
union Assignment::@17 dest
destination workspace/command/output, depending on the type
Con::mark_changed
bool mark_changed
Definition: data.h:738
Rect
Stores a rectangle, for example the size of a window, the child window etc.
Definition: data.h:207
I3_XKB_GROUP_MASK_1
@ I3_XKB_GROUP_MASK_1
Definition: data.h:128
gaps_t::top
int top
Definition: data.h:152
ADJ_LEFT_SCREEN_EDGE
@ ADJ_LEFT_SCREEN_EDGE
Definition: data.h:79
Window::min_height
int min_height
Definition: data.h:523
surface_t
Definition: libi3.h:569
Binding::TAILQ_ENTRY
TAILQ_ENTRY(Binding) bindings
output_name::SLIST_ENTRY
SLIST_ENTRY(output_name) names
regex
Regular expression wrapper.
Definition: data.h:302
deco_render_params::con_window_rect
struct width_height con_window_rect
Definition: data.h:246
QUBE_BLUE
@ QUBE_BLUE
Definition: data.h:189
Ignore_Event::added
time_t added
Definition: data.h:269
Con::TAILQ_HEAD
TAILQ_HEAD(nodes_head, Con) nodes_head
Window::ran_assignments
Assignment ** ran_assignments
Definition: data.h:457
Startup_Sequence::id
char * id
startup ID for this sequence, generated by libstartup-notification
Definition: data.h:281
Window::W_DOCK_BOTTOM
@ W_DOCK_BOTTOM
Definition: data.h:501
Window::managed_since
time_t managed_since
Definition: data.h:543
Workspace_Assignment
Stores which workspace (by name or number) goes to which output and its gaps config.
Definition: data.h:257
QUBE_GRAY
@ QUBE_GRAY
Definition: data.h:188
Binding::TAILQ_HEAD
TAILQ_HEAD(keycodes_head, Binding_Keycode) keycodes_head
Only in use if symbol != NULL.
Ignore_Event::sequence
int sequence
Definition: data.h:267
Con
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition: data.h:671
Match::restart_mode
bool restart_mode
Definition: data.h:611
Binding::B_UPON_KEYRELEASE
@ B_UPON_KEYRELEASE
Definition: data.h:339
HEBM_VERTICAL
@ HEBM_VERTICAL
Definition: data.h:93
GAPS_RIGHT
@ GAPS_RIGHT
Definition: data.h:161
bindings
struct bindings_head * bindings
Definition: main.c:87
D_UP
@ D_UP
Definition: data.h:58
Window::base_width
int base_width
Definition: data.h:514
Match::M_ASSIGN_WS
@ M_ASSIGN_WS
Definition: data.h:603
BS_NORMAL
@ BS_NORMAL
Definition: data.h:68
Con::CT_DOCKAREA
@ CT_DOCKAREA
Definition: data.h:696
KILL_WINDOW
@ KILL_WINDOW
Definition: data.h:74
Window::min_aspect_ratio
double min_aspect_ratio
Definition: data.h:530
Window::base_height
int base_height
Definition: data.h:515
Con::gaps
gaps_t gaps
Only applicable for containers of type CT_WORKSPACE.
Definition: data.h:704
GAPS_HORIZONTAL
@ GAPS_HORIZONTAL
Definition: data.h:165
Con::SCRATCHPAD_FRESH
@ SCRATCHPAD_FRESH
Definition: data.h:821
width_height
Stores a width/height pair, used as part of deco_render_params to check whether the rects width/heigh...
Definition: data.h:231
QUBE_PURPLE
@ QUBE_PURPLE
Definition: data.h:190
Assignment::A_TO_WORKSPACE_NUMBER
@ A_TO_WORKSPACE_NUMBER
Definition: data.h:639
FOCUS_WRAPPING_FORCE
@ FOCUS_WRAPPING_FORCE
Definition: data.h:175
ADJ_UPPER_SCREEN_EDGE
@ ADJ_UPPER_SCREEN_EDGE
Definition: data.h:81
Window::id
xcb_window_t id
Definition: data.h:447
Rect::y
uint32_t y
Definition: data.h:209
qube_label_t
qube_label_t
Qubes colors.
Definition: data.h:182
Window::name_x_changed
bool name_x_changed
Flag to force re-rendering the decoration upon changes.
Definition: data.h:480
smart_gaps_t
smart_gaps_t
Definition: data.h:88
gaps_t
Definition: data.h:150
border_style_t
border_style_t
Definition: data.h:65
BS_NONE
@ BS_NONE
Definition: data.h:66
HORIZ
@ HORIZ
Definition: data.h:61
Colortriple
Part of the struct Config.
Definition: configuration.h:54
Con::title_format
char * title_format
The format with which the window's name should be displayed.
Definition: data.h:723
L_OUTPUT
@ L_OUTPUT
Definition: data.h:110
Startup_Sequence
Stores internal information about a startup sequence, like the workspace it was initiated on.
Definition: data.h:279
xoutput::changed
bool changed
Internal flags, necessary for querying RandR screens (happens in two stages)
Definition: data.h:423
direction_t
direction_t
Definition: data.h:56
Window
A 'Window' is a type which contains an xcb_window_t and all the related information (hints like _NET_...
Definition: data.h:446
Con::urgency_timer
struct ev_timer * urgency_timer
Definition: data.h:749
Con::TAILQ_HEAD
TAILQ_HEAD(focus_head, Con) focus_head
Window::min_width
int min_width
Definition: data.h:522
xoutput::con
Con * con
Pointer to the Con which represents this output.
Definition: data.h:433
Con::TAILQ_HEAD
TAILQ_HEAD(swallow_head, Match) swallow_head
Con::fullscreen_mode
fullscreen_mode_t fullscreen_mode
Definition: data.h:762
Autostart::no_startup_id
bool no_startup_id
no_startup_id flag for start_application().
Definition: data.h:396
FOCUS_WRAPPING_WORKSPACE
@ FOCUS_WRAPPING_WORKSPACE
Definition: data.h:176
Con::deco_rect
struct Rect deco_rect
Definition: data.h:716
xoutput::active
bool active
Whether the output is currently active (has a CRTC attached with a valid mode)
Definition: data.h:419
Con::TAILQ_ENTRY
TAILQ_ENTRY(Con) all_cons
Window::window_type
xcb_atom_t window_type
The _NET_WM_WINDOW_TYPE for this window.
Definition: data.h:493
Binding::B_UPON_KEYPRESS
@ B_UPON_KEYPRESS
Definition: data.h:337
Window::dock
enum Window::@11 dock
Whether the window says it is a dock window.
QUBE_BLACK
@ QUBE_BLACK
Definition: data.h:191
GAPS_TOP
@ GAPS_TOP
Definition: data.h:160
QUBE_DOM0
@ QUBE_DOM0
Definition: data.h:183
Autostart::TAILQ_ENTRY
TAILQ_ENTRY(Autostart) autostarts
xoutput::primary
bool primary
Definition: data.h:425
Binding_Keycode::keycode
xcb_keycode_t keycode
Definition: data.h:313
Con::border_style
border_style_t border_style
Definition: data.h:785
SMART_GAPS_OFF
@ SMART_GAPS_OFF
Definition: data.h:88
gaps_t::inner
int inner
Definition: data.h:151
Startup_Sequence::workspace
char * workspace
workspace on which this startup was initiated
Definition: data.h:283
fullscreen_mode_t
fullscreen_mode_t
Fullscreen modes.
Definition: data.h:657
Window::doesnt_accept_focus
bool doesnt_accept_focus
Whether this window accepts focus.
Definition: data.h:490
Assignment::A_TO_WORKSPACE
@ A_TO_WORKSPACE
Definition: data.h:637
orientation_t
orientation_t
Definition: data.h:60
Match::WM_FLOATING
@ WM_FLOATING
Definition: data.h:589
Rect::width
uint32_t width
Definition: data.h:210
Con::ignore_unmap
uint8_t ignore_unmap
This counter contains the number of UnmapNotify events for this container (or, more precisely,...
Definition: data.h:683
xoutput::TAILQ_ENTRY
TAILQ_ENTRY(xoutput) outputs
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:456
Assignment::command
char * command
Definition: data.h:648
Workspace_Assignment::name
char * name
Definition: data.h:258
Window::W_DOCK_TOP
@ W_DOCK_TOP
Definition: data.h:500
SMART_BORDERS_NO_GAPS
@ SMART_BORDERS_NO_GAPS
Definition: data.h:86
ADJ_RIGHT_SCREEN_EDGE
@ ADJ_RIGHT_SCREEN_EDGE
Definition: data.h:80
GAPS_VERTICAL
@ GAPS_VERTICAL
Definition: data.h:164
deco_render_params::con_rect
struct width_height con_rect
Definition: data.h:245
Assignment::workspace
char * workspace
Definition: data.h:649
Con::percent
double percent
Definition: data.h:740
Window::class_class
char * class_class
Definition: data.h:459
Con::on_remove_child
void(* on_remove_child)(Con *)
callbacks
Definition: data.h:813
Con::border_width
int border_width
Definition: data.h:743
Con::current_border_width
int current_border_width
Definition: data.h:744
focus_wrapping_t
focus_wrapping_t
Focus wrapping modes.
Definition: data.h:172
Window::name
i3String * name
The name of the window.
Definition: data.h:463
Con::TAILQ_ENTRY
TAILQ_ENTRY(Con) focused
CF_GLOBAL
@ CF_GLOBAL
Definition: data.h:659
KILL_CLIENT
@ KILL_CLIENT
Definition: data.h:75
assignments
struct assignments_head assignments
Definition: main.c:97
Match::WM_FLOATING_USER
@ WM_FLOATING_USER
Definition: data.h:588
Match::insert_where
enum Match::@15 insert_where
Con::urgent
bool urgent
Definition: data.h:676
Con::FLOATING_AUTO_OFF
@ FLOATING_AUTO_OFF
Definition: data.h:801
xoutput::id
xcb_randr_output_t id
Output id, so that we can requery the output directly later.
Definition: data.h:415
deco_render_params::con_is_leaf
bool con_is_leaf
Definition: data.h:250
Match::M_NODOCK
@ M_NODOCK
Definition: data.h:577
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:288
VERT
@ VERT
Definition: data.h:62
Match::M_DOCK_ANY
@ M_DOCK_ANY
Definition: data.h:578
L_DOCKAREA
@ L_DOCKAREA
Definition: data.h:109
ADJ_LOWER_SCREEN_EDGE
@ ADJ_LOWER_SCREEN_EDGE
Definition: data.h:82
Workspace_Assignment::output
char * output
Definition: data.h:259
D_LEFT
@ D_LEFT
Definition: data.h:56
Window::swallowed
bool swallowed
Definition: data.h:546
Rect::height
uint32_t height
Definition: data.h:211
Con::floating
enum Con::@19 floating
floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whet...
Con::window_rect
struct Rect window_rect
Definition: data.h:713
Window::urgent
struct timeval urgent
When this window was marked urgent.
Definition: data.h:504
Window::W_NODOCK
@ W_NODOCK
Definition: data.h:499
QUBE_ORANGE
@ QUBE_ORANGE
Definition: data.h:185
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:140
Assignment::A_NO_FOCUS
@ A_NO_FOCUS
Definition: data.h:638
AFTER
@ AFTER
Definition: data.h:64
Match::M_DOCK_TOP
@ M_DOCK_TOP
Definition: data.h:579
Binding::whole_window
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:354
mark_mode_t
mark_mode_t
Definition: data.h:99
L_DEFAULT
@ L_DEFAULT
Definition: data.h:106
xoutput::rect
Rect rect
x, y, width, height
Definition: data.h:436
Window::max_aspect_ratio
double max_aspect_ratio
Definition: data.h:531
Workspace_Assignment::TAILQ_ENTRY
TAILQ_ENTRY(Workspace_Assignment) ws_assignments
NO_ORIENTATION
@ NO_ORIENTATION
Definition: data.h:60
Match::window_mode
enum Match::@14 window_mode
Match::workspace
struct regex * workspace
Definition: data.h:567
Con::FLOATING_USER_ON
@ FLOATING_USER_ON
Definition: data.h:804
Rect::x
uint32_t x
Definition: data.h:208
Con::mapped
bool mapped
Definition: data.h:672
marks
struct pending_marks * marks
Assignment::A_ANY
@ A_ANY
Definition: data.h:635
Match::M_DOCK_BOTTOM
@ M_DOCK_BOTTOM
Definition: data.h:580
xoutput::to_be_disabled
bool to_be_disabled
Definition: data.h:424
layout_t
layout_t
Container layouts.
Definition: data.h:105
Con::CT_CON
@ CT_CON
Definition: data.h:693
Con::geometry
struct Rect geometry
the geometry this window requested when getting mapped
Definition: data.h:718
L_SPLITV
@ L_SPLITV
Definition: data.h:111
reservedpx::right
uint32_t right
Definition: data.h:221
Match::error
char * error
Definition: data.h:559
I3_XKB_GROUP_MASK_3
@ I3_XKB_GROUP_MASK_3
Definition: data.h:130
Match::machine
struct regex * machine
Definition: data.h:568
Con::parent
struct Con * parent
Definition: data.h:706
Assignment
An Assignment makes specific windows go to a specific workspace/output or run a command for that wind...
Definition: data.h:622
Window::qubes_vmname
i3String * qubes_vmname
The name of the qubes vm.
Definition: data.h:466
Match::title
struct regex * title
Definition: data.h:561
xoutput::SLIST_HEAD
SLIST_HEAD(names_head, output_name) names_head
List of names for the output.
gaps_t::bottom
int bottom
Definition: data.h:154
POINTER_WARPING_NONE
@ POINTER_WARPING_NONE
Definition: data.h:147
gaps_t::right
int right
Definition: data.h:153
Match::urgent
enum Match::@12 urgent
MM_REPLACE
@ MM_REPLACE
Definition: data.h:99
all_cons
struct all_cons_head all_cons
Definition: tree.c:15
CF_NONE
@ CF_NONE
Definition: data.h:657
Match::dock
enum Match::@13 dock
Match::window_role
struct regex * window_role
Definition: data.h:566
Match::WM_TILING_USER
@ WM_TILING_USER
Definition: data.h:585
reservedpx::top
uint32_t top
Definition: data.h:222
regex::pattern
char * pattern
Definition: data.h:303
width_height::h
uint32_t h
Definition: data.h:233
I3_XKB_GROUP_MASK_ANY
@ I3_XKB_GROUP_MASK_ANY
Definition: data.h:127
Con::frame
surface_t frame
Definition: data.h:686
I3_XKB_GROUP_MASK_2
@ I3_XKB_GROUP_MASK_2
Definition: data.h:129
mark_t::name
char * name
Definition: data.h:662
gaps_mask_t
gaps_mask_t
Definition: data.h:158
Con::sticky_group
char * sticky_group
Definition: data.h:733
Con::last_split_layout
layout_t last_split_layout
Definition: data.h:783
reservedpx
Stores the reserved pixels on each screen edge read from a _NET_WM_STRUT_PARTIAL.
Definition: data.h:219
i3String
struct _i3String i3String
Opaque data structure for storing strings.
Definition: libi3.h:49
input_type_t
input_type_t
Binding input types.
Definition: data.h:118
Match::instance
struct regex * instance
Definition: data.h:564
Binding::B_UPON_KEYRELEASE_IGNORE_MODS
@ B_UPON_KEYRELEASE_IGNORE_MODS
Definition: data.h:344
HEBM_NONE
@ HEBM_NONE
Definition: data.h:92
Con::CT_WORKSPACE
@ CT_WORKSPACE
Definition: data.h:695
Con::TAILQ_HEAD
TAILQ_HEAD(floating_head, Con) floating_head
Match::M_BELOW
@ M_BELOW
Definition: data.h:604
deco_render_params::background
color_t background
Definition: data.h:248
Binding_Keycode
Stores a resolved keycode (from a keysym), including the modifier mask.
Definition: data.h:312
Autostart::command
char * command
Command, like in command mode.
Definition: data.h:393
warping_t
warping_t
Mouse pointer warping modes.
Definition: data.h:145
ws_assignments
struct ws_assignments_head ws_assignments
Definition: main.c:101
Window::shaped
bool shaped
The window has a nonrectangular shape.
Definition: data.h:537
L_TABBED
@ L_TABBED
Definition: data.h:108
mark_t
Definition: data.h:661
D_RIGHT
@ D_RIGHT
Definition: data.h:57
Match::WM_TILING_AUTO
@ WM_TILING_AUTO
Definition: data.h:584
Con::colormap
xcb_colormap_t colormap
Definition: data.h:835
Window::width_increment
int width_increment
Definition: data.h:518
HEBM_SMART
@ HEBM_SMART
Definition: data.h:96
Match::match_all_windows
bool match_all_windows
Definition: data.h:591
Match
A "match" is a data structure which acts like a mask or expression to match certain windows or not.
Definition: data.h:557
Assignment::TAILQ_ENTRY
TAILQ_ENTRY(Assignment) assignments
Con::window_icon_padding
int window_icon_padding
Whether the window icon should be displayed, and with what padding.
Definition: data.h:728
Con::sticky
bool sticky
Definition: data.h:767
Binding::command
char * command
Command, like in command mode.
Definition: data.h:379
B_MOUSE
@ B_MOUSE
Definition: data.h:120
Binding::keycode
uint32_t keycode
Keycode to bind.
Definition: data.h:361
Match::con_id
Con * con_id
Definition: data.h:590
Assignment::output
char * output
Definition: data.h:650
POINTER_WARPING_OUTPUT
@ POINTER_WARPING_OUTPUT
Definition: data.h:146
L_SPLITH
@ L_SPLITH
Definition: data.h:112
Window::max_height
int max_height
Definition: data.h:527
MM_ADD
@ MM_ADD
Definition: data.h:100
Con::TAILQ_ENTRY
TAILQ_ENTRY(Con) floating_windows
Con::frame_buffer
surface_t frame_buffer
Definition: data.h:687
Window::qubes_label
int qubes_label
The qubes label.
Definition: data.h:469
Match::WM_TILING
@ WM_TILING
Definition: data.h:586
Binding::input_type
input_type_t input_type
Definition: data.h:331
deco_render_params::border_style
int border_style
Definition: data.h:244
Match::U_LATEST
@ U_LATEST
Definition: data.h:572
Match::M_DONTCHECK
@ M_DONTCHECK
Definition: data.h:576
Match::U_DONTCHECK
@ U_DONTCHECK
Definition: data.h:571
deco_render_params
Stores the parameters for rendering a window decoration.
Definition: data.h:242
autostarts_always
struct autostarts_always_head autostarts_always
Definition: main.c:94
Binding_Keycode::modifiers
i3_event_state_mask_t modifiers
Definition: data.h:314
width_height::w
uint32_t w
Definition: data.h:232
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:701
GAPS_LEFT
@ GAPS_LEFT
Definition: data.h:163
HEBM_HORIZONTAL
@ HEBM_HORIZONTAL
Definition: data.h:94
Con::pixmap_recreated
bool pixmap_recreated
Definition: data.h:688
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:73
BS_PIXEL
@ BS_PIXEL
Definition: data.h:67
Con::layout
layout_t layout
Definition: data.h:783
GAPS_BOTTOM
@ GAPS_BOTTOM
Definition: data.h:162
xoutput
An Output is a physical output on your graphics driver.
Definition: data.h:413
Startup_Sequence::TAILQ_ENTRY
TAILQ_ENTRY(Startup_Sequence) sequences
SMART_BORDERS_OFF
@ SMART_BORDERS_OFF
Definition: data.h:84
Con::SCRATCHPAD_CHANGED
@ SCRATCHPAD_CHANGED
Definition: data.h:824
Match::WM_ANY
@ WM_ANY
Definition: data.h:583
D_DOWN
@ D_DOWN
Definition: data.h:59
Window::needs_take_focus
bool needs_take_focus
Whether the application needs to receive WM_TAKE_FOCUS.
Definition: data.h:486
Con::depth
uint16_t depth
Definition: data.h:832
Match::mark
struct regex * mark
Definition: data.h:565
position_t
position_t
Definition: data.h:63
Con::deco_render_params
struct deco_render_params * deco_render_params
Cache for the decoration rendering.
Definition: data.h:752
gaps_t::left
int left
Definition: data.h:155
reservedpx::bottom
uint32_t bottom
Definition: data.h:223
deco_render_params::color
struct Colortriple * color
Definition: data.h:243
Window::reserved
struct reservedpx reserved
Pixels the window reserves.
Definition: data.h:507
Binding::release
enum Binding::@10 release
If true, the binding should be executed upon a KeyRelease event, not a KeyPress (the default).
Con::TAILQ_ENTRY
TAILQ_ENTRY(Con) nodes
Con::old_id
int old_id
Definition: data.h:829
Workspace_Assignment::gaps_mask
gaps_mask_t gaps_mask
Definition: data.h:261
adjacent_t
adjacent_t
describes if the window is adjacent to the output (physical screen) edges.
Definition: data.h:78
Binding::border
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:349
Binding::exclude_titlebar
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:358
FOCUS_WRAPPING_ON
@ FOCUS_WRAPPING_ON
Definition: data.h:174
CF_OUTPUT
@ CF_OUTPUT
Definition: data.h:658
Con::workspace_layout
layout_t workspace_layout
Definition: data.h:783
Con::SCRATCHPAD_NONE
@ SCRATCHPAD_NONE
Definition: data.h:817
Con::TAILQ_HEAD
TAILQ_HEAD(marks_head, mark_t) marks_head
Match::window_type
xcb_atom_t window_type
Definition: data.h:569
GAPS_OUTER
@ GAPS_OUTER
Definition: data.h:166
Binding::event_state_mask
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:366
color_t
Definition: libi3.h:426
Con::scratchpad_state
enum Con::@20 scratchpad_state
Window::height_increment
int height_increment
Definition: data.h:519
Match::M_HERE
@ M_HERE
Definition: data.h:602
Binding::symbol
char * symbol
Symbol the user specified in configfile, if any.
Definition: data.h:371
HEBM_BOTH
@ HEBM_BOTH
Definition: data.h:95
Con::type
enum Con::@18 type
QUBE_GREEN
@ QUBE_GREEN
Definition: data.h:187
regex::regex
pcre2_code * regex
Definition: data.h:304
mark_t::TAILQ_ENTRY
TAILQ_ENTRY(mark_t) marks
Ignore_Event::SLIST_ENTRY
SLIST_ENTRY(Ignore_Event) ignore_events