File indexing completed on 2025-01-18 10:14:41
0001 #ifndef __XCB_EWMH_H__
0002 #define __XCB_EWMH_H__
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049 #include <xcb/xcb.h>
0050 #include <stdlib.h>
0051
0052 #ifdef __cplusplus
0053 extern "C" {
0054 #endif
0055
0056
0057
0058
0059 typedef struct {
0060
0061 xcb_connection_t *connection;
0062
0063 xcb_screen_t **screens;
0064 int nb_screens;
0065
0066 xcb_atom_t *_NET_WM_CM_Sn;
0067
0068 xcb_atom_t _NET_SUPPORTED;
0069 xcb_atom_t _NET_CLIENT_LIST;
0070 xcb_atom_t _NET_CLIENT_LIST_STACKING;
0071 xcb_atom_t _NET_NUMBER_OF_DESKTOPS;
0072 xcb_atom_t _NET_DESKTOP_GEOMETRY;
0073 xcb_atom_t _NET_DESKTOP_VIEWPORT;
0074 xcb_atom_t _NET_CURRENT_DESKTOP;
0075 xcb_atom_t _NET_DESKTOP_NAMES;
0076 xcb_atom_t _NET_ACTIVE_WINDOW;
0077 xcb_atom_t _NET_WORKAREA;
0078 xcb_atom_t _NET_SUPPORTING_WM_CHECK;
0079 xcb_atom_t _NET_VIRTUAL_ROOTS;
0080 xcb_atom_t _NET_DESKTOP_LAYOUT;
0081 xcb_atom_t _NET_SHOWING_DESKTOP;
0082 xcb_atom_t _NET_CLOSE_WINDOW;
0083 xcb_atom_t _NET_MOVERESIZE_WINDOW;
0084 xcb_atom_t _NET_WM_MOVERESIZE;
0085 xcb_atom_t _NET_RESTACK_WINDOW;
0086 xcb_atom_t _NET_REQUEST_FRAME_EXTENTS;
0087 xcb_atom_t _NET_WM_NAME;
0088 xcb_atom_t _NET_WM_VISIBLE_NAME;
0089 xcb_atom_t _NET_WM_ICON_NAME;
0090 xcb_atom_t _NET_WM_VISIBLE_ICON_NAME;
0091 xcb_atom_t _NET_WM_DESKTOP;
0092 xcb_atom_t _NET_WM_WINDOW_TYPE;
0093 xcb_atom_t _NET_WM_STATE;
0094 xcb_atom_t _NET_WM_ALLOWED_ACTIONS;
0095 xcb_atom_t _NET_WM_STRUT;
0096 xcb_atom_t _NET_WM_STRUT_PARTIAL;
0097 xcb_atom_t _NET_WM_ICON_GEOMETRY;
0098 xcb_atom_t _NET_WM_ICON;
0099 xcb_atom_t _NET_WM_PID;
0100 xcb_atom_t _NET_WM_HANDLED_ICONS;
0101 xcb_atom_t _NET_WM_USER_TIME;
0102 xcb_atom_t _NET_WM_USER_TIME_WINDOW;
0103 xcb_atom_t _NET_FRAME_EXTENTS;
0104 xcb_atom_t _NET_WM_PING;
0105 xcb_atom_t _NET_WM_SYNC_REQUEST;
0106 xcb_atom_t _NET_WM_SYNC_REQUEST_COUNTER;
0107 xcb_atom_t _NET_WM_FULLSCREEN_MONITORS;
0108 xcb_atom_t _NET_WM_FULL_PLACEMENT;
0109 xcb_atom_t UTF8_STRING;
0110 xcb_atom_t WM_PROTOCOLS;
0111 xcb_atom_t MANAGER;
0112 xcb_atom_t _NET_WM_WINDOW_TYPE_DESKTOP;
0113 xcb_atom_t _NET_WM_WINDOW_TYPE_DOCK;
0114 xcb_atom_t _NET_WM_WINDOW_TYPE_TOOLBAR;
0115 xcb_atom_t _NET_WM_WINDOW_TYPE_MENU;
0116 xcb_atom_t _NET_WM_WINDOW_TYPE_UTILITY;
0117 xcb_atom_t _NET_WM_WINDOW_TYPE_SPLASH;
0118 xcb_atom_t _NET_WM_WINDOW_TYPE_DIALOG;
0119 xcb_atom_t _NET_WM_WINDOW_TYPE_DROPDOWN_MENU;
0120 xcb_atom_t _NET_WM_WINDOW_TYPE_POPUP_MENU;
0121 xcb_atom_t _NET_WM_WINDOW_TYPE_TOOLTIP;
0122 xcb_atom_t _NET_WM_WINDOW_TYPE_NOTIFICATION;
0123 xcb_atom_t _NET_WM_WINDOW_TYPE_COMBO;
0124 xcb_atom_t _NET_WM_WINDOW_TYPE_DND;
0125 xcb_atom_t _NET_WM_WINDOW_TYPE_NORMAL;
0126 xcb_atom_t _NET_WM_STATE_MODAL;
0127 xcb_atom_t _NET_WM_STATE_STICKY;
0128 xcb_atom_t _NET_WM_STATE_MAXIMIZED_VERT;
0129 xcb_atom_t _NET_WM_STATE_MAXIMIZED_HORZ;
0130 xcb_atom_t _NET_WM_STATE_SHADED;
0131 xcb_atom_t _NET_WM_STATE_SKIP_TASKBAR;
0132 xcb_atom_t _NET_WM_STATE_SKIP_PAGER;
0133 xcb_atom_t _NET_WM_STATE_HIDDEN;
0134 xcb_atom_t _NET_WM_STATE_FULLSCREEN;
0135 xcb_atom_t _NET_WM_STATE_ABOVE;
0136 xcb_atom_t _NET_WM_STATE_BELOW;
0137 xcb_atom_t _NET_WM_STATE_DEMANDS_ATTENTION;
0138 xcb_atom_t _NET_WM_ACTION_MOVE;
0139 xcb_atom_t _NET_WM_ACTION_RESIZE;
0140 xcb_atom_t _NET_WM_ACTION_MINIMIZE;
0141 xcb_atom_t _NET_WM_ACTION_SHADE;
0142 xcb_atom_t _NET_WM_ACTION_STICK;
0143 xcb_atom_t _NET_WM_ACTION_MAXIMIZE_HORZ;
0144 xcb_atom_t _NET_WM_ACTION_MAXIMIZE_VERT;
0145 xcb_atom_t _NET_WM_ACTION_FULLSCREEN;
0146 xcb_atom_t _NET_WM_ACTION_CHANGE_DESKTOP;
0147 xcb_atom_t _NET_WM_ACTION_CLOSE;
0148 xcb_atom_t _NET_WM_ACTION_ABOVE;
0149 xcb_atom_t _NET_WM_ACTION_BELOW;
0150 } xcb_ewmh_connection_t;
0151
0152
0153
0154
0155 typedef struct {
0156
0157 uint32_t atoms_len;
0158
0159 xcb_atom_t *atoms;
0160
0161 xcb_get_property_reply_t *_reply;
0162 } xcb_ewmh_get_atoms_reply_t;
0163
0164
0165
0166
0167 typedef struct {
0168
0169 uint32_t windows_len;
0170
0171 xcb_window_t *windows;
0172
0173 xcb_get_property_reply_t *_reply;
0174 } xcb_ewmh_get_windows_reply_t;
0175
0176
0177
0178
0179 typedef struct {
0180
0181 uint32_t strings_len;
0182
0183 char *strings;
0184
0185 xcb_get_property_reply_t *_reply;
0186 } xcb_ewmh_get_utf8_strings_reply_t;
0187
0188
0189
0190
0191 typedef struct {
0192
0193 uint32_t x;
0194
0195 uint32_t y;
0196 } xcb_ewmh_coordinates_t;
0197
0198
0199
0200
0201 typedef struct {
0202
0203 uint32_t desktop_viewport_len;
0204
0205 xcb_ewmh_coordinates_t *desktop_viewport;
0206
0207 xcb_get_property_reply_t *_reply;
0208 } xcb_ewmh_get_desktop_viewport_reply_t;
0209
0210
0211
0212
0213 typedef struct {
0214
0215 uint32_t x;
0216
0217 uint32_t y;
0218
0219 uint32_t width;
0220
0221 uint32_t height;
0222 } xcb_ewmh_geometry_t;
0223
0224
0225
0226
0227 typedef struct {
0228
0229 uint32_t workarea_len;
0230
0231 xcb_ewmh_geometry_t *workarea;
0232
0233 xcb_get_property_reply_t *_reply;
0234 } xcb_ewmh_get_workarea_reply_t;
0235
0236
0237
0238
0239 typedef enum {
0240
0241
0242 XCB_EWMH_CLIENT_SOURCE_TYPE_NONE = 0,
0243
0244 XCB_EWMH_CLIENT_SOURCE_TYPE_NORMAL = 1,
0245
0246 XCB_EWMH_CLIENT_SOURCE_TYPE_OTHER = 2
0247 } xcb_ewmh_client_source_type_t;
0248
0249
0250
0251
0252 typedef enum {
0253
0254 XCB_EWMH_WM_ORIENTATION_HORZ = 0,
0255
0256 XCB_EWMH_WM_ORIENTATION_VERT = 1
0257 } xcb_ewmh_desktop_layout_orientation_t;
0258
0259
0260
0261
0262 typedef enum {
0263
0264 XCB_EWMH_WM_TOPLEFT = 0,
0265
0266 XCB_EWMH_WM_TOPRIGHT = 1,
0267
0268 XCB_EWMH_WM_BOTTOMRIGHT = 2,
0269
0270 XCB_EWMH_WM_BOTTOMLEFT = 3
0271 } xcb_ewmh_desktop_layout_starting_corner_t;
0272
0273
0274
0275
0276
0277
0278 typedef struct {
0279
0280 uint32_t orientation;
0281
0282 uint32_t columns;
0283
0284 uint32_t rows;
0285
0286 uint32_t starting_corner;
0287 } xcb_ewmh_get_desktop_layout_reply_t;
0288
0289
0290
0291
0292
0293 typedef enum {
0294
0295 XCB_EWMH_MOVERESIZE_WINDOW_X = (1 << 8),
0296
0297 XCB_EWMH_MOVERESIZE_WINDOW_Y = (1 << 9),
0298
0299 XCB_EWMH_MOVERESIZE_WINDOW_WIDTH = (1 << 10),
0300
0301 XCB_EWMH_MOVERESIZE_WINDOW_HEIGHT = (1 << 11)
0302 } xcb_ewmh_moveresize_window_opt_flags_t;
0303
0304
0305
0306
0307 typedef enum {
0308
0309 XCB_EWMH_WM_MOVERESIZE_SIZE_TOPLEFT = 0,
0310
0311 XCB_EWMH_WM_MOVERESIZE_SIZE_TOP = 1,
0312
0313 XCB_EWMH_WM_MOVERESIZE_SIZE_TOPRIGHT = 2,
0314
0315 XCB_EWMH_WM_MOVERESIZE_SIZE_RIGHT = 3,
0316
0317 XCB_EWMH_WM_MOVERESIZE_SIZE_BOTTOMRIGHT = 4,
0318
0319 XCB_EWMH_WM_MOVERESIZE_SIZE_BOTTOM = 5,
0320
0321 XCB_EWMH_WM_MOVERESIZE_SIZE_BOTTOMLEFT = 6,
0322
0323 XCB_EWMH_WM_MOVERESIZE_SIZE_LEFT = 7,
0324
0325 XCB_EWMH_WM_MOVERESIZE_MOVE = 8,
0326
0327 XCB_EWMH_WM_MOVERESIZE_SIZE_KEYBOARD = 9,
0328
0329 XCB_EWMH_WM_MOVERESIZE_MOVE_KEYBOARD = 10,
0330
0331 XCB_EWMH_WM_MOVERESIZE_CANCEL = 11
0332 } xcb_ewmh_moveresize_direction_t;
0333
0334
0335
0336
0337 typedef enum {
0338
0339 XCB_EWMH_WM_STATE_REMOVE = 0,
0340
0341 XCB_EWMH_WM_STATE_ADD = 1,
0342
0343 XCB_EWMH_WM_STATE_TOGGLE = 2
0344 } xcb_ewmh_wm_state_action_t;
0345
0346
0347
0348
0349 typedef struct {
0350
0351 uint32_t left;
0352
0353 uint32_t right;
0354
0355 uint32_t top;
0356
0357 uint32_t bottom;
0358
0359 uint32_t left_start_y;
0360
0361 uint32_t left_end_y;
0362
0363 uint32_t right_start_y;
0364
0365 uint32_t right_end_y;
0366
0367 uint32_t top_start_x;
0368
0369 uint32_t top_end_x;
0370
0371 uint32_t bottom_start_x;
0372
0373 uint32_t bottom_end_x;
0374 } xcb_ewmh_wm_strut_partial_t;
0375
0376
0377
0378
0379 typedef struct {
0380
0381 uint32_t width;
0382
0383 uint32_t height;
0384
0385 uint32_t *data;
0386
0387 unsigned int rem;
0388
0389 unsigned int index;
0390 } xcb_ewmh_wm_icon_iterator_t;
0391
0392
0393
0394
0395 typedef struct {
0396
0397 unsigned int num_icons;
0398
0399 xcb_get_property_reply_t *_reply;
0400 } xcb_ewmh_get_wm_icon_reply_t;
0401
0402
0403
0404
0405 typedef struct {
0406
0407 uint32_t left;
0408
0409 uint32_t right;
0410
0411 uint32_t top;
0412
0413 uint32_t bottom;
0414 } xcb_ewmh_get_extents_reply_t;
0415
0416
0417
0418
0419 typedef struct {
0420
0421
0422 uint32_t top;
0423
0424
0425 uint32_t bottom;
0426
0427
0428 uint32_t left;
0429
0430
0431 uint32_t right;
0432 } xcb_ewmh_get_wm_fullscreen_monitors_reply_t;
0433
0434
0435
0436
0437
0438
0439
0440
0441
0442 xcb_intern_atom_cookie_t *xcb_ewmh_init_atoms(xcb_connection_t *c,
0443 xcb_ewmh_connection_t *ewmh);
0444
0445
0446
0447
0448
0449
0450
0451
0452
0453
0454 uint8_t xcb_ewmh_init_atoms_replies(xcb_ewmh_connection_t *ewmh,
0455 xcb_intern_atom_cookie_t *ewmh_cookies,
0456 xcb_generic_error_t **e);
0457
0458 static inline void
0459 xcb_ewmh_connection_wipe(xcb_ewmh_connection_t *ewmh)
0460 {
0461 free(ewmh->screens);
0462 free(ewmh->_NET_WM_CM_Sn);
0463 }
0464
0465
0466
0467
0468
0469
0470
0471
0472
0473
0474
0475
0476
0477
0478
0479 xcb_void_cookie_t xcb_ewmh_send_client_message(xcb_connection_t *c,
0480 xcb_window_t window,
0481 xcb_window_t dest,
0482 xcb_atom_t atom,
0483 uint32_t data_len,
0484 const uint32_t *data);
0485
0486 uint8_t xcb_ewmh_get_window_from_reply(xcb_window_t *window,
0487 xcb_get_property_reply_t *r);
0488
0489 uint8_t xcb_ewmh_get_window_reply(xcb_ewmh_connection_t *ewmh,
0490 xcb_get_property_cookie_t cookie,
0491 xcb_window_t *window,
0492 xcb_generic_error_t **e);
0493
0494 uint8_t xcb_ewmh_get_cardinal_from_reply(uint32_t *cardinal,
0495 xcb_get_property_reply_t *r);
0496
0497 uint8_t xcb_ewmh_get_cardinal_reply(xcb_ewmh_connection_t *ewmh,
0498 xcb_get_property_cookie_t cookie,
0499 uint32_t *cardinal,
0500 xcb_generic_error_t **e);
0501
0502
0503
0504
0505
0506
0507
0508
0509
0510
0511
0512
0513
0514
0515 uint8_t xcb_ewmh_get_atoms_from_reply(xcb_ewmh_get_atoms_reply_t *atoms,
0516 xcb_get_property_reply_t *r);
0517
0518
0519
0520
0521
0522
0523
0524
0525
0526
0527
0528
0529
0530
0531
0532
0533 uint8_t xcb_ewmh_get_atoms_reply(xcb_ewmh_connection_t *ewmh,
0534 xcb_get_property_cookie_t cookie,
0535 xcb_ewmh_get_atoms_reply_t *atoms,
0536 xcb_generic_error_t **e);
0537
0538
0539
0540
0541
0542
0543
0544
0545
0546 void xcb_ewmh_get_atoms_reply_wipe(xcb_ewmh_get_atoms_reply_t *data);
0547
0548
0549
0550
0551
0552
0553
0554
0555
0556
0557
0558
0559
0560
0561 uint8_t xcb_ewmh_get_windows_from_reply(xcb_ewmh_get_windows_reply_t *atoms,
0562 xcb_get_property_reply_t *r);
0563
0564 uint8_t xcb_ewmh_get_utf8_strings_from_reply(xcb_ewmh_connection_t *ewmh,
0565 xcb_ewmh_get_utf8_strings_reply_t *data,
0566 xcb_get_property_reply_t *r);
0567
0568 uint8_t xcb_ewmh_get_utf8_strings_reply(xcb_ewmh_connection_t *ewmh,
0569 xcb_get_property_cookie_t cookie,
0570 xcb_ewmh_get_utf8_strings_reply_t *data,
0571 xcb_generic_error_t **e);
0572
0573
0574
0575
0576
0577
0578
0579
0580
0581
0582
0583
0584
0585
0586
0587
0588 uint8_t xcb_ewmh_get_windows_reply(xcb_ewmh_connection_t *ewmh,
0589 xcb_get_property_cookie_t cookie,
0590 xcb_ewmh_get_windows_reply_t *atoms,
0591 xcb_generic_error_t **e);
0592
0593
0594
0595
0596
0597
0598
0599
0600
0601 void xcb_ewmh_get_windows_reply_wipe(xcb_ewmh_get_windows_reply_t *data);
0602
0603
0604
0605
0606
0607
0608
0609
0610
0611 void xcb_ewmh_get_utf8_strings_reply_wipe(xcb_ewmh_get_utf8_strings_reply_t *data);
0612
0613
0614
0615
0616
0617
0618
0619
0620
0621
0622
0623
0624 xcb_void_cookie_t xcb_ewmh_set_supported(xcb_ewmh_connection_t *ewmh,
0625 int screen_nbr,
0626 uint32_t list_len,
0627 xcb_atom_t *list);
0628
0629
0630
0631
0632 xcb_void_cookie_t xcb_ewmh_set_supported_checked(xcb_ewmh_connection_t *ewmh,
0633 int screen_nbr,
0634 uint32_t list_len,
0635 xcb_atom_t *list);
0636
0637
0638
0639
0640
0641
0642
0643
0644
0645
0646
0647
0648
0649
0650
0651
0652
0653
0654
0655
0656
0657 xcb_get_property_cookie_t xcb_ewmh_get_supported_unchecked(xcb_ewmh_connection_t *ewmh,
0658 int screen_nbr);
0659
0660
0661
0662
0663 xcb_get_property_cookie_t xcb_ewmh_get_supported(xcb_ewmh_connection_t *ewmh,
0664 int screen_nbr);
0665
0666
0667
0668
0669
0670
0671
0672 static inline uint8_t
0673 xcb_ewmh_get_supported_from_reply(xcb_ewmh_get_atoms_reply_t *supported,
0674 xcb_get_property_reply_t *r)
0675 {
0676 return xcb_ewmh_get_atoms_from_reply(supported, r);
0677 }
0678
0679
0680
0681
0682
0683
0684
0685
0686
0687
0688
0689
0690
0691
0692 static inline uint8_t
0693 xcb_ewmh_get_supported_reply(xcb_ewmh_connection_t *ewmh,
0694 xcb_get_property_cookie_t cookie,
0695 xcb_ewmh_get_atoms_reply_t *supported,
0696 xcb_generic_error_t **e)
0697 {
0698 return xcb_ewmh_get_atoms_reply(ewmh, cookie, supported, e);
0699 }
0700
0701
0702
0703
0704
0705
0706
0707
0708
0709
0710
0711
0712 xcb_void_cookie_t xcb_ewmh_set_client_list(xcb_ewmh_connection_t *ewmh,
0713 int screen_nbr,
0714 uint32_t list_len,
0715 xcb_window_t *list);
0716
0717
0718
0719
0720 xcb_void_cookie_t xcb_ewmh_set_client_list_checked(xcb_ewmh_connection_t *ewmh,
0721 int screen_nbr,
0722 uint32_t list_len,
0723 xcb_window_t *list);
0724
0725
0726
0727
0728
0729
0730
0731
0732
0733
0734
0735
0736
0737 xcb_get_property_cookie_t xcb_ewmh_get_client_list_unchecked(xcb_ewmh_connection_t *ewmh,
0738 int screen_nbr);
0739
0740
0741
0742
0743
0744
0745
0746
0747
0748 xcb_get_property_cookie_t xcb_ewmh_get_client_list(xcb_ewmh_connection_t *ewmh,
0749 int screen_nbr);
0750
0751
0752
0753
0754
0755
0756
0757
0758 static inline uint8_t
0759 xcb_ewmh_get_client_list_from_reply(xcb_ewmh_get_windows_reply_t *clients,
0760 xcb_get_property_reply_t *r)
0761 {
0762 return xcb_ewmh_get_windows_from_reply(clients, r);
0763 }
0764
0765
0766
0767
0768
0769
0770
0771
0772
0773
0774
0775
0776
0777
0778 static inline uint8_t
0779 xcb_ewmh_get_client_list_reply(xcb_ewmh_connection_t *ewmh,
0780 xcb_get_property_cookie_t cookie,
0781 xcb_ewmh_get_windows_reply_t *clients,
0782 xcb_generic_error_t **e)
0783 {
0784 return xcb_ewmh_get_windows_reply(ewmh, cookie, clients, e);
0785 }
0786
0787
0788
0789
0790
0791
0792
0793
0794
0795
0796
0797
0798 xcb_void_cookie_t xcb_ewmh_set_client_list_stacking(xcb_ewmh_connection_t *ewmh,
0799 int screen_nbr,
0800 uint32_t list_len,
0801 xcb_window_t *list);
0802
0803
0804
0805
0806 xcb_void_cookie_t xcb_ewmh_set_client_list_stacking_checked(xcb_ewmh_connection_t *ewmh,
0807 int screen_nbr,
0808 uint32_t list_len,
0809 xcb_window_t *list);
0810
0811
0812
0813
0814
0815
0816
0817
0818
0819
0820
0821
0822
0823 xcb_get_property_cookie_t xcb_ewmh_get_client_list_stacking_unchecked(xcb_ewmh_connection_t *ewmh,
0824 int screen_nbr);
0825
0826
0827
0828
0829 xcb_get_property_cookie_t xcb_ewmh_get_client_list_stacking(xcb_ewmh_connection_t *ewmh,
0830 int screen_nbr);
0831
0832
0833
0834
0835
0836
0837
0838
0839 static inline uint8_t
0840 xcb_ewmh_get_client_list_stacking_from_reply(xcb_ewmh_get_windows_reply_t *clients,
0841 xcb_get_property_reply_t *r)
0842 {
0843 return xcb_ewmh_get_windows_from_reply(clients, r);
0844 }
0845
0846
0847
0848
0849
0850
0851
0852
0853
0854
0855
0856
0857
0858
0859
0860 static inline uint8_t
0861 xcb_ewmh_get_client_list_stacking_reply(xcb_ewmh_connection_t *ewmh,
0862 xcb_get_property_cookie_t cookie,
0863 xcb_ewmh_get_windows_reply_t *clients,
0864 xcb_generic_error_t **e)
0865 {
0866 return xcb_ewmh_get_windows_reply(ewmh, cookie, clients, e);
0867 }
0868
0869
0870
0871
0872
0873
0874
0875
0876
0877
0878
0879 xcb_void_cookie_t xcb_ewmh_set_number_of_desktops(xcb_ewmh_connection_t *ewmh,
0880 int screen_nbr,
0881 uint32_t number_of_desktops);
0882
0883
0884
0885
0886 xcb_void_cookie_t xcb_ewmh_set_number_of_desktops_checked(xcb_ewmh_connection_t *ewmh,
0887 int screen_nbr,
0888 uint32_t number_of_desktops);
0889
0890
0891
0892
0893
0894
0895
0896
0897
0898 xcb_get_property_cookie_t xcb_ewmh_get_number_of_desktops_unchecked(xcb_ewmh_connection_t *ewmh,
0899 int screen_nbr);
0900
0901
0902
0903
0904 xcb_get_property_cookie_t xcb_ewmh_get_number_of_desktops(xcb_ewmh_connection_t *ewmh,
0905 int screen_nbr);
0906
0907
0908
0909
0910
0911
0912
0913
0914
0915 static inline uint8_t
0916 xcb_ewmh_get_number_of_desktops_from_reply(uint32_t *number_of_desktops,
0917 xcb_get_property_reply_t *r)
0918 {
0919 return xcb_ewmh_get_cardinal_from_reply(number_of_desktops, r);
0920 }
0921
0922
0923
0924
0925
0926
0927
0928
0929
0930
0931
0932
0933
0934
0935 static inline uint8_t
0936 xcb_ewmh_get_number_of_desktops_reply(xcb_ewmh_connection_t *ewmh,
0937 xcb_get_property_cookie_t cookie,
0938 uint32_t *number_of_desktops,
0939 xcb_generic_error_t **e)
0940 {
0941 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, number_of_desktops, e);
0942 }
0943
0944 static inline xcb_void_cookie_t
0945 xcb_ewmh_request_change_number_of_desktops(xcb_ewmh_connection_t *ewmh,
0946 int screen_nbr,
0947 uint32_t new_number_of_desktops)
0948 {
0949 return xcb_ewmh_send_client_message(ewmh->connection, XCB_NONE,
0950 ewmh->screens[screen_nbr]->root,
0951 ewmh->_NET_NUMBER_OF_DESKTOPS,
0952 sizeof(new_number_of_desktops),
0953 &new_number_of_desktops);
0954 }
0955
0956
0957
0958
0959
0960
0961
0962
0963
0964
0965
0966
0967 xcb_void_cookie_t xcb_ewmh_set_desktop_geometry(xcb_ewmh_connection_t *ewmh,
0968 int screen_nbr,
0969 uint32_t new_width,
0970 uint32_t new_height);
0971
0972
0973
0974
0975 xcb_void_cookie_t xcb_ewmh_set_desktop_geometry_checked(xcb_ewmh_connection_t *ewmh,
0976 int screen_nbr,
0977 uint32_t new_width,
0978 uint32_t new_height);
0979
0980
0981
0982
0983
0984
0985
0986
0987
0988 xcb_get_property_cookie_t xcb_ewmh_get_desktop_geometry_unchecked(xcb_ewmh_connection_t *ewmh,
0989 int screen_nbr);
0990
0991
0992
0993
0994 xcb_get_property_cookie_t xcb_ewmh_get_desktop_geometry(xcb_ewmh_connection_t *ewmh,
0995 int screen_nbr);
0996
0997
0998
0999
1000
1001
1002
1003
1004
1005
1006 xcb_void_cookie_t xcb_ewmh_request_change_desktop_geometry(xcb_ewmh_connection_t *ewmh,
1007 int screen_nbr,
1008 uint32_t new_width,
1009 uint32_t new_height);
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020 uint8_t xcb_ewmh_get_desktop_geometry_from_reply(uint32_t *width,
1021 uint32_t *height,
1022 xcb_get_property_reply_t *r);
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038 uint8_t xcb_ewmh_get_desktop_geometry_reply(xcb_ewmh_connection_t *ewmh,
1039 xcb_get_property_cookie_t cookie,
1040 uint32_t *width, uint32_t *height,
1041 xcb_generic_error_t **e);
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054 xcb_void_cookie_t xcb_ewmh_set_desktop_viewport(xcb_ewmh_connection_t *ewmh,
1055 int screen_nbr,
1056 uint32_t list_len,
1057 xcb_ewmh_coordinates_t *list);
1058
1059
1060
1061
1062 xcb_void_cookie_t xcb_ewmh_set_desktop_viewport_checked(xcb_ewmh_connection_t *ewmh,
1063 int screen_nbr,
1064 uint32_t list_len,
1065 xcb_ewmh_coordinates_t *list);
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075 xcb_get_property_cookie_t xcb_ewmh_get_desktop_viewport_unchecked(xcb_ewmh_connection_t *ewmh,
1076 int screen_nbr);
1077
1078
1079
1080
1081 xcb_get_property_cookie_t xcb_ewmh_get_desktop_viewport(xcb_ewmh_connection_t *ewmh,
1082 int screen_nbr);
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093 xcb_void_cookie_t xcb_ewmh_request_change_desktop_viewport(xcb_ewmh_connection_t *ewmh,
1094 int screen_nbr,
1095 uint32_t x, uint32_t y);
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105 uint8_t xcb_ewmh_get_desktop_viewport_from_reply(xcb_ewmh_get_desktop_viewport_reply_t *vp,
1106 xcb_get_property_reply_t *r);
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121 uint8_t xcb_ewmh_get_desktop_viewport_reply(xcb_ewmh_connection_t *ewmh,
1122 xcb_get_property_cookie_t cookie,
1123 xcb_ewmh_get_desktop_viewport_reply_t *vp,
1124 xcb_generic_error_t **e);
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135 void xcb_ewmh_get_desktop_viewport_reply_wipe(xcb_ewmh_get_desktop_viewport_reply_t *r);
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147 xcb_void_cookie_t xcb_ewmh_set_current_desktop(xcb_ewmh_connection_t *ewmh,
1148 int screen_nbr,
1149 uint32_t new_current_desktop);
1150
1151
1152
1153
1154 xcb_void_cookie_t xcb_ewmh_set_current_desktop_checked(xcb_ewmh_connection_t *ewmh,
1155 int screen_nbr,
1156 uint32_t new_current_desktop);
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166 xcb_get_property_cookie_t xcb_ewmh_get_current_desktop_unchecked(xcb_ewmh_connection_t *ewmh,
1167 int screen_nbr);
1168
1169
1170
1171
1172 xcb_get_property_cookie_t xcb_ewmh_get_current_desktop(xcb_ewmh_connection_t *ewmh,
1173 int screen_nbr);
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184 xcb_void_cookie_t xcb_ewmh_request_change_current_desktop(xcb_ewmh_connection_t *ewmh,
1185 int screen_nbr,
1186 uint32_t new_desktop,
1187 xcb_timestamp_t timestamp);
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197 static inline uint8_t
1198 xcb_ewmh_get_current_desktop_from_reply(uint32_t *current_desktop,
1199 xcb_get_property_reply_t *r)
1200 {
1201 return xcb_ewmh_get_cardinal_from_reply(current_desktop, r);
1202 }
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217 static inline uint8_t
1218 xcb_ewmh_get_current_desktop_reply(xcb_ewmh_connection_t *ewmh,
1219 xcb_get_property_cookie_t cookie,
1220 uint32_t *current_desktop,
1221 xcb_generic_error_t **e)
1222 {
1223 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, current_desktop, e);
1224 }
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237 xcb_void_cookie_t xcb_ewmh_set_desktop_names(xcb_ewmh_connection_t *ewmh,
1238 int screen_nbr,
1239 uint32_t strings_len,
1240 const char *strings);
1241
1242
1243
1244
1245 xcb_void_cookie_t xcb_ewmh_set_desktop_names_checked(xcb_ewmh_connection_t *ewmh,
1246 int screen_nbr,
1247 uint32_t strings_len,
1248 const char *strings);
1249
1250
1251
1252
1253
1254
1255
1256
1257 xcb_get_property_cookie_t xcb_ewmh_get_desktop_names_unchecked(xcb_ewmh_connection_t *ewmh,
1258 int screen_nbr);
1259
1260
1261
1262
1263 xcb_get_property_cookie_t xcb_ewmh_get_desktop_names(xcb_ewmh_connection_t *ewmh,
1264 int screen_nbr);
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275 static inline uint8_t
1276 xcb_ewmh_get_desktop_names_from_reply(xcb_ewmh_connection_t *ewmh,
1277 xcb_ewmh_get_utf8_strings_reply_t *names,
1278 xcb_get_property_reply_t *r)
1279 {
1280 return xcb_ewmh_get_utf8_strings_from_reply(ewmh, names, r);
1281 }
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296 static inline uint8_t
1297 xcb_ewmh_get_desktop_names_reply(xcb_ewmh_connection_t *ewmh,
1298 xcb_get_property_cookie_t cookie,
1299 xcb_ewmh_get_utf8_strings_reply_t *names,
1300 xcb_generic_error_t **e)
1301 {
1302 return xcb_ewmh_get_utf8_strings_reply(ewmh, cookie, names, e);
1303 }
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315 xcb_void_cookie_t xcb_ewmh_set_active_window(xcb_ewmh_connection_t *ewmh,
1316 int screen_nbr,
1317 xcb_window_t new_active_window);
1318
1319
1320
1321
1322 xcb_void_cookie_t xcb_ewmh_set_active_window_checked(xcb_ewmh_connection_t *ewmh,
1323 int screen_nbr,
1324 xcb_window_t new_active_window);
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347 xcb_void_cookie_t xcb_ewmh_request_change_active_window(xcb_ewmh_connection_t *ewmh,
1348 int screen_nbr,
1349 xcb_window_t window_to_activate,
1350 xcb_ewmh_client_source_type_t source_indication,
1351 xcb_timestamp_t timestamp,
1352 xcb_window_t current_active_window);
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 xcb_get_property_cookie_t xcb_ewmh_get_active_window_unchecked(xcb_ewmh_connection_t *ewmh,
1371 int screen_nbr);
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382 xcb_get_property_cookie_t xcb_ewmh_get_active_window(xcb_ewmh_connection_t *ewmh,
1383 int screen_nbr);
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393 static inline uint8_t
1394 xcb_ewmh_get_active_window_from_reply(xcb_window_t *active_window,
1395 xcb_get_property_reply_t *r)
1396 {
1397 return xcb_ewmh_get_window_from_reply(active_window, r);
1398 }
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413 static inline uint8_t
1414 xcb_ewmh_get_active_window_reply(xcb_ewmh_connection_t *ewmh,
1415 xcb_get_property_cookie_t cookie,
1416 xcb_window_t *active_window,
1417 xcb_generic_error_t **e)
1418 {
1419 return xcb_ewmh_get_window_reply(ewmh, cookie, active_window, e);
1420 }
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433 xcb_void_cookie_t xcb_ewmh_set_workarea(xcb_ewmh_connection_t *ewmh,
1434 int screen_nbr,
1435 uint32_t list_len,
1436 xcb_ewmh_geometry_t *list);
1437
1438
1439
1440
1441 xcb_void_cookie_t xcb_ewmh_set_workarea_checked(xcb_ewmh_connection_t *ewmh,
1442 int screen_nbr,
1443 uint32_t list_len,
1444 xcb_ewmh_geometry_t *list);
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454 xcb_get_property_cookie_t xcb_ewmh_get_workarea_unchecked(xcb_ewmh_connection_t *ewmh,
1455 int screen_nbr);
1456
1457
1458
1459
1460 xcb_get_property_cookie_t xcb_ewmh_get_workarea(xcb_ewmh_connection_t *ewmh,
1461 int screen_nbr);
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471 uint8_t xcb_ewmh_get_workarea_from_reply(xcb_ewmh_get_workarea_reply_t *wa,
1472 xcb_get_property_reply_t *r);
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 uint8_t xcb_ewmh_get_workarea_reply(xcb_ewmh_connection_t *ewmh,
1488 xcb_get_property_cookie_t cookie,
1489 xcb_ewmh_get_workarea_reply_t *wa,
1490 xcb_generic_error_t **e);
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501 void xcb_ewmh_get_workarea_reply_wipe(xcb_ewmh_get_workarea_reply_t *r);
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513 xcb_void_cookie_t xcb_ewmh_set_supporting_wm_check(xcb_ewmh_connection_t *ewmh,
1514 xcb_window_t parent_window,
1515 xcb_window_t child_window);
1516
1517
1518
1519
1520 xcb_void_cookie_t xcb_ewmh_set_supporting_wm_check_checked(xcb_ewmh_connection_t *ewmh,
1521 xcb_window_t parent_window,
1522 xcb_window_t child_window);
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 xcb_get_property_cookie_t xcb_ewmh_get_supporting_wm_check_unchecked(xcb_ewmh_connection_t *ewmh,
1533 xcb_window_t window);
1534
1535
1536
1537
1538 xcb_get_property_cookie_t xcb_ewmh_get_supporting_wm_check(xcb_ewmh_connection_t *ewmh,
1539 xcb_window_t window);
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549 static inline uint8_t
1550 xcb_ewmh_get_supporting_wm_check_from_reply(xcb_window_t *window,
1551 xcb_get_property_reply_t *r)
1552 {
1553 return xcb_ewmh_get_window_from_reply(window, r);
1554 }
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570 static inline uint8_t
1571 xcb_ewmh_get_supporting_wm_check_reply(xcb_ewmh_connection_t *ewmh,
1572 xcb_get_property_cookie_t cookie,
1573 xcb_window_t *window,
1574 xcb_generic_error_t **e)
1575 {
1576 return xcb_ewmh_get_window_reply(ewmh, cookie, window, e);
1577 }
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590 xcb_void_cookie_t xcb_ewmh_set_virtual_roots(xcb_ewmh_connection_t *ewmh,
1591 int screen_nbr,
1592 uint32_t list_len,
1593 xcb_window_t *list);
1594
1595
1596
1597
1598 xcb_void_cookie_t xcb_ewmh_set_virtual_roots_checked(xcb_ewmh_connection_t *ewmh,
1599 int screen_nbr,
1600 uint32_t list_len,
1601 xcb_window_t *list);
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611 xcb_get_property_cookie_t xcb_ewmh_get_virtual_roots_unchecked(xcb_ewmh_connection_t *ewmh,
1612 int screen_nbr);
1613
1614
1615
1616
1617 xcb_get_property_cookie_t xcb_ewmh_get_virtual_roots(xcb_ewmh_connection_t *ewmh,
1618 int screen_nbr);
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628 static inline uint8_t
1629 xcb_ewmh_get_virtual_roots_from_reply(xcb_ewmh_get_windows_reply_t *virtual_roots,
1630 xcb_get_property_reply_t *r)
1631 {
1632 return xcb_ewmh_get_windows_from_reply(virtual_roots, r);
1633 }
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648 static inline uint8_t
1649 xcb_ewmh_get_virtual_roots_reply(xcb_ewmh_connection_t *ewmh,
1650 xcb_get_property_cookie_t cookie,
1651 xcb_ewmh_get_windows_reply_t *virtual_roots,
1652 xcb_generic_error_t **e)
1653 {
1654 return xcb_ewmh_get_windows_reply(ewmh, cookie, virtual_roots, e);
1655 }
1656
1657 xcb_void_cookie_t xcb_ewmh_set_desktop_layout(xcb_ewmh_connection_t *ewmh,
1658 int screen_nbr,
1659 xcb_ewmh_desktop_layout_orientation_t orientation,
1660 uint32_t columns, uint32_t rows,
1661 xcb_ewmh_desktop_layout_starting_corner_t starting_corner);
1662
1663 xcb_void_cookie_t xcb_ewmh_set_desktop_layout_checked(xcb_ewmh_connection_t *ewmh,
1664 int screen_nbr,
1665 xcb_ewmh_desktop_layout_orientation_t orientation,
1666 uint32_t columns, uint32_t rows,
1667 xcb_ewmh_desktop_layout_starting_corner_t starting_corner);
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677 xcb_get_property_cookie_t xcb_ewmh_get_desktop_layout_unchecked(xcb_ewmh_connection_t *ewmh,
1678 int screen_nbr);
1679
1680
1681
1682
1683 xcb_get_property_cookie_t xcb_ewmh_get_desktop_layout(xcb_ewmh_connection_t *ewmh,
1684 int screen_nbr);
1685
1686 uint8_t xcb_ewmh_get_desktop_layout_from_reply(xcb_ewmh_get_desktop_layout_reply_t *desktop_layouts,
1687 xcb_get_property_reply_t *r);
1688
1689 uint8_t xcb_ewmh_get_desktop_layout_reply(xcb_ewmh_connection_t *ewmh,
1690 xcb_get_property_cookie_t cookie,
1691 xcb_ewmh_get_desktop_layout_reply_t *desktop_layouts,
1692 xcb_generic_error_t **e);
1693
1694 xcb_void_cookie_t xcb_ewmh_set_showing_desktop(xcb_ewmh_connection_t *ewmh,
1695 int screen_nbr,
1696 uint32_t desktop);
1697
1698 xcb_void_cookie_t xcb_ewmh_set_showing_desktop_checked(xcb_ewmh_connection_t *ewmh,
1699 int screen_nbr,
1700 uint32_t desktop);
1701
1702 xcb_get_property_cookie_t xcb_ewmh_get_showing_desktop_unchecked(xcb_ewmh_connection_t *ewmh,
1703 int screen_nbr);
1704
1705 xcb_get_property_cookie_t xcb_ewmh_get_showing_desktop(xcb_ewmh_connection_t *ewmh,
1706 int screen_nbr);
1707
1708 static inline uint8_t
1709 xcb_ewmh_get_showing_desktop_from_reply(uint32_t *desktop,
1710 xcb_get_property_reply_t *r)
1711 {
1712 return xcb_ewmh_get_cardinal_from_reply(desktop, r);
1713 }
1714
1715 static inline uint8_t
1716 xcb_ewmh_get_showing_desktop_reply(xcb_ewmh_connection_t *ewmh,
1717 xcb_get_property_cookie_t cookie,
1718 uint32_t *desktop,
1719 xcb_generic_error_t **e)
1720 {
1721 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, desktop, e);
1722 }
1723
1724 static inline xcb_void_cookie_t
1725 xcb_ewmh_request_change_showing_desktop(xcb_ewmh_connection_t *ewmh,
1726 int screen_nbr,
1727 uint32_t enter)
1728 {
1729 return xcb_ewmh_send_client_message(ewmh->connection, XCB_NONE,
1730 ewmh->screens[screen_nbr]->root,
1731 ewmh->_NET_SHOWING_DESKTOP,
1732 sizeof(enter), &enter);
1733 }
1734
1735 xcb_void_cookie_t xcb_ewmh_request_close_window(xcb_ewmh_connection_t *ewmh,
1736 int screen_nbr,
1737 xcb_window_t window_to_close,
1738 xcb_timestamp_t timestamp,
1739 xcb_ewmh_client_source_type_t source_indication);
1740
1741 xcb_void_cookie_t xcb_ewmh_request_moveresize_window(xcb_ewmh_connection_t *ewmh,
1742 int screen_nbr,
1743 xcb_window_t moveresize_window,
1744 xcb_gravity_t gravity,
1745 xcb_ewmh_client_source_type_t source_indication,
1746 xcb_ewmh_moveresize_window_opt_flags_t flags,
1747 uint32_t x, uint32_t y,
1748 uint32_t width, uint32_t height);
1749
1750 xcb_void_cookie_t xcb_ewmh_request_wm_moveresize(xcb_ewmh_connection_t *ewmh,
1751 int screen_nbr,
1752 xcb_window_t moveresize_window,
1753 uint32_t x_root, uint32_t y_root,
1754 xcb_ewmh_moveresize_direction_t direction,
1755 xcb_button_index_t button,
1756 xcb_ewmh_client_source_type_t source_indication);
1757
1758 xcb_void_cookie_t xcb_ewmh_request_restack_window(xcb_ewmh_connection_t *ewmh,
1759 int screen_nbr,
1760 xcb_window_t window_to_restack,
1761 xcb_window_t sibling_window,
1762 xcb_stack_mode_t detail);
1763
1764 static inline xcb_void_cookie_t
1765 xcb_ewmh_request_frame_extents(xcb_ewmh_connection_t *ewmh,
1766 int screen_nbr,
1767 xcb_window_t client_window)
1768 {
1769 return xcb_ewmh_send_client_message(ewmh->connection, client_window,
1770 ewmh->screens[screen_nbr]->root,
1771 ewmh->_NET_REQUEST_FRAME_EXTENTS, 0, NULL);
1772 }
1773
1774 xcb_void_cookie_t xcb_ewmh_set_wm_name(xcb_ewmh_connection_t *ewmh,
1775 xcb_window_t window,
1776 uint32_t strings_len,
1777 const char *strings);
1778
1779 xcb_void_cookie_t xcb_ewmh_set_wm_name_checked(xcb_ewmh_connection_t *ewmh,
1780 xcb_window_t window,
1781 uint32_t strings_len,
1782 const char *strings);
1783
1784 xcb_get_property_cookie_t xcb_ewmh_get_wm_name_unchecked(xcb_ewmh_connection_t *ewmh,
1785 xcb_window_t window);
1786
1787 xcb_get_property_cookie_t xcb_ewmh_get_wm_name(xcb_ewmh_connection_t *ewmh,
1788 xcb_window_t window);
1789
1790 static inline uint8_t
1791 xcb_ewmh_get_wm_name_from_reply(xcb_ewmh_connection_t *ewmh,
1792 xcb_ewmh_get_utf8_strings_reply_t *data,
1793 xcb_get_property_reply_t *r)
1794 {
1795 return xcb_ewmh_get_utf8_strings_from_reply(ewmh, data, r);
1796 }
1797
1798 static inline uint8_t
1799 xcb_ewmh_get_wm_name_reply(xcb_ewmh_connection_t *ewmh,
1800 xcb_get_property_cookie_t cookie,
1801 xcb_ewmh_get_utf8_strings_reply_t *data,
1802 xcb_generic_error_t **e)
1803 {
1804 return xcb_ewmh_get_utf8_strings_reply(ewmh, cookie, data, e);
1805 }
1806
1807 xcb_void_cookie_t xcb_ewmh_set_wm_visible_name(xcb_ewmh_connection_t *ewmh,
1808 xcb_window_t window,
1809 uint32_t strings_len,
1810 const char *strings);
1811
1812 xcb_void_cookie_t xcb_ewmh_set_wm_visible_name_checked(xcb_ewmh_connection_t *ewmh,
1813 xcb_window_t window,
1814 uint32_t strings_len,
1815 const char *strings);
1816
1817 xcb_get_property_cookie_t xcb_ewmh_get_wm_visible_name_unchecked(xcb_ewmh_connection_t *ewmh,
1818 xcb_window_t window);
1819
1820 xcb_get_property_cookie_t xcb_ewmh_get_wm_visible_name(xcb_ewmh_connection_t *ewmh,
1821 xcb_window_t window);
1822
1823 static inline uint8_t
1824 xcb_ewmh_get_wm_visible_name_from_reply(xcb_ewmh_connection_t *ewmh,
1825 xcb_ewmh_get_utf8_strings_reply_t *data,
1826 xcb_get_property_reply_t *r)
1827 {
1828 return xcb_ewmh_get_utf8_strings_from_reply(ewmh, data, r);
1829 }
1830
1831 static inline uint8_t
1832 xcb_ewmh_get_wm_visible_name_reply(xcb_ewmh_connection_t *ewmh,
1833 xcb_get_property_cookie_t cookie,
1834 xcb_ewmh_get_utf8_strings_reply_t *data,
1835 xcb_generic_error_t **e)
1836 {
1837 return xcb_ewmh_get_utf8_strings_reply(ewmh, cookie, data, e);
1838 }
1839
1840 xcb_void_cookie_t xcb_ewmh_set_wm_icon_name(xcb_ewmh_connection_t *ewmh,
1841 xcb_window_t window,
1842 uint32_t strings_len,
1843 const char *strings);
1844
1845 xcb_void_cookie_t xcb_ewmh_set_wm_icon_name_checked(xcb_ewmh_connection_t *ewmh,
1846 xcb_window_t window,
1847 uint32_t strings_len,
1848 const char *strings);
1849
1850 xcb_get_property_cookie_t xcb_ewmh_get_wm_icon_name_unchecked(xcb_ewmh_connection_t *ewmh,
1851 xcb_window_t window);
1852
1853 xcb_get_property_cookie_t xcb_ewmh_get_wm_icon_name(xcb_ewmh_connection_t *ewmh,
1854 xcb_window_t window);
1855
1856 static inline uint8_t
1857 xcb_ewmh_get_wm_icon_name_from_reply(xcb_ewmh_connection_t *ewmh,
1858 xcb_ewmh_get_utf8_strings_reply_t *data,
1859 xcb_get_property_reply_t *r)
1860 {
1861 return xcb_ewmh_get_utf8_strings_from_reply(ewmh, data, r);
1862 }
1863
1864 static inline uint8_t
1865 xcb_ewmh_get_wm_icon_name_reply(xcb_ewmh_connection_t *ewmh,
1866 xcb_get_property_cookie_t cookie,
1867 xcb_ewmh_get_utf8_strings_reply_t *data,
1868 xcb_generic_error_t **e)
1869 {
1870 return xcb_ewmh_get_utf8_strings_reply(ewmh, cookie, data, e);
1871 }
1872
1873 xcb_void_cookie_t xcb_ewmh_set_wm_visible_icon_name(xcb_ewmh_connection_t *ewmh,
1874 xcb_window_t window,
1875 uint32_t strings_len,
1876 const char *strings);
1877
1878 xcb_void_cookie_t xcb_ewmh_set_wm_visible_icon_name_checked(xcb_ewmh_connection_t *ewmh,
1879 xcb_window_t window,
1880 uint32_t strings_len,
1881 const char *strings);
1882
1883 xcb_get_property_cookie_t xcb_ewmh_get_wm_visible_icon_name_unchecked(xcb_ewmh_connection_t *ewmh,
1884 xcb_window_t window);
1885
1886 xcb_get_property_cookie_t xcb_ewmh_get_wm_visible_icon_name(xcb_ewmh_connection_t *ewmh,
1887 xcb_window_t window);
1888
1889 static inline uint8_t
1890 xcb_ewmh_get_wm_visible_icon_name_from_reply(xcb_ewmh_connection_t *ewmh,
1891 xcb_ewmh_get_utf8_strings_reply_t *data,
1892 xcb_get_property_reply_t *r)
1893 {
1894 return xcb_ewmh_get_utf8_strings_from_reply(ewmh, data, r);
1895 }
1896
1897 static inline uint8_t
1898 xcb_ewmh_get_wm_visible_icon_name_reply(xcb_ewmh_connection_t *ewmh,
1899 xcb_get_property_cookie_t cookie,
1900 xcb_ewmh_get_utf8_strings_reply_t *data,
1901 xcb_generic_error_t **e)
1902 {
1903 return xcb_ewmh_get_utf8_strings_reply(ewmh, cookie, data, e);
1904 }
1905
1906 xcb_void_cookie_t xcb_ewmh_set_wm_desktop(xcb_ewmh_connection_t *ewmh,
1907 xcb_window_t window,
1908 uint32_t desktop);
1909
1910 xcb_void_cookie_t xcb_ewmh_set_wm_desktop_checked(xcb_ewmh_connection_t *ewmh,
1911 xcb_window_t window,
1912 uint32_t desktop);
1913
1914
1915 xcb_get_property_cookie_t xcb_ewmh_get_wm_desktop_unchecked(xcb_ewmh_connection_t *ewmh,
1916 xcb_window_t window);
1917
1918 xcb_get_property_cookie_t xcb_ewmh_get_wm_desktop(xcb_ewmh_connection_t *ewmh,
1919 xcb_window_t window);
1920
1921 static inline uint8_t
1922 xcb_ewmh_get_wm_desktop_from_reply(uint32_t *desktop,
1923 xcb_get_property_reply_t *r)
1924 {
1925 return xcb_ewmh_get_cardinal_from_reply(desktop, r);
1926 }
1927
1928 static inline uint8_t
1929 xcb_ewmh_get_wm_desktop_reply(xcb_ewmh_connection_t *ewmh,
1930 xcb_get_property_cookie_t cookie,
1931 uint32_t *desktop,
1932 xcb_generic_error_t **e)
1933 {
1934 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, desktop, e);
1935 }
1936
1937 xcb_void_cookie_t xcb_ewmh_request_change_wm_desktop(xcb_ewmh_connection_t *ewmh,
1938 int screen_nbr,
1939 xcb_window_t client_window,
1940 uint32_t new_desktop,
1941 xcb_ewmh_client_source_type_t source_indication);
1942
1943 xcb_void_cookie_t xcb_ewmh_set_wm_window_type(xcb_ewmh_connection_t *ewmh,
1944 xcb_window_t window,
1945 uint32_t list_len,
1946 xcb_atom_t *list);
1947
1948 xcb_void_cookie_t xcb_ewmh_set_wm_window_type_checked(xcb_ewmh_connection_t *ewmh,
1949 xcb_window_t window,
1950 uint32_t list_len,
1951 xcb_atom_t *list);
1952
1953 xcb_get_property_cookie_t xcb_ewmh_get_wm_window_type_unchecked(xcb_ewmh_connection_t *ewmh,
1954 xcb_window_t window);
1955
1956 xcb_get_property_cookie_t xcb_ewmh_get_wm_window_type(xcb_ewmh_connection_t *ewmh,
1957 xcb_window_t window);
1958
1959 uint8_t xcb_ewmh_get_wm_window_type_from_reply(xcb_ewmh_get_atoms_reply_t *wtypes,
1960 xcb_get_property_reply_t *r);
1961
1962 uint8_t xcb_ewmh_get_wm_window_type_reply(xcb_ewmh_connection_t *ewmh,
1963 xcb_get_property_cookie_t cookie,
1964 xcb_ewmh_get_atoms_reply_t *name,
1965 xcb_generic_error_t **e);
1966
1967 xcb_void_cookie_t xcb_ewmh_set_wm_state(xcb_ewmh_connection_t *ewmh,
1968 xcb_window_t window,
1969 uint32_t list_len,
1970 xcb_atom_t *list);
1971
1972 xcb_void_cookie_t xcb_ewmh_set_wm_state_checked(xcb_ewmh_connection_t *ewmh,
1973 xcb_window_t window,
1974 uint32_t list_len,
1975 xcb_atom_t *list);
1976
1977 xcb_get_property_cookie_t xcb_ewmh_get_wm_state_unchecked(xcb_ewmh_connection_t *ewmh,
1978 xcb_window_t window);
1979
1980 xcb_get_property_cookie_t xcb_ewmh_get_wm_state(xcb_ewmh_connection_t *ewmh,
1981 xcb_window_t window);
1982
1983 uint8_t xcb_ewmh_get_wm_state_from_reply(xcb_ewmh_get_atoms_reply_t *wtypes,
1984 xcb_get_property_reply_t *r);
1985
1986 uint8_t xcb_ewmh_get_wm_state_reply(xcb_ewmh_connection_t *ewmh,
1987 xcb_get_property_cookie_t cookie,
1988 xcb_ewmh_get_atoms_reply_t *name,
1989 xcb_generic_error_t **e);
1990
1991 xcb_void_cookie_t xcb_ewmh_request_change_wm_state(xcb_ewmh_connection_t *ewmh,
1992 int screen_nbr,
1993 xcb_window_t client_window,
1994 xcb_ewmh_wm_state_action_t action,
1995 xcb_atom_t first_property,
1996 xcb_atom_t second_property,
1997 xcb_ewmh_client_source_type_t source_indication);
1998
1999 xcb_void_cookie_t xcb_ewmh_set_wm_allowed_actions(xcb_ewmh_connection_t *ewmh,
2000 xcb_window_t window,
2001 uint32_t list_len,
2002 xcb_atom_t *list);
2003
2004 xcb_void_cookie_t xcb_ewmh_set_wm_allowed_actions_checked(xcb_ewmh_connection_t *ewmh,
2005 xcb_window_t window,
2006 uint32_t list_len,
2007 xcb_atom_t *list);
2008
2009 xcb_get_property_cookie_t xcb_ewmh_get_wm_allowed_actions_unchecked(xcb_ewmh_connection_t *ewmh,
2010 xcb_window_t window);
2011
2012 xcb_get_property_cookie_t xcb_ewmh_get_wm_allowed_actions(xcb_ewmh_connection_t *ewmh,
2013 xcb_window_t window);
2014
2015 uint8_t xcb_ewmh_get_wm_allowed_actions_from_reply(xcb_ewmh_get_atoms_reply_t *wtypes,
2016 xcb_get_property_reply_t *r);
2017
2018 uint8_t xcb_ewmh_get_wm_allowed_actions_reply(xcb_ewmh_connection_t *ewmh,
2019 xcb_get_property_cookie_t cookie,
2020 xcb_ewmh_get_atoms_reply_t *name,
2021 xcb_generic_error_t **e);
2022
2023 xcb_void_cookie_t xcb_ewmh_set_wm_strut(xcb_ewmh_connection_t *ewmh,
2024 xcb_window_t window,
2025 uint32_t left, uint32_t right,
2026 uint32_t top, uint32_t bottom);
2027
2028 xcb_void_cookie_t xcb_ewmh_set_wm_strut_checked(xcb_ewmh_connection_t *ewmh,
2029 xcb_window_t window,
2030 uint32_t left, uint32_t right,
2031 uint32_t top, uint32_t bottom);
2032
2033 xcb_get_property_cookie_t xcb_ewmh_get_wm_strut_unchecked(xcb_ewmh_connection_t *ewmh,
2034 xcb_window_t window);
2035
2036 xcb_get_property_cookie_t xcb_ewmh_get_wm_strut(xcb_ewmh_connection_t *ewmh,
2037 xcb_window_t window);
2038
2039 uint8_t xcb_ewmh_get_wm_strut_from_reply(xcb_ewmh_get_extents_reply_t *struts,
2040 xcb_get_property_reply_t *r);
2041
2042 uint8_t xcb_ewmh_get_wm_strut_reply(xcb_ewmh_connection_t *ewmh,
2043 xcb_get_property_cookie_t cookie,
2044 xcb_ewmh_get_extents_reply_t *struts,
2045 xcb_generic_error_t **e);
2046
2047 xcb_void_cookie_t xcb_ewmh_set_wm_strut_partial(xcb_ewmh_connection_t *ewmh,
2048 xcb_window_t window,
2049 xcb_ewmh_wm_strut_partial_t wm_strut);
2050
2051 xcb_void_cookie_t xcb_ewmh_set_wm_strut_partial_checked(xcb_ewmh_connection_t *ewmh,
2052 xcb_window_t window,
2053 xcb_ewmh_wm_strut_partial_t wm_strut);
2054
2055 xcb_get_property_cookie_t xcb_ewmh_get_wm_strut_partial_unchecked(xcb_ewmh_connection_t *ewmh,
2056 xcb_window_t window);
2057
2058 xcb_get_property_cookie_t xcb_ewmh_get_wm_strut_partial(xcb_ewmh_connection_t *ewmh,
2059 xcb_window_t window);
2060
2061 uint8_t xcb_ewmh_get_wm_strut_partial_from_reply(xcb_ewmh_wm_strut_partial_t *struts,
2062 xcb_get_property_reply_t *r);
2063
2064 uint8_t xcb_ewmh_get_wm_strut_partial_reply(xcb_ewmh_connection_t *ewmh,
2065 xcb_get_property_cookie_t cookie,
2066 xcb_ewmh_wm_strut_partial_t *struts,
2067 xcb_generic_error_t **e);
2068
2069 xcb_void_cookie_t xcb_ewmh_set_wm_icon_geometry(xcb_ewmh_connection_t *ewmh,
2070 xcb_window_t window,
2071 uint32_t left, uint32_t right,
2072 uint32_t top, uint32_t bottom);
2073
2074 xcb_void_cookie_t xcb_ewmh_set_wm_icon_geometry_checked(xcb_ewmh_connection_t *ewmh,
2075 xcb_window_t window,
2076 uint32_t left, uint32_t right,
2077 uint32_t top, uint32_t bottom);
2078
2079 xcb_get_property_cookie_t xcb_ewmh_get_wm_icon_geometry_unchecked(xcb_ewmh_connection_t *ewmh,
2080 xcb_window_t window);
2081
2082 xcb_get_property_cookie_t xcb_ewmh_get_wm_icon_geometry(xcb_ewmh_connection_t *ewmh,
2083 xcb_window_t window);
2084
2085 uint8_t xcb_ewmh_get_wm_icon_geometry_from_reply(xcb_ewmh_geometry_t *icons,
2086 xcb_get_property_reply_t *r);
2087
2088 uint8_t xcb_ewmh_get_wm_icon_geometry_reply(xcb_ewmh_connection_t *ewmh,
2089 xcb_get_property_cookie_t cookie,
2090 xcb_ewmh_geometry_t *icons,
2091 xcb_generic_error_t **e);
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111 static inline xcb_void_cookie_t
2112 xcb_ewmh_set_wm_icon_checked(xcb_ewmh_connection_t *ewmh,
2113 uint8_t mode,
2114 xcb_window_t window,
2115 uint32_t data_len, uint32_t *data)
2116 {
2117 return xcb_change_property_checked(ewmh->connection, mode,
2118 window, ewmh->_NET_WM_ICON,
2119 XCB_ATOM_CARDINAL, 32, data_len, data);
2120 }
2121
2122
2123
2124
2125 static inline xcb_void_cookie_t
2126 xcb_ewmh_set_wm_icon(xcb_ewmh_connection_t *ewmh,
2127 uint8_t mode,
2128 xcb_window_t window,
2129 uint32_t data_len, uint32_t *data)
2130 {
2131 return xcb_change_property(ewmh->connection, mode, window,
2132 ewmh->_NET_WM_ICON, XCB_ATOM_CARDINAL, 32,
2133 data_len, data);
2134 }
2135
2136 xcb_void_cookie_t xcb_ewmh_append_wm_icon_checked(xcb_ewmh_connection_t *ewmh,
2137 xcb_window_t window,
2138 uint32_t width, uint32_t height,
2139 uint32_t img_len, uint32_t *img);
2140
2141 xcb_void_cookie_t xcb_ewmh_append_wm_icon(xcb_ewmh_connection_t *ewmh,
2142 xcb_window_t window,
2143 uint32_t width, uint32_t height,
2144 uint32_t img_len, uint32_t *img);
2145
2146 xcb_get_property_cookie_t xcb_ewmh_get_wm_icon_unchecked(xcb_ewmh_connection_t *ewmh,
2147 xcb_window_t window);
2148
2149 xcb_get_property_cookie_t xcb_ewmh_get_wm_icon(xcb_ewmh_connection_t *ewmh,
2150 xcb_window_t window);
2151
2152 uint8_t xcb_ewmh_get_wm_icon_from_reply(xcb_ewmh_get_wm_icon_reply_t *wm_icon,
2153 xcb_get_property_reply_t *r);
2154
2155 uint8_t xcb_ewmh_get_wm_icon_reply(xcb_ewmh_connection_t *ewmh,
2156 xcb_get_property_cookie_t cookie,
2157 xcb_ewmh_get_wm_icon_reply_t *wm_icon,
2158 xcb_generic_error_t **e);
2159
2160 xcb_ewmh_wm_icon_iterator_t xcb_ewmh_get_wm_icon_iterator(const xcb_ewmh_get_wm_icon_reply_t *wm_icon);
2161
2162 unsigned int xcb_ewmh_get_wm_icon_length(const xcb_ewmh_get_wm_icon_reply_t *wm_icon);
2163
2164 void xcb_ewmh_get_wm_icon_next(xcb_ewmh_wm_icon_iterator_t *iterator);
2165
2166 void xcb_ewmh_get_wm_icon_reply_wipe(xcb_ewmh_get_wm_icon_reply_t *wm_icon);
2167
2168 xcb_void_cookie_t xcb_ewmh_set_wm_pid(xcb_ewmh_connection_t *ewmh,
2169 xcb_window_t window,
2170 uint32_t pid);
2171
2172 xcb_void_cookie_t xcb_ewmh_set_wm_pid_checked(xcb_ewmh_connection_t *ewmh,
2173 xcb_window_t window,
2174 uint32_t pid);
2175
2176 xcb_get_property_cookie_t xcb_ewmh_get_wm_pid_unchecked(xcb_ewmh_connection_t *ewmh,
2177 xcb_window_t window);
2178
2179 xcb_get_property_cookie_t xcb_ewmh_get_wm_pid(xcb_ewmh_connection_t *ewmh,
2180 xcb_window_t window);
2181
2182 static inline uint8_t
2183 xcb_ewmh_get_wm_pid_from_reply(uint32_t *pid,
2184 xcb_get_property_reply_t *r)
2185 {
2186 return xcb_ewmh_get_cardinal_from_reply(pid, r);
2187 }
2188
2189 static inline uint8_t
2190 xcb_ewmh_get_wm_pid_reply(xcb_ewmh_connection_t *ewmh,
2191 xcb_get_property_cookie_t cookie,
2192 uint32_t *pid,
2193 xcb_generic_error_t **e)
2194 {
2195 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, pid, e);
2196 }
2197
2198 xcb_void_cookie_t xcb_ewmh_set_wm_handled_icons(xcb_ewmh_connection_t *ewmh,
2199 xcb_window_t window,
2200 uint32_t handled_icons);
2201
2202 xcb_void_cookie_t xcb_ewmh_set_wm_handled_icons_checked(xcb_ewmh_connection_t *ewmh,
2203 xcb_window_t window,
2204 uint32_t handled_icons);
2205
2206 xcb_get_property_cookie_t xcb_ewmh_get_wm_handled_icons_unchecked(xcb_ewmh_connection_t *ewmh,
2207 xcb_window_t window);
2208
2209 xcb_get_property_cookie_t xcb_ewmh_get_wm_handled_icons(xcb_ewmh_connection_t *ewmh,
2210 xcb_window_t window);
2211
2212 static inline uint8_t
2213 xcb_ewmh_get_wm_handled_icons_from_reply(uint32_t *handled_icons,
2214 xcb_get_property_reply_t *r)
2215 {
2216 return xcb_ewmh_get_cardinal_from_reply(handled_icons, r);
2217 }
2218
2219 static inline uint8_t
2220 xcb_ewmh_get_wm_handled_icons_reply(xcb_ewmh_connection_t *ewmh,
2221 xcb_get_property_cookie_t cookie,
2222 uint32_t *handled_icons,
2223 xcb_generic_error_t **e)
2224 {
2225 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, handled_icons, e);
2226 }
2227
2228 xcb_void_cookie_t xcb_ewmh_set_wm_user_time(xcb_ewmh_connection_t *ewmh,
2229 xcb_window_t window,
2230 uint32_t xtime);
2231
2232 xcb_void_cookie_t xcb_ewmh_set_wm_user_time_checked(xcb_ewmh_connection_t *ewmh,
2233 xcb_window_t window,
2234 uint32_t pid);
2235
2236 xcb_get_property_cookie_t xcb_ewmh_get_wm_user_time_unchecked(xcb_ewmh_connection_t *ewmh,
2237 xcb_window_t window);
2238
2239 xcb_get_property_cookie_t xcb_ewmh_get_wm_user_time(xcb_ewmh_connection_t *ewmh,
2240 xcb_window_t window);
2241
2242 static inline uint8_t
2243 xcb_ewmh_get_wm_user_time_from_reply(uint32_t *xtime,
2244 xcb_get_property_reply_t *r)
2245 {
2246 return xcb_ewmh_get_cardinal_from_reply(xtime, r);
2247 }
2248
2249 static inline uint8_t
2250 xcb_ewmh_get_wm_user_time_reply(xcb_ewmh_connection_t *ewmh,
2251 xcb_get_property_cookie_t cookie,
2252 uint32_t *xtime,
2253 xcb_generic_error_t **e)
2254 {
2255 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, xtime, e);
2256 }
2257
2258 xcb_void_cookie_t xcb_ewmh_set_wm_user_time_window(xcb_ewmh_connection_t *ewmh,
2259 xcb_window_t window,
2260 uint32_t xtime);
2261
2262 xcb_void_cookie_t xcb_ewmh_set_wm_user_time_window_checked(xcb_ewmh_connection_t *ewmh,
2263 xcb_window_t window,
2264 uint32_t pid);
2265
2266 xcb_get_property_cookie_t xcb_ewmh_get_wm_user_time_window_unchecked(xcb_ewmh_connection_t *ewmh,
2267 xcb_window_t window);
2268
2269 xcb_get_property_cookie_t xcb_ewmh_get_wm_user_time_window(xcb_ewmh_connection_t *ewmh,
2270 xcb_window_t window);
2271
2272 static inline uint8_t
2273 xcb_ewmh_get_wm_user_time_window_from_reply(uint32_t *xtime,
2274 xcb_get_property_reply_t *r)
2275 {
2276 return xcb_ewmh_get_cardinal_from_reply(xtime, r);
2277 }
2278
2279 static inline uint8_t
2280 xcb_ewmh_get_wm_user_time_window_reply(xcb_ewmh_connection_t *ewmh,
2281 xcb_get_property_cookie_t cookie,
2282 uint32_t *xtime,
2283 xcb_generic_error_t **e)
2284 {
2285 return xcb_ewmh_get_cardinal_reply(ewmh, cookie, xtime, e);
2286 }
2287
2288 xcb_void_cookie_t xcb_ewmh_set_frame_extents(xcb_ewmh_connection_t *ewmh,
2289 xcb_window_t window,
2290 uint32_t left, uint32_t right,
2291 uint32_t top, uint32_t bottom);
2292
2293 xcb_void_cookie_t xcb_ewmh_set_frame_extents_checked(xcb_ewmh_connection_t *ewmh,
2294 xcb_window_t window,
2295 uint32_t left, uint32_t right,
2296 uint32_t top, uint32_t bottom);
2297
2298 xcb_get_property_cookie_t xcb_ewmh_get_frame_extents_unchecked(xcb_ewmh_connection_t *ewmh,
2299 xcb_window_t window);
2300
2301 xcb_get_property_cookie_t xcb_ewmh_get_frame_extents(xcb_ewmh_connection_t *ewmh,
2302 xcb_window_t window);
2303
2304 uint8_t xcb_ewmh_get_frame_extents_from_reply(xcb_ewmh_get_extents_reply_t *frame_extents,
2305 xcb_get_property_reply_t *r);
2306
2307 uint8_t xcb_ewmh_get_frame_extents_reply(xcb_ewmh_connection_t *ewmh,
2308 xcb_get_property_cookie_t cookie,
2309 xcb_ewmh_get_extents_reply_t *frame_extents,
2310 xcb_generic_error_t **e);
2311
2312 xcb_void_cookie_t xcb_ewmh_send_wm_ping(xcb_ewmh_connection_t *ewmh,
2313 xcb_window_t window,
2314 xcb_timestamp_t timestamp);
2315
2316 xcb_void_cookie_t xcb_ewmh_set_wm_sync_request_counter(xcb_ewmh_connection_t *ewmh,
2317 xcb_window_t window,
2318 xcb_atom_t wm_sync_request_counter_atom,
2319 uint32_t low, uint32_t high);
2320
2321 xcb_void_cookie_t xcb_ewmh_set_wm_sync_request_counter_checked(xcb_ewmh_connection_t *ewmh,
2322 xcb_window_t window,
2323 xcb_atom_t wm_sync_request_counter_atom,
2324 uint32_t low, uint32_t high);
2325
2326 xcb_get_property_cookie_t xcb_ewmh_get_wm_sync_request_counter_unchecked(xcb_ewmh_connection_t *ewmh,
2327 xcb_window_t window);
2328
2329 xcb_get_property_cookie_t xcb_ewmh_get_wm_sync_request_counter(xcb_ewmh_connection_t *ewmh,
2330 xcb_window_t window);
2331
2332 uint8_t xcb_ewmh_get_wm_sync_request_counter_from_reply(uint64_t *counter,
2333 xcb_get_property_reply_t *r);
2334
2335 uint8_t xcb_ewmh_get_wm_sync_request_counter_reply(xcb_ewmh_connection_t *ewmh,
2336 xcb_get_property_cookie_t cookie,
2337 uint64_t *counter,
2338 xcb_generic_error_t **e);
2339
2340 xcb_void_cookie_t xcb_ewmh_send_wm_sync_request(xcb_ewmh_connection_t *ewmh,
2341 xcb_window_t window,
2342 xcb_atom_t wm_protocols_atom,
2343 xcb_atom_t wm_sync_request_atom,
2344 xcb_timestamp_t timestamp,
2345 uint64_t counter);
2346
2347 xcb_void_cookie_t xcb_ewmh_set_wm_fullscreen_monitors(xcb_ewmh_connection_t *ewmh,
2348 xcb_window_t window,
2349 uint32_t top, uint32_t bottom,
2350 uint32_t left, uint32_t right);
2351
2352 xcb_void_cookie_t xcb_ewmh_set_wm_fullscreen_monitors_checked(xcb_ewmh_connection_t *ewmh,
2353 xcb_window_t window,
2354 uint32_t top, uint32_t bottom,
2355 uint32_t left, uint32_t right);
2356
2357 xcb_get_property_cookie_t xcb_ewmh_get_wm_fullscreen_monitors_unchecked(xcb_ewmh_connection_t *ewmh,
2358 xcb_window_t window);
2359
2360 xcb_get_property_cookie_t xcb_ewmh_get_wm_fullscreen_monitors(xcb_ewmh_connection_t *ewmh,
2361 xcb_window_t window);
2362
2363 uint8_t xcb_ewmh_get_wm_fullscreen_monitors_from_reply(xcb_ewmh_get_wm_fullscreen_monitors_reply_t *monitors,
2364 xcb_get_property_reply_t *r);
2365
2366 uint8_t xcb_ewmh_get_wm_fullscreen_monitors_reply(xcb_ewmh_connection_t *ewmh,
2367 xcb_get_property_cookie_t cookie,
2368 xcb_ewmh_get_wm_fullscreen_monitors_reply_t *monitors,
2369 xcb_generic_error_t **e);
2370
2371
2372 xcb_void_cookie_t xcb_ewmh_request_change_wm_fullscreen_monitors(xcb_ewmh_connection_t *ewmh,
2373 int screen_nbr,
2374 xcb_window_t window,
2375 uint32_t top, uint32_t bottom,
2376 uint32_t left, uint32_t right,
2377 xcb_ewmh_client_source_type_t source_indication);
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393 xcb_void_cookie_t xcb_ewmh_set_wm_cm_owner(xcb_ewmh_connection_t *ewmh,
2394 int screen_nbr,
2395 xcb_window_t owner,
2396 xcb_timestamp_t timestamp,
2397 uint32_t selection_data1,
2398 uint32_t selection_data2);
2399
2400
2401
2402
2403 xcb_void_cookie_t xcb_ewmh_set_wm_cm_owner_checked(xcb_ewmh_connection_t *ewmh,
2404 int screen_nbr,
2405 xcb_window_t owner,
2406 xcb_timestamp_t timestamp,
2407 uint32_t selection_data1,
2408 uint32_t selection_data2);
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418 xcb_get_selection_owner_cookie_t xcb_ewmh_get_wm_cm_owner_unchecked(xcb_ewmh_connection_t *ewmh,
2419 int screen_nbr);
2420
2421
2422
2423
2424 xcb_get_selection_owner_cookie_t xcb_ewmh_get_wm_cm_owner(xcb_ewmh_connection_t *ewmh,
2425 int screen_nbr);
2426
2427 uint8_t xcb_ewmh_get_wm_cm_owner_from_reply(xcb_window_t *owner,
2428 xcb_get_selection_owner_reply_t *r);
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443 uint8_t xcb_ewmh_get_wm_cm_owner_reply(xcb_ewmh_connection_t *ewmh,
2444 xcb_get_selection_owner_cookie_t cookie,
2445 xcb_window_t *owner,
2446 xcb_generic_error_t **e);
2447
2448 #ifdef __cplusplus
2449 }
2450 #endif
2451
2452
2453
2454
2455
2456 #endif