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,
60 typedef enum { NO_ORIENTATION = 0,
63 typedef enum { BS_NORMAL = 0,
64  BS_NONE = 1,
66 
69 typedef enum { DONT_KILL_WINDOW = 0,
72 
74 typedef enum { ADJ_NONE = 0,
78  ADJ_LOWER_SCREEN_EDGE = (1 << 4) } adjacent_t;
79 
80 typedef enum { SMART_BORDERS_OFF,
83 
84 typedef enum { SMART_GAPS_OFF,
87 
88 typedef enum { HEBM_NONE = ADJ_NONE,
92  HEBM_SMART = (1 << 5),
94 
95 typedef enum { MM_REPLACE,
97 
101 typedef enum {
104  L_TABBED = 2,
106  L_OUTPUT = 4,
107  L_SPLITV = 5,
108  L_SPLITH = 6
109 } layout_t;
110 
114 typedef enum {
116  B_MOUSE = 1
117 } input_type_t;
118 
122 typedef enum {
127  I3_XKB_GROUP_MASK_4 = (1 << 3)
129 
136 typedef uint32_t i3_event_state_mask_t;
137 
141 typedef enum {
144 } warping_t;
145 
146 struct gaps_t {
147  int inner;
148  int top;
149  int right;
150  int bottom;
151  int left;
152 };
153 
157 typedef enum {
162 
175 struct Rect {
176  uint32_t x;
177  uint32_t y;
178  uint32_t width;
179  uint32_t height;
180 } __attribute__((packed));
181 
187 struct reservedpx {
188  uint32_t left;
189  uint32_t right;
190  uint32_t top;
191  uint32_t bottom;
192 };
193 
199 struct width_height {
200  uint32_t w;
201  uint32_t h;
202 };
203 
218  bool con_is_leaf;
219 };
220 
226  char *name;
227  char *output;
228  gaps_t gaps;
229 
232 };
233 
234 struct Ignore_Event {
235  int sequence;
237  time_t added;
238 
241 };
242 
248 struct Startup_Sequence {
250  char *id;
252  char *workspace;
254  SnLauncherContext *context;
257  time_t delete_at;
258 
260  sequences;
261 };
262 
272 struct regex {
273  char *pattern;
274  pcre *regex;
275  pcre_extra *extra;
276 };
277 
284  xcb_keycode_t keycode;
286 
288  keycodes;
289 };
290 
291 /******************************************************************************
292  * Major types
293  *****************************************************************************/
294 
301 struct Binding {
302  /* The type of input this binding is for. (Mouse bindings are not yet
303  * implemented. All bindings are currently assumed to be keyboard bindings.) */
305 
308  enum {
309  /* This binding will only be executed upon KeyPress events */
310  B_UPON_KEYPRESS = 0,
311  /* This binding will be executed either upon a KeyRelease event, or… */
312  B_UPON_KEYRELEASE = 1,
313  /* …upon a KeyRelease event, even if the modifiers don’t match. This
314  * state is triggered from get_binding() when the corresponding
315  * KeyPress (!) happens, so that users can release the modifier keys
316  * before releasing the actual key. */
318  } release;
319 
322  bool border;
323 
327  bool whole_window;
328 
331  bool exclude_titlebar;
332 
334  uint32_t keycode;
335 
340 
344  char *symbol;
345 
351 
353  char *command;
354 
356  bindings;
357 };
358 
366 struct Autostart {
368  char *command;
371  bool no_startup_id;
372 
374  autostarts;
375 
378 };
379 
380 struct output_name {
381  char *name;
382 
384  names;
385 };
386 
394 struct xoutput {
396  xcb_randr_output_t id;
397 
400  bool active;
401 
404  bool changed;
405  bool to_be_disabled;
406  bool primary;
407 
412  names_head;
413 
415  Con *con;
416 
418  Rect rect;
419 
421  outputs;
422 };
423 
429 struct Window {
430  xcb_window_t id;
431 
434  xcb_window_t leader;
435  xcb_window_t transient_for;
436 
439  uint32_t nr_assignments;
441 
442  char *class_class;
443  char *class_instance;
444 
446  i3String *name;
447 
451  char *role;
452 
454  bool name_x_changed;
455 
457  bool uses_net_wm_name;
458 
460  bool needs_take_focus;
461 
464  bool doesnt_accept_focus;
465 
467  xcb_atom_t window_type;
468 
470  uint32_t wm_desktop;
471 
473  enum { W_NODOCK = 0,
474  W_DOCK_TOP = 1,
475  W_DOCK_BOTTOM = 2 } dock;
476 
478  struct timeval urgent;
479 
481  struct reservedpx reserved;
482 
484  uint16_t depth;
485 
486  /* the wanted size of the window, used in combination with size
487  * increments (see below). */
488  int base_width;
489  int base_height;
490 
491  /* minimum increment size specified for the window (in pixels) */
492  int width_increment;
493  int height_increment;
494 
495  /* Minimum size specified for the window. */
496  int min_width;
497  int min_height;
498 
499  /* Maximum size specified for the window. */
500  int max_width;
501  int max_height;
502 
503  /* aspect ratio from WM_NORMAL_HINTS (MPlayer uses this for example) */
504  double min_aspect_ratio;
505  double max_aspect_ratio;
506 
508  bool shaped;
510  bool input_shaped;
511 };
512 
521 struct Match {
522  /* Set if a criterion was specified incorrectly. */
523  char *error;
524 
525  struct regex *title;
527  struct regex *class;
528  struct regex *instance;
529  struct regex *mark;
531  struct regex *workspace;
532  xcb_atom_t window_type;
533  enum {
535  U_LATEST = 0,
536  U_OLDEST = 1
538  enum {
540  M_NODOCK = 0,
542  M_DOCK_TOP = 2,
544  } dock;
545  xcb_window_t id;
546  enum { WM_ANY = 0,
549  Con *con_id;
550 
551  /* Where the window looking for a match should be inserted:
552  *
553  * M_HERE = the matched container will be replaced by the window
554  * (layout saving)
555  * M_ASSIGN_WS = the matched container will be inserted in the target_ws.
556  * M_BELOW = the window will be inserted as a child of the matched container
557  * (dockareas)
558  *
559  */
560  enum { M_HERE = 0,
561  M_ASSIGN_WS,
563 
565  matches;
566 
567  /* Whether this match was generated when restarting i3 inplace.
568  * Leads to not setting focus when managing a new window, because the old
569  * focus stack should be restored. */
570  bool restart_mode;
571 };
572 
581 struct Assignment {
593  enum {
594  A_ANY = 0,
595  A_COMMAND = (1 << 0),
596  A_TO_WORKSPACE = (1 << 1),
597  A_NO_FOCUS = (1 << 2),
598  A_TO_WORKSPACE_NUMBER = (1 << 3),
599  A_TO_OUTPUT = (1 << 4)
600  } type;
601 
603  Match match;
604 
606  union {
607  char *command;
608  char *workspace;
609  char *output;
610  } dest;
611 
613  assignments;
614 };
615 
617 typedef enum { CF_NONE = 0,
618  CF_OUTPUT = 1,
620 
621 struct mark_t {
622  char *name;
623 
625  marks;
626 };
627 
632 struct Con {
633  bool mapped;
634 
635  /* Should this container be marked urgent? This gets set when the window
636  * inside this container (if any) sets the urgency hint, for example. */
637  bool urgent;
638 
644  uint8_t ignore_unmap;
645 
646  /* The surface used for the frame window. */
649  bool pixmap_recreated;
650 
651  enum {
652  CT_ROOT = 0,
654  CT_CON = 2,
656  CT_WORKSPACE = 4,
657  CT_DOCKAREA = 5
658  } type;
659 
662  int num;
663 
666 
667  struct Con *parent;
668 
669  /* The position and size for this con. These coordinates are absolute. Note
670  * that the rect of a container does not include the decoration. */
671  struct Rect rect;
672  /* The position and size of the actual client window. These coordinates are
673  * relative to the container's rect. */
674  struct Rect window_rect;
675  /* The position and size of the container's decoration. These coordinates
676  * are relative to the container's parent's rect. */
677  struct Rect deco_rect;
679  struct Rect geometry;
680 
681  char *name;
682 
684  char *title_format;
685 
686  /* a sticky-group is an identifier which bundles several containers to a
687  * group. The contents are shared between all of them, that is they are
688  * displayed on whichever of the containers is currently visible */
689  char *sticky_group;
690 
691  /* user-definable marks to jump to this container later */
694  /* cached to decide whether a redraw is needed */
696 
697  double percent;
698 
699  /* the x11 border pixel attribute */
700  int border_width;
702 
703  struct Window *window;
704 
705  /* timer used for disabling urgency */
706  struct ev_timer *urgency_timer;
707 
710 
711  /* Only workspace-containers can have floating clients */
714 
716  nodes_head;
717 
719  focus_head;
720 
723 
725 
726  /* Whether this window should stick to the glass. This corresponds to
727  * the _NET_WM_STATE_STICKY atom and will only be respected if the
728  * window is floating. */
729  bool sticky;
730 
731  /* layout is the layout of this container: one of split[v|h], stacked or
732  * tabbed. Special containers in the tree (above workspaces) have special
733  * layouts like dockarea or output.
734  *
735  * last_split_layout is one of splitv or splith to support the old "layout
736  * default" command which by now should be "layout splitv" or "layout
737  * splith" explicitly.
738  *
739  * workspace_layout is only for type == CT_WORKSPACE cons. When you change
740  * the layout of a workspace without any children, i3 cannot just set the
741  * layout (because workspaces need to be splitv/splith to allow focus
742  * parent and opening new containers). Instead, it stores the requested
743  * layout in workspace_layout and creates a new split container with that
744  * layout whenever a new container is attached to the workspace. */
753  enum {
756  FLOATING_AUTO_ON = 2,
757  FLOATING_USER_ON = 3
758  } floating;
759 
761  nodes;
762 
764  focused;
765 
767  all_cons;
768 
771 
773  void (*on_remove_child)(Con *);
774 
775  enum {
776  /* Not a scratchpad window. */
777  SCRATCHPAD_NONE = 0,
778 
779  /* Just moved to scratchpad, not resized by the user yet.
780  * Window will be auto-centered and sized appropriately. */
781  SCRATCHPAD_FRESH = 1,
782 
783  /* The user changed position/size of the scratchpad window. */
786 
787  /* The ID of this container before restarting. Necessary to correctly
788  * interpret back-references in the JSON (such as the focus stack). */
789  int old_id;
790 
791  /* Depth of the container window */
792  uint16_t depth;
793 
794  /* The colormap for this con if a custom one is used. */
795  xcb_colormap_t colormap;
796 };
SMART_BORDERS_ON
Definition: data.h:80
xoutput::outputs
outputs
Definition: data.h:419
Binding::B_UPON_KEYRELEASE_IGNORE_MODS
Definition: data.h:316
Con::window_rect
struct Rect window_rect
Definition: data.h:672
Window::name
i3String * name
The name of the window.
Definition: data.h:444
Con::floating
enum Con::@21 floating
floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whet...
Binding
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
Definition: data.h:299
Window::ran_assignments
Assignment ** ran_assignments
Definition: data.h:438
HEBM_VERTICAL
Definition: data.h:88
output_name::names
names
Definition: data.h:382
regex::pattern
char * pattern
Definition: data.h:272
ADJ_RIGHT_SCREEN_EDGE
Definition: data.h:75
HEBM_NONE
Definition: data.h:87
Match::window_type
xcb_atom_t window_type
Definition: data.h:530
Assignment::A_ANY
Definition: data.h:592
Window::depth
uint16_t depth
Depth of the window.
Definition: data.h:482
Ignore_Event
Definition: data.h:233
mark_t::name
char * name
Definition: data.h:620
Match::M_BELOW
Definition: data.h:560
Window
A 'Window' is a type which contains an xcb_window_t and all the related information (hints like _NET_...
Definition: data.h:427
xoutput::names_head
names_head
List of names for the output.
Definition: data.h:410
KILL_CLIENT
Definition: data.h:70
Con::pixmap_recreated
bool pixmap_recreated
Definition: data.h:647
mark_mode_t
mark_mode_t
Definition: data.h:94
width_height
Stores a width/height pair, used as part of deco_render_params to check whether the rects width/heigh...
Definition: data.h:198
deco_render_params::con_is_leaf
bool con_is_leaf
Definition: data.h:217
regex::extra
pcre_extra * extra
Definition: data.h:274
Window::min_width
int min_width
Definition: data.h:494
BS_NONE
Definition: data.h:63
ADJ_LOWER_SCREEN_EDGE
Definition: data.h:77
gaps_t::right
int right
Definition: data.h:148
L_DEFAULT
Definition: data.h:101
FOCUS_WRAPPING_OFF
Definition: data.h:157
smart_gaps_t
smart_gaps_t
Definition: data.h:83
Con::floating_head
floating_head
Definition: data.h:711
deco_render_params::parent_layout
layout_t parent_layout
Definition: data.h:216
Binding::release
enum Binding::@12 release
If true, the binding should be executed upon a KeyRelease event, not a KeyPress (the default).
width_height::h
uint32_t h
Definition: data.h:200
Window::max_aspect_ratio
double max_aspect_ratio
Definition: data.h:503
Con::sticky
bool sticky
Definition: data.h:727
Assignment::assignments
assignments
Definition: data.h:611
Window::max_height
int max_height
Definition: data.h:499
Con::layout
layout_t layout
Definition: data.h:743
Binding::B_UPON_KEYRELEASE
Definition: data.h:311
output_name
Definition: data.h:378
Window::window_type
xcb_atom_t window_type
The _NET_WM_WINDOW_TYPE for this window.
Definition: data.h:465
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:68
Rect
Stores a rectangle, for example the size of a window, the child window etc.
Definition: data.h:174
SMART_GAPS_ON
Definition: data.h:84
Match::mark
struct regex * mark
Definition: data.h:527
Binding_Keycode
Stores a resolved keycode (from a keysym), including the modifier mask.
Definition: data.h:282
surface_t
Definition: libi3.h:563
deco_render_params::con_window_rect
struct width_height con_window_rect
Definition: data.h:213
Con::deco_rect
struct Rect deco_rect
Definition: data.h:675
Match::M_DOCK_TOP
Definition: data.h:540
Window::max_width
int max_width
Definition: data.h:498
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:326
I3_XKB_GROUP_MASK_ANY
Definition: data.h:122
Match::WM_FLOATING
Definition: data.h:546
SLIST_HEAD
#define SLIST_HEAD(name, type)
Definition: queue.h:93
Con::on_remove_child
void(* on_remove_child)(Con *)
callbacks
Definition: data.h:771
mark_t::marks
marks
Definition: data.h:623
BS_PIXEL
Definition: data.h:64
Match::application
struct regex * application
Definition: data.h:524
Con::percent
double percent
Definition: data.h:695
SMART_BORDERS_NO_GAPS
Definition: data.h:81
BS_NORMAL
Definition: data.h:62
Con::border_width
int border_width
Definition: data.h:698
Match::WM_TILING
Definition: data.h:545
reservedpx::left
uint32_t left
Definition: data.h:187
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:660
Window::reserved
struct reservedpx reserved
Pixels the window reserves.
Definition: data.h:479
Window::wm_desktop
uint32_t wm_desktop
The _NET_WM_DESKTOP for this window.
Definition: data.h:468
CF_GLOBAL
Definition: data.h:617
Con::workspace_layout
layout_t workspace_layout
Definition: data.h:743
Window::width_increment
int width_increment
Definition: data.h:490
Binding::symbol
char * symbol
Symbol the user specified in configfile, if any.
Definition: data.h:343
width_height::w
uint32_t w
Definition: data.h:199
FOCUS_WRAPPING_FORCE
Definition: data.h:159
SMART_GAPS_INVERSE_OUTER
Definition: data.h:85
HEBM_BOTH
Definition: data.h:90
Window::W_DOCK_TOP
Definition: data.h:472
xoutput::rect
Rect rect
x, y, width, height
Definition: data.h:416
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:121
Startup_Sequence::sequences
sequences
Definition: data.h:259
HEBM_SMART
Definition: data.h:91
Match::restart_mode
bool restart_mode
Definition: data.h:568
Con::colormap
xcb_colormap_t colormap
Definition: data.h:793
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:437
L_OUTPUT
Definition: data.h:105
L_STACKED
Definition: data.h:102
Match::matches
matches
Definition: data.h:563
Window::min_aspect_ratio
double min_aspect_ratio
Definition: data.h:502
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:330
Assignment::workspace
char * workspace
Definition: data.h:606
Window::id
xcb_window_t id
Definition: data.h:428
Binding::command
char * command
Command, like in command mode.
Definition: data.h:352
Window::doesnt_accept_focus
bool doesnt_accept_focus
Whether this window accepts focus.
Definition: data.h:462
Con::marks_head
marks_head
Definition: data.h:691
Match::M_NODOCK
Definition: data.h:538
Con::all_cons
all_cons
Definition: data.h:765
Con::frame_buffer
surface_t frame_buffer
Definition: data.h:646
Workspace_Assignment
Stores which workspace (by name or number) goes to which output and its gaps config.
Definition: data.h:224
Binding_Keycode::keycode
xcb_keycode_t keycode
Definition: data.h:283
deco_render_params::color
struct Colortriple * color
Definition: data.h:210
Rect::height
uint32_t height
Definition: data.h:178
Window::urgent
struct timeval urgent
When this window was marked urgent.
Definition: data.h:476
Con::swallow_head
swallow_head
Definition: data.h:720
SMART_BORDERS_OFF
Definition: data.h:79
CF_NONE
Definition: data.h:615
Con::SCRATCHPAD_FRESH
Definition: data.h:779
POINTER_WARPING_NONE
Definition: data.h:142
Window::base_height
int base_height
Definition: data.h:487
Window::dock
enum Window::@13 dock
Whether the window says it is a dock window.
Con::border_style
border_style_t border_style
Definition: data.h:744
FOCUS_WRAPPING_ON
Definition: data.h:158
Assignment::dest
union Assignment::@19 dest
destination workspace/command/output, depending on the type
CF_OUTPUT
Definition: data.h:616
smart_borders_t
smart_borders_t
Definition: data.h:79
gaps_t
Definition: data.h:145
Con::nodes
nodes
Definition: data.h:759
DONT_KILL_WINDOW
Definition: data.h:68
L_TABBED
Definition: data.h:103
xoutput::id
xcb_randr_output_t id
Output id, so that we can requery the output directly later.
Definition: data.h:394
Con::urgency_timer
struct ev_timer * urgency_timer
Definition: data.h:704
Binding_Keycode::keycodes
keycodes
Definition: data.h:287
Match::title
struct regex * title
Definition: data.h:523
Rect::width
uint32_t width
Definition: data.h:177
Con::scratchpad_state
enum Con::@22 scratchpad_state
Con::FLOATING_AUTO_OFF
Definition: data.h:752
Window::role
char * role
The WM_WINDOW_ROLE of this window (for example, the pidgin buddy window sets "buddy list").
Definition: data.h:449
Con::current_border_width
int current_border_width
Definition: data.h:699
Startup_Sequence
Stores internal information about a startup sequence, like the workspace it was initiated on.
Definition: data.h:247
reservedpx::bottom
uint32_t bottom
Definition: data.h:190
input_type_t
input_type_t
Binding input types.
Definition: data.h:113
Window::transient_for
xcb_window_t transient_for
Definition: data.h:433
border_style_t
border_style_t
Definition: data.h:62
xoutput::to_be_disabled
bool to_be_disabled
Definition: data.h:403
Con::FLOATING_USER_ON
Definition: data.h:755
regex::regex
pcre * regex
Definition: data.h:273
libi3.h
deco_render_params::con_rect
struct width_height con_rect
Definition: data.h:212
Rect::x
uint32_t x
Definition: data.h:175
deco_render_params
Stores the parameters for rendering a window decoration.
Definition: data.h:209
D_LEFT
Definition: data.h:56
adjacent_t
adjacent_t
describes if the window is adjacent to the output (physical screen) edges.
Definition: data.h:73
direction_t
direction_t
Definition: data.h:55
B_MOUSE
Definition: data.h:115
Window::min_height
int min_height
Definition: data.h:495
Con::SCRATCHPAD_NONE
Definition: data.h:775
Con::title_format
char * title_format
The format with which the window's name should be displayed.
Definition: data.h:682
TAILQ_HEAD
#define TAILQ_HEAD(name, type)
Definition: queue.h:318
Match::WM_ANY
Definition: data.h:544
Window::name_x_changed
bool name_x_changed
Flag to force re-rendering the decoration upon changes.
Definition: data.h:452
warping_t
warping_t
Mouse pointer warping modes.
Definition: data.h:140
Window::W_DOCK_BOTTOM
Definition: data.h:473
Window::shaped
bool shaped
The window has a nonrectangular shape.
Definition: data.h:506
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:432
NO_ORIENTATION
Definition: data.h:59
Window::class_instance
char * class_instance
Definition: data.h:441
xoutput::changed
bool changed
Internal flags, necessary for querying RandR screens (happens in two stages)
Definition: data.h:402
Con::CT_DOCKAREA
Definition: data.h:655
Con::parent
struct Con * parent
Definition: data.h:665
Workspace_Assignment::ws_assignments
ws_assignments
Definition: data.h:230
Con::ignore_unmap
uint8_t ignore_unmap
This counter contains the number of UnmapNotify events for this container (or, more precisely,...
Definition: data.h:642
Match::U_LATEST
Definition: data.h:533
mark_t
Definition: data.h:619
Con::focus_head
focus_head
Definition: data.h:717
reservedpx::right
uint32_t right
Definition: data.h:188
Window::base_width
int base_width
Definition: data.h:486
Window::W_NODOCK
Definition: data.h:471
reservedpx
Stores the reserved pixels on each screen edge read from a _NET_WM_STRUT_PARTIAL.
Definition: data.h:186
xoutput::active
bool active
Whether the output is currently active (has a CRTC attached with a valid mode)
Definition: data.h:398
Con::floating_windows
floating_windows
Definition: data.h:768
orientation_t
orientation_t
Definition: data.h:59
Startup_Sequence::workspace
char * workspace
workspace on which this startup was initiated
Definition: data.h:251
Ignore_Event::sequence
int sequence
Definition: data.h:234
Window::class_class
char * class_class
Definition: data.h:440
Con::CT_CON
Definition: data.h:652
D_DOWN
Definition: data.h:59
Match::M_HERE
Definition: data.h:558
Match::window_mode
enum Match::@16 window_mode
Match::M_ASSIGN_WS
Definition: data.h:559
Autostart::autostarts
autostarts
Definition: data.h:372
Assignment::A_TO_WORKSPACE
Definition: data.h:594
HEBM_HORIZONTAL
Definition: data.h:89
xoutput::con
Con * con
Pointer to the Con which represents this output.
Definition: data.h:413
color_t
Definition: libi3.h:415
Assignment::output
char * output
Definition: data.h:607
Window::needs_take_focus
bool needs_take_focus
Whether the application needs to receive WM_TAKE_FOCUS.
Definition: data.h:458
queue.h
ADJ_NONE
Definition: data.h:73
I3_XKB_GROUP_MASK_2
Definition: data.h:124
focus_wrapping_t
focus_wrapping_t
Focus wrapping modes.
Definition: data.h:156
Con::last_split_layout
layout_t last_split_layout
Definition: data.h:743
Con::rect
struct Rect rect
Definition: data.h:669
Assignment::type
enum Assignment::@18 type
type of this assignment:
Assignment
An Assignment makes specific windows go to a specific workspace/output or run a command for that wind...
Definition: data.h:579
hide_edge_borders_mode_t
hide_edge_borders_mode_t
Definition: data.h:87
xoutput
An Output is a physical output on your graphics driver.
Definition: data.h:392
Con::window
struct Window * window
Definition: data.h:701
Match::insert_where
enum Match::@17 insert_where
Binding::keycode
uint32_t keycode
Keycode to bind.
Definition: data.h:333
Assignment::command
char * command
Definition: data.h:605
VERT
Definition: data.h:61
Ignore_Event::added
time_t added
Definition: data.h:236
Binding::input_type
input_type_t input_type
Definition: data.h:303
Con::sticky_group
char * sticky_group
Definition: data.h:687
deco_render_params::background
color_t background
Definition: data.h:215
gaps_t::inner
int inner
Definition: data.h:146
Con::mark_changed
bool mark_changed
Definition: data.h:693
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:338
Ignore_Event::ignore_events
ignore_events
Definition: data.h:239
Match::instance
struct regex * instance
Definition: data.h:526
D_RIGHT
Definition: data.h:57
gaps_t::top
int top
Definition: data.h:147
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:135
Startup_Sequence::context
SnLauncherContext * context
libstartup-notification context for this launch
Definition: data.h:253
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:321
I3_XKB_GROUP_MASK_4
Definition: data.h:126
Autostart
Holds a command specified by either an:
Definition: data.h:364
Con::FLOATING_USER_OFF
Definition: data.h:753
Workspace_Assignment::output
char * output
Definition: data.h:226
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:256
Match::M_DOCK_BOTTOM
Definition: data.h:541
MM_ADD
Definition: data.h:95
layout_t
layout_t
Container layouts.
Definition: data.h:100
Workspace_Assignment::name
char * name
Definition: data.h:225
Autostart::autostarts_always
autostarts_always
Definition: data.h:375
regex
Regular expression wrapper.
Definition: data.h:271
Assignment::A_TO_WORKSPACE_NUMBER
Definition: data.h:596
Match::U_DONTCHECK
Definition: data.h:532
Con::frame
surface_t frame
Definition: data.h:645
B_KEYBOARD
Definition: data.h:114
Con::geometry
struct Rect geometry
the geometry this window requested when getting mapped
Definition: data.h:677
Match::con_id
Con * con_id
Definition: data.h:547
deco_render_params::con_deco_rect
Rect con_deco_rect
Definition: data.h:214
MM_REPLACE
Definition: data.h:94
Con::nodes_head
nodes_head
Definition: data.h:714
Match::workspace
struct regex * workspace
Definition: data.h:529
Workspace_Assignment::gaps
gaps_t gaps
Definition: data.h:227
Assignment::match
Match match
the criteria to check if a window matches
Definition: data.h:601
output_name::name
char * name
Definition: data.h:379
Autostart::no_startup_id
bool no_startup_id
no_startup_id flag for start_application().
Definition: data.h:369
Match::id
xcb_window_t id
Definition: data.h:543
Binding::B_UPON_KEYPRESS
Definition: data.h:309
ADJ_UPPER_SCREEN_EDGE
Definition: data.h:76
KILL_WINDOW
Definition: data.h:69
HEBM_SMART_NO_GAPS
Definition: data.h:92
Assignment::A_COMMAND
Definition: data.h:593
Con::urgent
bool urgent
Definition: data.h:635
L_DOCKAREA
Definition: data.h:104
Con::CT_FLOATING_CON
Definition: data.h:653
Match::M_DOCK_ANY
Definition: data.h:539
Con::depth
uint16_t depth
Definition: data.h:790
i3String
struct _i3String i3String
Opaque data structure for storing strings.
Definition: libi3.h:48
Assignment::A_NO_FOCUS
Definition: data.h:595
Con::FLOATING_AUTO_ON
Definition: data.h:754
Startup_Sequence::id
char * id
startup ID for this sequence, generated by libstartup-notification
Definition: data.h:249
Con::CT_OUTPUT
Definition: data.h:651
Window::input_shaped
bool input_shaped
The window has a nonrectangular input shape.
Definition: data.h:508
TAILQ_ENTRY
#define TAILQ_ENTRY(type)
Definition: queue.h:327
Match::window_role
struct regex * window_role
Definition: data.h:528
Binding_Keycode::modifiers
i3_event_state_mask_t modifiers
Definition: data.h:284
reservedpx::top
uint32_t top
Definition: data.h:189
Con::CT_ROOT
Definition: data.h:650
Binding::bindings
bindings
Definition: data.h:355
Match::error
char * error
Definition: data.h:521
Con::SCRATCHPAD_CHANGED
Definition: data.h:782
Window::height_increment
int height_increment
Definition: data.h:491
Con::type
enum Con::@20 type
Ignore_Event::response_type
int response_type
Definition: data.h:235
Match::U_OLDEST
Definition: data.h:534
Binding::keycodes_head
keycodes_head
Only in use if symbol != NULL.
Definition: data.h:349
HORIZ
Definition: data.h:60
Con::CT_WORKSPACE
Definition: data.h:654
Con::old_id
int old_id
Definition: data.h:787
gaps_t::bottom
int bottom
Definition: data.h:149
Assignment::A_TO_OUTPUT
Definition: data.h:597
__attribute__
struct reservedpx __attribute__
Autostart::command
char * command
Command, like in command mode.
Definition: data.h:366
xoutput::primary
bool primary
Definition: data.h:404
Match
A "match" is a data structure which acts like a mask or expression to match certain windows or not.
Definition: data.h:519
fullscreen_mode_t
fullscreen_mode_t
Fullscreen modes.
Definition: data.h:615
Colortriple
Part of the struct Config.
Definition: configuration.h:54
POINTER_WARPING_OUTPUT
Definition: data.h:141
L_SPLITH
Definition: data.h:107
Con::fullscreen_mode
fullscreen_mode_t fullscreen_mode
Definition: data.h:722
Con::name
char * name
Definition: data.h:679
deco_render_params::border_style
int border_style
Definition: data.h:211
Match::urgent
enum Match::@14 urgent
I3_XKB_GROUP_MASK_1
Definition: data.h:123
I3_XKB_GROUP_MASK_3
Definition: data.h:125
SLIST_ENTRY
#define SLIST_ENTRY(type)
Definition: queue.h:101
ADJ_LEFT_SCREEN_EDGE
Definition: data.h:74
Match::dock
enum Match::@15 dock
Match::M_DONTCHECK
Definition: data.h:537
Con::mapped
bool mapped
Definition: data.h:631
Window::uses_net_wm_name
bool uses_net_wm_name
Whether the application used _NET_WM_NAME.
Definition: data.h:455
SMART_GAPS_OFF
Definition: data.h:83
Rect::y
uint32_t y
Definition: data.h:176
Con
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition: data.h:630
Con::gaps
gaps_t gaps
Only applicable for containers of type CT_WORKSPACE.
Definition: data.h:663
D_UP
Definition: data.h:58
L_SPLITV
Definition: data.h:106
gaps_t::left
int left
Definition: data.h:150
Con::focused
focused
Definition: data.h:762