| 1 | #ifndef __XCB_EWMH_H__ |
| 2 | #define __XCB_EWMH_H__ |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | #include <xcb/xcb.h> |
| 50 | #include <stdlib.h> |
| 51 | |
| 52 | #ifdef __cplusplus |
| 53 | extern "C" { |
| 54 | #endif |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | typedef struct { |
| 60 | |
| 61 | xcb_connection_t *connection; |
| 62 | |
| 63 | xcb_screen_t **screens; |
| 64 | int nb_screens; |
| 65 | |
| 66 | xcb_atom_t *_NET_WM_CM_Sn; |
| 67 | |
| 68 | xcb_atom_t _NET_SUPPORTED; |
| 69 | xcb_atom_t _NET_CLIENT_LIST; |
| 70 | xcb_atom_t _NET_CLIENT_LIST_STACKING; |
| 71 | xcb_atom_t _NET_NUMBER_OF_DESKTOPS; |
| 72 | xcb_atom_t _NET_DESKTOP_GEOMETRY; |
| 73 | xcb_atom_t _NET_DESKTOP_VIEWPORT; |
| 74 | xcb_atom_t _NET_CURRENT_DESKTOP; |
| 75 | xcb_atom_t _NET_DESKTOP_NAMES; |
| 76 | xcb_atom_t _NET_ACTIVE_WINDOW; |
| 77 | xcb_atom_t _NET_WORKAREA; |
| 78 | xcb_atom_t _NET_SUPPORTING_WM_CHECK; |
| 79 | xcb_atom_t _NET_VIRTUAL_ROOTS; |
| 80 | xcb_atom_t _NET_DESKTOP_LAYOUT; |
| 81 | xcb_atom_t _NET_SHOWING_DESKTOP; |
| 82 | xcb_atom_t _NET_CLOSE_WINDOW; |
| 83 | xcb_atom_t _NET_MOVERESIZE_WINDOW; |
| 84 | xcb_atom_t _NET_WM_MOVERESIZE; |
| 85 | xcb_atom_t _NET_RESTACK_WINDOW; |
| 86 | xcb_atom_t _NET_REQUEST_FRAME_EXTENTS; |
| 87 | xcb_atom_t _NET_WM_NAME; |
| 88 | xcb_atom_t _NET_WM_VISIBLE_NAME; |
| 89 | xcb_atom_t _NET_WM_ICON_NAME; |
| 90 | xcb_atom_t _NET_WM_VISIBLE_ICON_NAME; |
| 91 | xcb_atom_t _NET_WM_DESKTOP; |
| 92 | xcb_atom_t _NET_WM_WINDOW_TYPE; |
| 93 | xcb_atom_t _NET_WM_STATE; |
| 94 | xcb_atom_t _NET_WM_ALLOWED_ACTIONS; |
| 95 | xcb_atom_t _NET_WM_STRUT; |
| 96 | xcb_atom_t _NET_WM_STRUT_PARTIAL; |
| 97 | xcb_atom_t _NET_WM_ICON_GEOMETRY; |
| 98 | xcb_atom_t _NET_WM_ICON; |
| 99 | xcb_atom_t _NET_WM_PID; |
| 100 | xcb_atom_t _NET_WM_HANDLED_ICONS; |
| 101 | xcb_atom_t _NET_WM_USER_TIME; |
| 102 | xcb_atom_t _NET_WM_USER_TIME_WINDOW; |
| 103 | xcb_atom_t _NET_FRAME_EXTENTS; |
| 104 | xcb_atom_t _NET_WM_PING; |
| 105 | xcb_atom_t _NET_WM_SYNC_REQUEST; |
| 106 | xcb_atom_t _NET_WM_SYNC_REQUEST_COUNTER; |
| 107 | xcb_atom_t _NET_WM_FULLSCREEN_MONITORS; |
| 108 | xcb_atom_t _NET_WM_FULL_PLACEMENT; |
| 109 | xcb_atom_t UTF8_STRING; |
| 110 | xcb_atom_t WM_PROTOCOLS; |
| 111 | xcb_atom_t MANAGER; |
| 112 | xcb_atom_t _NET_WM_WINDOW_TYPE_DESKTOP; |
| 113 | xcb_atom_t _NET_WM_WINDOW_TYPE_DOCK; |
| 114 | xcb_atom_t _NET_WM_WINDOW_TYPE_TOOLBAR; |
| 115 | xcb_atom_t _NET_WM_WINDOW_TYPE_MENU; |
| 116 | xcb_atom_t _NET_WM_WINDOW_TYPE_UTILITY; |
| 117 | xcb_atom_t _NET_WM_WINDOW_TYPE_SPLASH; |
| 118 | xcb_atom_t _NET_WM_WINDOW_TYPE_DIALOG; |
| 119 | xcb_atom_t _NET_WM_WINDOW_TYPE_DROPDOWN_MENU; |
| 120 | xcb_atom_t _NET_WM_WINDOW_TYPE_POPUP_MENU; |
| 121 | xcb_atom_t _NET_WM_WINDOW_TYPE_TOOLTIP; |
| 122 | xcb_atom_t _NET_WM_WINDOW_TYPE_NOTIFICATION; |
| 123 | xcb_atom_t _NET_WM_WINDOW_TYPE_COMBO; |
| 124 | xcb_atom_t _NET_WM_WINDOW_TYPE_DND; |
| 125 | xcb_atom_t _NET_WM_WINDOW_TYPE_NORMAL; |
| 126 | xcb_atom_t _NET_WM_STATE_MODAL; |
| 127 | xcb_atom_t _NET_WM_STATE_STICKY; |
| 128 | xcb_atom_t _NET_WM_STATE_MAXIMIZED_VERT; |
| 129 | xcb_atom_t _NET_WM_STATE_MAXIMIZED_HORZ; |
| 130 | xcb_atom_t _NET_WM_STATE_SHADED; |
| 131 | xcb_atom_t _NET_WM_STATE_SKIP_TASKBAR; |
| 132 | xcb_atom_t _NET_WM_STATE_SKIP_PAGER; |
| 133 | xcb_atom_t _NET_WM_STATE_HIDDEN; |
| 134 | xcb_atom_t _NET_WM_STATE_FULLSCREEN; |
| 135 | xcb_atom_t _NET_WM_STATE_ABOVE; |
| 136 | xcb_atom_t _NET_WM_STATE_BELOW; |
| 137 | xcb_atom_t _NET_WM_STATE_DEMANDS_ATTENTION; |
| 138 | xcb_atom_t _NET_WM_ACTION_MOVE; |
| 139 | xcb_atom_t _NET_WM_ACTION_RESIZE; |
| 140 | xcb_atom_t _NET_WM_ACTION_MINIMIZE; |
| 141 | xcb_atom_t _NET_WM_ACTION_SHADE; |
| 142 | xcb_atom_t _NET_WM_ACTION_STICK; |
| 143 | xcb_atom_t _NET_WM_ACTION_MAXIMIZE_HORZ; |
| 144 | xcb_atom_t _NET_WM_ACTION_MAXIMIZE_VERT; |
| 145 | xcb_atom_t _NET_WM_ACTION_FULLSCREEN; |
| 146 | xcb_atom_t _NET_WM_ACTION_CHANGE_DESKTOP; |
| 147 | xcb_atom_t _NET_WM_ACTION_CLOSE; |
| 148 | xcb_atom_t _NET_WM_ACTION_ABOVE; |
| 149 | xcb_atom_t _NET_WM_ACTION_BELOW; |
| 150 | } xcb_ewmh_connection_t; |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | typedef struct { |
| 156 | |
| 157 | uint32_t atoms_len; |
| 158 | |
| 159 | xcb_atom_t *atoms; |
| 160 | |
| 161 | xcb_get_property_reply_t *_reply; |
| 162 | } xcb_ewmh_get_atoms_reply_t; |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | typedef struct { |
| 168 | |
| 169 | uint32_t windows_len; |
| 170 | |
| 171 | xcb_window_t *windows; |
| 172 | |
| 173 | xcb_get_property_reply_t *_reply; |
| 174 | } xcb_ewmh_get_windows_reply_t; |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | typedef struct { |
| 180 | |
| 181 | uint32_t strings_len; |
| 182 | |
| 183 | char *strings; |
| 184 | |
| 185 | xcb_get_property_reply_t *_reply; |
| 186 | } xcb_ewmh_get_utf8_strings_reply_t; |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | typedef struct { |
| 192 | |
| 193 | uint32_t x; |
| 194 | |
| 195 | uint32_t y; |
| 196 | } xcb_ewmh_coordinates_t; |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | typedef struct { |
| 202 | |
| 203 | uint32_t desktop_viewport_len; |
| 204 | |
| 205 | xcb_ewmh_coordinates_t *desktop_viewport; |
| 206 | |
| 207 | xcb_get_property_reply_t *_reply; |
| 208 | } xcb_ewmh_get_desktop_viewport_reply_t; |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | typedef struct { |
| 214 | |
| 215 | uint32_t x; |
| 216 | |
| 217 | uint32_t y; |
| 218 | |
| 219 | uint32_t width; |
| 220 | |
| 221 | uint32_t height; |
| 222 | } xcb_ewmh_geometry_t; |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | typedef struct { |
| 228 | |
| 229 | uint32_t workarea_len; |
| 230 | |
| 231 | xcb_ewmh_geometry_t *workarea; |
| 232 | |
| 233 | xcb_get_property_reply_t *_reply; |
| 234 | } xcb_ewmh_get_workarea_reply_t; |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | typedef enum { |
| 240 | |
| 241 | |
| 242 | XCB_EWMH_CLIENT_SOURCE_TYPE_NONE = 0, |
| 243 | |
| 244 | XCB_EWMH_CLIENT_SOURCE_TYPE_NORMAL = 1, |
| 245 | |
| 246 | XCB_EWMH_CLIENT_SOURCE_TYPE_OTHER = 2 |
| 247 | } xcb_ewmh_client_source_type_t; |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | typedef enum { |
| 253 | |
| 254 | XCB_EWMH_WM_ORIENTATION_HORZ = 0, |
| 255 | |
| 256 | XCB_EWMH_WM_ORIENTATION_VERT = 1 |
| 257 | } xcb_ewmh_desktop_layout_orientation_t; |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | typedef enum { |
| 263 | |
| 264 | XCB_EWMH_WM_TOPLEFT = 0, |
| 265 | |
| 266 | XCB_EWMH_WM_TOPRIGHT = 1, |
| 267 | |
| 268 | XCB_EWMH_WM_BOTTOMRIGHT = 2, |
| 269 | |
| 270 | XCB_EWMH_WM_BOTTOMLEFT = 3 |
| 271 | } xcb_ewmh_desktop_layout_starting_corner_t; |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | typedef struct { |
| 279 | |
| 280 | uint32_t orientation; |
| 281 | |
| 282 | uint32_t columns; |
| 283 | |
| 284 | uint32_t rows; |
| 285 | |
| 286 | uint32_t starting_corner; |
| 287 | } xcb_ewmh_get_desktop_layout_reply_t; |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | |
| 293 | typedef enum { |
| 294 | |
| 295 | XCB_EWMH_MOVERESIZE_WINDOW_X = (1 << 8), |
| 296 | |
| 297 | XCB_EWMH_MOVERESIZE_WINDOW_Y = (1 << 9), |
| 298 | |
| 299 | XCB_EWMH_MOVERESIZE_WINDOW_WIDTH = (1 << 10), |
| 300 | |
| 301 | XCB_EWMH_MOVERESIZE_WINDOW_HEIGHT = (1 << 11) |
| 302 | } xcb_ewmh_moveresize_window_opt_flags_t; |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | typedef enum { |
| 308 | |
| 309 | XCB_EWMH_WM_MOVERESIZE_SIZE_TOPLEFT = 0, |
| 310 | |
| 311 | XCB_EWMH_WM_MOVERESIZE_SIZE_TOP = 1, |
| 312 | |
| 313 | XCB_EWMH_WM_MOVERESIZE_SIZE_TOPRIGHT = 2, |
| 314 | |
| 315 | XCB_EWMH_WM_MOVERESIZE_SIZE_RIGHT = 3, |
| 316 | |
| 317 | XCB_EWMH_WM_MOVERESIZE_SIZE_BOTTOMRIGHT = 4, |
| 318 | |
| 319 | XCB_EWMH_WM_MOVERESIZE_SIZE_BOTTOM = 5, |
| 320 | |
| 321 | XCB_EWMH_WM_MOVERESIZE_SIZE_BOTTOMLEFT = 6, |
| 322 | |
| 323 | XCB_EWMH_WM_MOVERESIZE_SIZE_LEFT = 7, |
| 324 | |
| 325 | XCB_EWMH_WM_MOVERESIZE_MOVE = 8, |
| 326 | |
| 327 | XCB_EWMH_WM_MOVERESIZE_SIZE_KEYBOARD = 9, |
| 328 | |
| 329 | XCB_EWMH_WM_MOVERESIZE_MOVE_KEYBOARD = 10, |
| 330 | |
| 331 | XCB_EWMH_WM_MOVERESIZE_CANCEL = 11 |
| 332 | } xcb_ewmh_moveresize_direction_t; |
| 333 | |
| 334 | |
| 335 | |
| 336 | |
| 337 | typedef enum { |
| 338 | |
| 339 | XCB_EWMH_WM_STATE_REMOVE = 0, |
| 340 | |
| 341 | XCB_EWMH_WM_STATE_ADD = 1, |
| 342 | |
| 343 | XCB_EWMH_WM_STATE_TOGGLE = 2 |
| 344 | } xcb_ewmh_wm_state_action_t; |
| 345 | |
| 346 | |
| 347 | |
| 348 | |
| 349 | typedef struct { |
| 350 | |
| 351 | uint32_t left; |
| 352 | |
| 353 | uint32_t right; |
| 354 | |
| 355 | uint32_t top; |
| 356 | |
| 357 | uint32_t bottom; |
| 358 | |
| 359 | uint32_t left_start_y; |
| 360 | |
| 361 | uint32_t left_end_y; |
| 362 | |
| 363 | uint32_t right_start_y; |
| 364 | |
| 365 | uint32_t right_end_y; |
| 366 | |
| 367 | uint32_t top_start_x; |
| 368 | |
| 369 | uint32_t top_end_x; |
| 370 | |
| 371 | uint32_t bottom_start_x; |
| 372 | |
| 373 | uint32_t bottom_end_x; |
| 374 | } xcb_ewmh_wm_strut_partial_t; |
| 375 | |
| 376 | |
| 377 | |
| 378 | |
| 379 | typedef struct { |
| 380 | |
| 381 | uint32_t width; |
| 382 | |
| 383 | uint32_t height; |
| 384 | |
| 385 | uint32_t *data; |
| 386 | |
| 387 | unsigned int rem; |
| 388 | |
| 389 | unsigned int index; |
| 390 | } xcb_ewmh_wm_icon_iterator_t; |
| 391 | |
| 392 | |
| 393 | |
| 394 | |
| 395 | typedef struct { |
| 396 | |
| 397 | unsigned int num_icons; |
| 398 | |
| 399 | xcb_get_property_reply_t *_reply; |
| 400 | } xcb_ewmh_get_wm_icon_reply_t; |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | typedef struct { |
| 406 | |
| 407 | uint32_t left; |
| 408 | |
| 409 | uint32_t right; |
| 410 | |
| 411 | uint32_t top; |
| 412 | |
| 413 | uint32_t bottom; |
| 414 | } xcb_ewmh_get_extents_reply_t; |
| 415 | |
| 416 | |
| 417 | |
| 418 | |
| 419 | typedef struct { |
| 420 | |
| 421 | |
| 422 | uint32_t top; |
| 423 | |
| 424 | |
| 425 | uint32_t bottom; |
| 426 | |
| 427 | |
| 428 | uint32_t left; |
| 429 | |
| 430 | |
| 431 | uint32_t right; |
| 432 | } xcb_ewmh_get_wm_fullscreen_monitors_reply_t; |
| 433 | |
| 434 | |
| 435 | |
| 436 | |
| 437 | |
| 438 | |
| 439 | |
| 440 | |
| 441 | |
| 442 | xcb_intern_atom_cookie_t *xcb_ewmh_init_atoms(xcb_connection_t *c, |
| 443 | xcb_ewmh_connection_t *ewmh); |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | |
| 450 | |
| 451 | |
| 452 | |
| 453 | |
| 454 | uint8_t xcb_ewmh_init_atoms_replies(xcb_ewmh_connection_t *ewmh, |
| 455 | xcb_intern_atom_cookie_t *ewmh_cookies, |
| 456 | xcb_generic_error_t **e); |
| 457 | |
| 458 | static inline void |
| 459 | xcb_ewmh_connection_wipe(xcb_ewmh_connection_t *ewmh) |
| 460 | { |
| 461 | free(ewmh->screens); |
| 462 | free(ewmh->_NET_WM_CM_Sn); |
| 463 | } |
| 464 | |
| 465 | |
| 466 | |
| 467 | |
| 468 | |
| 469 | |
| 470 | |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
| 477 | |
| 478 | |
| 479 | xcb_void_cookie_t xcb_ewmh_send_client_message(xcb_connection_t *c, |
| 480 | xcb_window_t window, |
| 481 | xcb_window_t dest, |
| 482 | xcb_atom_t atom, |
| 483 | uint32_t data_len, |
| 484 | const uint32_t *data); |
| 485 | |
| 486 | uint8_t xcb_ewmh_get_window_from_reply(xcb_window_t *window, |
| 487 | xcb_get_property_reply_t *r); |
| 488 | |
| 489 | uint8_t xcb_ewmh_get_window_reply(xcb_ewmh_connection_t *ewmh, |
| 490 | xcb_get_property_cookie_t cookie, |
| 491 | xcb_window_t *window, |
| 492 | xcb_generic_error_t **e); |
| 493 | |
| 494 | uint8_t xcb_ewmh_get_cardinal_from_reply(uint32_t *cardinal, |
| 495 | xcb_get_property_reply_t *r); |
| 496 | |
| 497 | uint8_t xcb_ewmh_get_cardinal_reply(xcb_ewmh_connection_t *ewmh, |
| 498 | xcb_get_property_cookie_t cookie, |
| 499 | uint32_t *cardinal, |
| 500 | xcb_generic_error_t **e); |
| 501 | |
| 502 | |
| 503 | |
| 504 | |
| 505 | |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | |
| 513 | |
| 514 | |
| 515 | uint8_t xcb_ewmh_get_atoms_from_reply(xcb_ewmh_get_atoms_reply_t *atoms, |
| 516 | xcb_get_property_reply_t *r); |
| 517 | |
| 518 | |
| 519 | |
| 520 | |
| 521 | |
| 522 | |
| 523 | |
| 524 | |
| 525 | |
| 526 | |
| 527 | |
| 528 | |
| 529 | |
| 530 | |
| 531 | |
| 532 | |
| 533 | uint8_t xcb_ewmh_get_atoms_reply(xcb_ewmh_connection_t *ewmh, |
| 534 | xcb_get_property_cookie_t cookie, |
| 535 | xcb_ewmh_get_atoms_reply_t *atoms, |
| 536 | xcb_generic_error_t **e); |
| 537 | |
| 538 | |
| 539 | |
| 540 | |
| 541 | |
| 542 | |
| 543 | |
| 544 | |
| 545 | |
| 546 | void xcb_ewmh_get_atoms_reply_wipe(xcb_ewmh_get_atoms_reply_t *data); |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | |
| 556 | |
| 557 | |
| 558 | |
| 559 | |
| 560 | |
| 561 | uint8_t xcb_ewmh_get_windows_from_reply(xcb_ewmh_get_windows_reply_t *atoms, |
| 562 | xcb_get_property_reply_t *r); |
| 563 | |
| 564 | uint8_t xcb_ewmh_get_utf8_strings_from_reply(xcb_ewmh_connection_t *ewmh, |
| 565 | xcb_ewmh_get_utf8_strings_reply_t *data, |
| 566 | xcb_get_property_reply_t *r); |
| 567 | |
| 568 | uint8_t xcb_ewmh_get_utf8_strings_reply(xcb_ewmh_connection_t *ewmh, |
| 569 | xcb_get_property_cookie_t cookie, |
| 570 | xcb_ewmh_get_utf8_strings_reply_t *data, |
| 571 | xcb_generic_error_t **e); |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | |
| 578 | |
| 579 | |
| 580 | |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | uint8_t xcb_ewmh_get_windows_reply(xcb_ewmh_connection_t *ewmh, |
| 589 | xcb_get_property_cookie_t cookie, |
| 590 | xcb_ewmh_get_windows_reply_t *atoms, |
| 591 | xcb_generic_error_t **e); |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | |
| 597 | |
| 598 | |
| 599 | |
| 600 | |
| 601 | void xcb_ewmh_get_windows_reply_wipe(xcb_ewmh_get_windows_reply_t *data); |
| 602 | |
| 603 | |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | void xcb_ewmh_get_utf8_strings_reply_wipe(xcb_ewmh_get_utf8_strings_reply_t *data); |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
| 623 | |
| 624 | xcb_void_cookie_t xcb_ewmh_set_supported(xcb_ewmh_connection_t *ewmh, |
| 625 | int screen_nbr, |
| 626 | uint32_t list_len, |
| 627 | xcb_atom_t *list); |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | xcb_void_cookie_t xcb_ewmh_set_supported_checked(xcb_ewmh_connection_t *ewmh, |
| 633 | int screen_nbr, |
| 634 | uint32_t list_len, |
| 635 | xcb_atom_t *list); |
| 636 | |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | |
| 643 | |
| 644 | |
| 645 | |
| 646 | |
| 647 | |
| 648 | |
| 649 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | |
| 654 | |
| 655 | |
| 656 | |
| 657 | xcb_get_property_cookie_t xcb_ewmh_get_supported_unchecked(xcb_ewmh_connection_t *ewmh, |
| 658 | int screen_nbr); |
| 659 | |
| 660 | |
| 661 | |
| 662 | |
| 663 | xcb_get_property_cookie_t xcb_ewmh_get_supported(xcb_ewmh_connection_t *ewmh, |
| 664 | int screen_nbr); |
| 665 | |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | |
| 671 | |
| 672 | static inline uint8_t |
| 673 | xcb_ewmh_get_supported_from_reply(xcb_ewmh_get_atoms_reply_t *supported, |
| 674 | xcb_get_property_reply_t *r) |
| 675 | { |
| 676 | return xcb_ewmh_get_atoms_from_reply(supported, r); |
| 677 | } |
| 678 | |
| 679 | |
| 680 | |
| 681 | |
| 682 | |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | static inline uint8_t |
| 693 | xcb_ewmh_get_supported_reply(xcb_ewmh_connection_t *ewmh, |
| 694 | xcb_get_property_cookie_t cookie, |
| 695 | xcb_ewmh_get_atoms_reply_t *supported, |
| 696 | xcb_generic_error_t **e) |
| 697 | { |
| 698 | return xcb_ewmh_get_atoms_reply(ewmh, cookie, supported, e); |
| 699 | } |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | xcb_void_cookie_t xcb_ewmh_set_client_list(xcb_ewmh_connection_t *ewmh, |
| 713 | int screen_nbr, |
| 714 | uint32_t list_len, |
| 715 | xcb_window_t *list); |
| 716 | |
| 717 | |
| 718 | |
| 719 | |
| 720 | xcb_void_cookie_t xcb_ewmh_set_client_list_checked(xcb_ewmh_connection_t *ewmh, |
| 721 | int screen_nbr, |
| 722 | uint32_t list_len, |
| 723 | xcb_window_t *list); |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | xcb_get_property_cookie_t xcb_ewmh_get_client_list_unchecked(xcb_ewmh_connection_t *ewmh, |
| 738 | int screen_nbr); |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | xcb_get_property_cookie_t xcb_ewmh_get_client_list(xcb_ewmh_connection_t *ewmh, |
| 749 | int screen_nbr); |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | |
| 756 | |
| 757 | |
| 758 | static inline uint8_t |
| 759 | xcb_ewmh_get_client_list_from_reply(xcb_ewmh_get_windows_reply_t *clients, |
| 760 | xcb_get_property_reply_t *r) |
| 761 | { |
| 762 | return xcb_ewmh_get_windows_from_reply(clients, r); |
| 763 | } |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | |
| 771 | |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | |
| 777 | |
| 778 | static inline uint8_t |
| 779 | xcb_ewmh_get_client_list_reply(xcb_ewmh_connection_t *ewmh, |
| 780 | xcb_get_property_cookie_t cookie, |
| 781 | xcb_ewmh_get_windows_reply_t *clients, |
| 782 | xcb_generic_error_t **e) |
| 783 | { |
| 784 | return xcb_ewmh_get_windows_reply(ewmh, cookie, clients, e); |
| 785 | } |
| 786 | |
| 787 | |
| 788 | |
| 789 | |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | xcb_void_cookie_t xcb_ewmh_set_client_list_stacking(xcb_ewmh_connection_t *ewmh, |
| 799 | int screen_nbr, |
| 800 | uint32_t list_len, |
| 801 | xcb_window_t *list); |
| 802 | |
| 803 | |
| 804 | |
| 805 | |
| 806 | xcb_void_cookie_t xcb_ewmh_set_client_list_stacking_checked(xcb_ewmh_connection_t *ewmh, |
| 807 | int screen_nbr, |
| 808 | uint32_t list_len, |
| 809 | xcb_window_t *list); |
| 810 | |
| 811 | |
| 812 | |
| 813 | |
| 814 | |
| 815 | |
| 816 | |
| 817 | |
| 818 | |
| 819 | |
| 820 | |
| 821 | |
| 822 | |
| 823 | xcb_get_property_cookie_t xcb_ewmh_get_client_list_stacking_unchecked(xcb_ewmh_connection_t *ewmh, |
| 824 | int screen_nbr); |
| 825 | |
| 826 | |
| 827 | |
| 828 | |
| 829 | xcb_get_property_cookie_t xcb_ewmh_get_client_list_stacking(xcb_ewmh_connection_t *ewmh, |
| 830 | int screen_nbr); |
| 831 | |
| 832 | |
| 833 | |
| 834 | |
| 835 | |
| 836 | |
| 837 | |
| 838 | |
| 839 | static inline uint8_t |
| 840 | xcb_ewmh_get_client_list_stacking_from_reply(xcb_ewmh_get_windows_reply_t *clients, |
| 841 | xcb_get_property_reply_t *r) |
| 842 | { |
| 843 | return xcb_ewmh_get_windows_from_reply(clients, r); |
| 844 | } |
| 845 | |
| 846 | |
| 847 | |
| 848 | |
| 849 | |
| 850 | |
| 851 | |
| 852 | |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | |
| 858 | |
| 859 | |
| 860 | static inline uint8_t |
| 861 | xcb_ewmh_get_client_list_stacking_reply(xcb_ewmh_connection_t *ewmh, |
| 862 | xcb_get_property_cookie_t cookie, |
| 863 | xcb_ewmh_get_windows_reply_t *clients, |
| 864 | xcb_generic_error_t **e) |
| 865 | { |
| 866 | return xcb_ewmh_get_windows_reply(ewmh, cookie, clients, e); |
| 867 | } |
| 868 | |
| 869 | |
| 870 | |
| 871 | |
| 872 | |
| 873 | |
| 874 | |
| 875 | |
| 876 | |
| 877 | |
| 878 | |
| 879 | xcb_void_cookie_t xcb_ewmh_set_number_of_desktops(xcb_ewmh_connection_t *ewmh, |
| 880 | int screen_nbr, |
| 881 | uint32_t number_of_desktops); |
| 882 | |
| 883 | |
| 884 | |
| 885 | |
| 886 | xcb_void_cookie_t xcb_ewmh_set_number_of_desktops_checked(xcb_ewmh_connection_t *ewmh, |
| 887 | int screen_nbr, |
| 888 | uint32_t number_of_desktops); |
| 889 | |
| 890 | |
| 891 | |
| 892 | |
| 893 | |
| 894 | |
| 895 | |
| 896 | |
| 897 | |
| 898 | xcb_get_property_cookie_t xcb_ewmh_get_number_of_desktops_unchecked(xcb_ewmh_connection_t *ewmh, |
| 899 | int screen_nbr); |
| 900 | |
| 901 | |
| 902 | |
| 903 | |
| 904 | xcb_get_property_cookie_t xcb_ewmh_get_number_of_desktops(xcb_ewmh_connection_t *ewmh, |
| 905 | int screen_nbr); |
| 906 | |
| 907 | |
| 908 | |
| 909 | |
| 910 | |
| 911 | |
| 912 | |
| 913 | |
| 914 | |
| 915 | static inline uint8_t |
| 916 | xcb_ewmh_get_number_of_desktops_from_reply(uint32_t *number_of_desktops, |
| 917 | xcb_get_property_reply_t *r) |
| 918 | { |
| 919 | return xcb_ewmh_get_cardinal_from_reply(number_of_desktops, r); |
| 920 | } |
| 921 | |
| 922 | |
| 923 | |
| 924 | |
| 925 | |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | |
| 934 | |
| 935 | static inline uint8_t |
| 936 | xcb_ewmh_get_number_of_desktops_reply(xcb_ewmh_connection_t *ewmh, |
| 937 | xcb_get_property_cookie_t cookie, |
| 938 | uint32_t *number_of_desktops, |
| 939 | xcb_generic_error_t **e) |
| 940 | { |
| 941 | return xcb_ewmh_get_cardinal_reply(ewmh, cookie, number_of_desktops, e); |
| 942 | } |
| 943 | |
| 944 | static inline xcb_void_cookie_t |
| 945 | xcb_ewmh_request_change_number_of_desktops(xcb_ewmh_connection_t *ewmh, |
| 946 | int screen_nbr, |
| 947 | uint32_t new_number_of_desktops) |
| 948 | { |
| 949 | return xcb_ewmh_send_client_message(ewmh->connection, XCB_NONE, |
| 950 | ewmh->screens[screen_nbr]->root, |
| 951 | ewmh->_NET_NUMBER_OF_DESKTOPS, |
| 952 | sizeof(new_number_of_desktops), |
| 953 | &new_number_of_desktops); |
| 954 | } |
| 955 | |
| 956 | |
| 957 | |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | xcb_void_cookie_t xcb_ewmh_set_desktop_geometry(xcb_ewmh_connection_t *ewmh, |
| 968 | int screen_nbr, |
| 969 | uint32_t new_width, |
| 970 | uint32_t new_height); |
| 971 | |
| 972 | |
| 973 | |
| 974 | |
| 975 | xcb_void_cookie_t xcb_ewmh_set_desktop_geometry_checked(xcb_ewmh_connection_t *ewmh, |
| 976 | int screen_nbr, |
| 977 | uint32_t new_width, |
| 978 | uint32_t new_height); |
| 979 | |
| 980 | |
| 981 | |
| 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | xcb_get_property_cookie_t xcb_ewmh_get_desktop_geometry_unchecked(xcb_ewmh_connection_t *ewmh, |
| 989 | int screen_nbr); |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | xcb_get_property_cookie_t xcb_ewmh_get_desktop_geometry(xcb_ewmh_connection_t *ewmh, |
| 995 | int screen_nbr); |
| 996 | |
| 997 | |
| 998 | |
| 999 | |
| 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 |