| OLD | NEW |
| 1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* Generated by wayland-scanner 1.11.0 */ |
| 2 | 2 |
| 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H | 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H |
| 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H | 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H |
| 5 | 5 |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include "wayland-client.h" | 8 #include "wayland-client.h" |
| 9 | 9 |
| 10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 int32_t transform, | 251 int32_t transform, |
| 252 wl_fixed_t scale_factor, | 252 wl_fixed_t scale_factor, |
| 253 int32_t work_area_inset_left, | 253 int32_t work_area_inset_left, |
| 254 int32_t work_area_inset_top, | 254 int32_t work_area_inset_top, |
| 255 int32_t work_area_inset_right, | 255 int32_t work_area_inset_right, |
| 256 int32_t work_area_inset_bottom, | 256 int32_t work_area_inset_bottom, |
| 257 uint32_t layout_mode); | 257 uint32_t layout_mode); |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 /** | 260 /** |
| 261 * @ingroup zcr_remote_shell_v1_iface | 261 * @ingroup iface_zcr_remote_shell_v1 |
| 262 */ | 262 */ |
| 263 static inline int | 263 static inline int |
| 264 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1
, | 264 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1
, |
| 265 const struct zcr_remote_shell_v1_listener *list
ener, void *data) | 265 const struct zcr_remote_shell_v1_listener *list
ener, void *data) |
| 266 { | 266 { |
| 267 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, | 267 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_shell_v1, |
| 268 (void (**)(void)) listener, data); | 268 (void (**)(void)) listener, data); |
| 269 } | 269 } |
| 270 | 270 |
| 271 #define ZCR_REMOTE_SHELL_V1_DESTROY» 0 | 271 #define ZCR_REMOTE_SHELL_V1_DESTROY 0 |
| 272 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE» 1 | 272 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE 1 |
| 273 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE» 2 | 273 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE 2 |
| 274 | 274 |
| 275 /** | 275 /** |
| 276 * @ingroup iface_zcr_remote_shell_v1 | 276 * @ingroup iface_zcr_remote_shell_v1 |
| 277 */ | 277 */ |
| 278 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION» 1 | 278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 |
| 279 /** | 279 /** |
| 280 * @ingroup iface_zcr_remote_shell_v1 | 280 * @ingroup iface_zcr_remote_shell_v1 |
| 281 */ | 281 */ |
| 282 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION» 1 | 282 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 |
| 283 |
| 283 /** | 284 /** |
| 284 * @ingroup iface_zcr_remote_shell_v1 | 285 * @ingroup iface_zcr_remote_shell_v1 |
| 285 */ | 286 */ |
| 286 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION» 1 | 287 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 |
| 288 /** |
| 289 * @ingroup iface_zcr_remote_shell_v1 |
| 290 */ |
| 291 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 |
| 292 /** |
| 293 * @ingroup iface_zcr_remote_shell_v1 |
| 294 */ |
| 295 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 1 |
| 287 | 296 |
| 288 /** @ingroup iface_zcr_remote_shell_v1 */ | 297 /** @ingroup iface_zcr_remote_shell_v1 */ |
| 289 static inline void | 298 static inline void |
| 290 zcr_remote_shell_v1_set_user_data(struct zcr_remote_shell_v1 *zcr_remote_shell_v
1, void *user_data) | 299 zcr_remote_shell_v1_set_user_data(struct zcr_remote_shell_v1 *zcr_remote_shell_v
1, void *user_data) |
| 291 { | 300 { |
| 292 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_shell_v1, user_dat
a); | 301 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_shell_v1, user_dat
a); |
| 293 } | 302 } |
| 294 | 303 |
| 295 /** @ingroup iface_zcr_remote_shell_v1 */ | 304 /** @ingroup iface_zcr_remote_shell_v1 */ |
| 296 static inline void * | 305 static inline void * |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 * the surface state changed. | 398 * the surface state changed. |
| 390 * | 399 * |
| 391 * This is an event to notify that the window state changed in | 400 * This is an event to notify that the window state changed in |
| 392 * compositor. The state change may be triggered by a client's | 401 * compositor. The state change may be triggered by a client's |
| 393 * request, or some user action directly handled by the compositor. | 402 * request, or some user action directly handled by the compositor. |
| 394 * The client may choose to ignore this event. | 403 * The client may choose to ignore this event. |
| 395 */ | 404 */ |
| 396 void (*state_type_changed)(void *data, | 405 void (*state_type_changed)(void *data, |
| 397 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 406 struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
| 398 uint32_t state_type); | 407 uint32_t state_type); |
| 408 /** |
| 409 * suggest a surface change |
| 410 * |
| 411 * The configure event asks the client to change surface state. |
| 412 * |
| 413 * The origin arguments specify the position, in the compositor |
| 414 * coordinate space, of the virtual display used by the client to |
| 415 * simulate multiple displays. The client must offset window |
| 416 * positions in set_window_geometry requests by this origin in |
| 417 * order to convert between coordinate spaces. |
| 418 * |
| 419 * Clients should arrange their surface for the new state, and then |
| 420 * send an ack_configure request with the serial sent in this |
| 421 * configure event at some point before committing the new surface. |
| 422 * |
| 423 * If the client receives multiple configure events before it can |
| 424 * respond to one, it is free to discard all but the last event it |
| 425 * received. |
| 426 * @since 2 |
| 427 */ |
| 428 void (*configure)(void *data, |
| 429 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, |
| 430 int32_t origin_x, |
| 431 int32_t origin_y, |
| 432 uint32_t serial); |
| 399 }; | 433 }; |
| 400 | 434 |
| 401 /** | 435 /** |
| 402 * @ingroup zcr_remote_surface_v1_iface | 436 * @ingroup iface_zcr_remote_surface_v1 |
| 403 */ | 437 */ |
| 404 static inline int | 438 static inline int |
| 405 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, | 439 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1, |
| 406 const struct zcr_remote_surface_v1_listener *
listener, void *data) | 440 const struct zcr_remote_surface_v1_listener *
listener, void *data) |
| 407 { | 441 { |
| 408 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, | 442 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, |
| 409 (void (**)(void)) listener, data); | 443 (void (**)(void)) listener, data); |
| 410 } | 444 } |
| 411 | 445 |
| 412 #define ZCR_REMOTE_SURFACE_V1_DESTROY» 0 | 446 #define ZCR_REMOTE_SURFACE_V1_DESTROY 0 |
| 413 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID» 1 | 447 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID 1 |
| 414 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY» 2 | 448 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY 2 |
| 415 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE»3 | 449 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE 3 |
| 416 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW» 4 | 450 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 4 |
| 417 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY»5 | 451 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY 5 |
| 418 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE»6 | 452 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE 6 |
| 419 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET» 7 | 453 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET 7 |
| 420 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE» 8 | 454 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE 8 |
| 421 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE» 9 | 455 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9 |
| 422 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE» 10 | 456 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10 |
| 423 #define ZCR_REMOTE_SURFACE_V1_RESTORE» 11 | 457 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11 |
| 424 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN» 12 | 458 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 |
| 425 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN» 13 | 459 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 |
| 426 #define ZCR_REMOTE_SURFACE_V1_PIN» 14 | 460 #define ZCR_REMOTE_SURFACE_V1_PIN 14 |
| 427 #define ZCR_REMOTE_SURFACE_V1_UNPIN» 15 | 461 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 |
| 428 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL» 16 | 462 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 |
| 429 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL» 17 | 463 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 |
| 430 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING» 18 | 464 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE 18 |
| 431 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING» 19 | 465 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING 19 |
| 466 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING 20 |
| 432 | 467 |
| 433 /** | 468 /** |
| 434 * @ingroup iface_zcr_remote_surface_v1 | 469 * @ingroup iface_zcr_remote_surface_v1 |
| 435 */ | 470 */ |
| 436 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION» 1 | 471 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 |
| 437 /** | 472 /** |
| 438 * @ingroup iface_zcr_remote_surface_v1 | 473 * @ingroup iface_zcr_remote_surface_v1 |
| 439 */ | 474 */ |
| 440 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION» 1 | 475 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 |
| 441 /** | 476 /** |
| 442 * @ingroup iface_zcr_remote_surface_v1 | 477 * @ingroup iface_zcr_remote_surface_v1 |
| 443 */ | 478 */ |
| 444 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION»1 | 479 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 2 |
| 480 |
| 445 /** | 481 /** |
| 446 * @ingroup iface_zcr_remote_surface_v1 | 482 * @ingroup iface_zcr_remote_surface_v1 |
| 447 */ | 483 */ |
| 448 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION» 1 | 484 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 449 /** | 485 /** |
| 450 * @ingroup iface_zcr_remote_surface_v1 | 486 * @ingroup iface_zcr_remote_surface_v1 |
| 451 */ | 487 */ |
| 452 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION» 1 | 488 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 |
| 453 /** | 489 /** |
| 454 * @ingroup iface_zcr_remote_surface_v1 | 490 * @ingroup iface_zcr_remote_surface_v1 |
| 455 */ | 491 */ |
| 456 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE
RSION» 1 | 492 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION 1 |
| 457 /** | 493 /** |
| 458 * @ingroup iface_zcr_remote_surface_v1 | 494 * @ingroup iface_zcr_remote_surface_v1 |
| 459 */ | 495 */ |
| 460 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION» 1 | 496 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION 1 |
| 461 /** | 497 /** |
| 462 * @ingroup iface_zcr_remote_surface_v1 | 498 * @ingroup iface_zcr_remote_surface_v1 |
| 463 */ | 499 */ |
| 464 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION» 1 | 500 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 1 |
| 465 /** | 501 /** |
| 466 * @ingroup iface_zcr_remote_surface_v1 | 502 * @ingroup iface_zcr_remote_surface_v1 |
| 467 */ | 503 */ |
| 468 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION» 1 | 504 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE
RSION 1 |
| 469 /** | 505 /** |
| 470 * @ingroup iface_zcr_remote_surface_v1 | 506 * @ingroup iface_zcr_remote_surface_v1 |
| 471 */ | 507 */ |
| 472 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION» 1 | 508 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 1 |
| 473 /** | 509 /** |
| 474 * @ingroup iface_zcr_remote_surface_v1 | 510 * @ingroup iface_zcr_remote_surface_v1 |
| 475 */ | 511 */ |
| 476 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION» 1 | 512 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 1 |
| 477 /** | 513 /** |
| 478 * @ingroup iface_zcr_remote_surface_v1 | 514 * @ingroup iface_zcr_remote_surface_v1 |
| 479 */ | 515 */ |
| 480 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION» 1 | 516 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 1 |
| 481 /** | 517 /** |
| 482 * @ingroup iface_zcr_remote_surface_v1 | 518 * @ingroup iface_zcr_remote_surface_v1 |
| 483 */ | 519 */ |
| 484 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION» 1 | 520 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION 1 |
| 485 /** | 521 /** |
| 486 * @ingroup iface_zcr_remote_surface_v1 | 522 * @ingroup iface_zcr_remote_surface_v1 |
| 487 */ | 523 */ |
| 488 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION» 1 | 524 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION 1 |
| 489 /** | 525 /** |
| 490 * @ingroup iface_zcr_remote_surface_v1 | 526 * @ingroup iface_zcr_remote_surface_v1 |
| 491 */ | 527 */ |
| 492 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION»1 | 528 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION 1 |
| 493 /** | 529 /** |
| 494 * @ingroup iface_zcr_remote_surface_v1 | 530 * @ingroup iface_zcr_remote_surface_v1 |
| 495 */ | 531 */ |
| 496 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION» 1 | 532 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION 1 |
| 497 /** | 533 /** |
| 498 * @ingroup iface_zcr_remote_surface_v1 | 534 * @ingroup iface_zcr_remote_surface_v1 |
| 499 */ | 535 */ |
| 500 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION» 1 | 536 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION 1 |
| 501 /** | 537 /** |
| 502 * @ingroup iface_zcr_remote_surface_v1 | 538 * @ingroup iface_zcr_remote_surface_v1 |
| 503 */ | 539 */ |
| 504 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION» 1 | 540 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION 1 |
| 505 /** | 541 /** |
| 506 * @ingroup iface_zcr_remote_surface_v1 | 542 * @ingroup iface_zcr_remote_surface_v1 |
| 507 */ | 543 */ |
| 508 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION» 2 | 544 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION 1 |
| 509 /** | 545 /** |
| 510 * @ingroup iface_zcr_remote_surface_v1 | 546 * @ingroup iface_zcr_remote_surface_v1 |
| 511 */ | 547 */ |
| 512 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION» 2 | 548 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 549 /** |
| 550 * @ingroup iface_zcr_remote_surface_v1 |
| 551 */ |
| 552 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 |
| 553 /** |
| 554 * @ingroup iface_zcr_remote_surface_v1 |
| 555 */ |
| 556 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 2 |
| 557 /** |
| 558 * @ingroup iface_zcr_remote_surface_v1 |
| 559 */ |
| 560 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION 2 |
| 561 /** |
| 562 * @ingroup iface_zcr_remote_surface_v1 |
| 563 */ |
| 564 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION 2 |
| 513 | 565 |
| 514 /** @ingroup iface_zcr_remote_surface_v1 */ | 566 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 515 static inline void | 567 static inline void |
| 516 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) | 568 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, void *user_data) |
| 517 { | 569 { |
| 518 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); | 570 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d
ata); |
| 519 } | 571 } |
| 520 | 572 |
| 521 /** @ingroup iface_zcr_remote_surface_v1 */ | 573 /** @ingroup iface_zcr_remote_surface_v1 */ |
| 522 static inline void * | 574 static inline void * |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 static inline void | 872 static inline void |
| 821 zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot
e_surface_v1) | 873 zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot
e_surface_v1) |
| 822 { | 874 { |
| 823 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 875 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 824 ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); | 876 ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); |
| 825 } | 877 } |
| 826 | 878 |
| 827 /** | 879 /** |
| 828 * @ingroup iface_zcr_remote_surface_v1 | 880 * @ingroup iface_zcr_remote_surface_v1 |
| 829 * | 881 * |
| 882 * When a configure event is received, if a client commits the |
| 883 * surface in response to the configure event, then the client |
| 884 * must make an ack_configure request sometime before the commit |
| 885 * request, passing along the serial of the configure event. |
| 886 * |
| 887 * For instance, the compositor might use this information during display |
| 888 * configuration to change its coordinate space for set_window_geometry |
| 889 * requests only when the client has switched to the new coordinate space. |
| 890 * |
| 891 * If the client receives multiple configure events before it |
| 892 * can respond to one, it only has to ack the last configure event. |
| 893 * |
| 894 * A client is not required to commit immediately after sending |
| 895 * an ack_configure request - it may even ack_configure several times |
| 896 * before its next surface commit. |
| 897 * |
| 898 * A client may send multiple ack_configure requests before committing, but |
| 899 * only the last request sent before a commit indicates which configure |
| 900 * event the client really is responding to. |
| 901 */ |
| 902 static inline void |
| 903 zcr_remote_surface_v1_ack_configure(struct zcr_remote_surface_v1 *zcr_remote_sur
face_v1, uint32_t serial) |
| 904 { |
| 905 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 906 ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE, serial); |
| 907 } |
| 908 |
| 909 /** |
| 910 * @ingroup iface_zcr_remote_surface_v1 |
| 911 * |
| 830 * Notifies the compositor when an interactive, user-driven move of the | 912 * Notifies the compositor when an interactive, user-driven move of the |
| 831 * surface starts. The compositor may assume that subsequent | 913 * surface starts. The compositor may assume that subsequent |
| 832 * set_window_geometry requests are position updates until it receives a | 914 * set_window_geometry requests are position updates until it receives a |
| 833 * unset_moving request. | 915 * unset_moving request. |
| 834 */ | 916 */ |
| 835 static inline void | 917 static inline void |
| 836 zcr_remote_surface_v1_set_moving(struct zcr_remote_surface_v1 *zcr_remote_surfac
e_v1) | 918 zcr_remote_surface_v1_set_moving(struct zcr_remote_surface_v1 *zcr_remote_surfac
e_v1) |
| 837 { | 919 { |
| 838 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 920 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 839 ZCR_REMOTE_SURFACE_V1_SET_MOVING); | 921 ZCR_REMOTE_SURFACE_V1_SET_MOVING); |
| 840 } | 922 } |
| 841 | 923 |
| 842 /** | 924 /** |
| 843 * @ingroup iface_zcr_remote_surface_v1 | 925 * @ingroup iface_zcr_remote_surface_v1 |
| 844 * | 926 * |
| 845 * Notifies the compositor when an interactive, user-driven move of the | 927 * Notifies the compositor when an interactive, user-driven move of the |
| 846 * surface stops. The compositor may choose to stop the move regardless | 928 * surface stops. The compositor may choose to stop the move regardless |
| 847 * of this request. | 929 * of this request. |
| 848 */ | 930 */ |
| 849 static inline void | 931 static inline void |
| 850 zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1) | 932 zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surf
ace_v1) |
| 851 { | 933 { |
| 852 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, | 934 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, |
| 853 ZCR_REMOTE_SURFACE_V1_UNSET_MOVING); | 935 ZCR_REMOTE_SURFACE_V1_UNSET_MOVING); |
| 854 } | 936 } |
| 855 | 937 |
| 856 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY» 0 | 938 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY 0 |
| 939 |
| 857 | 940 |
| 858 /** | 941 /** |
| 859 * @ingroup iface_zcr_notification_surface_v1 | 942 * @ingroup iface_zcr_notification_surface_v1 |
| 860 */ | 943 */ |
| 861 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION» 1 | 944 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 |
| 862 | 945 |
| 863 /** @ingroup iface_zcr_notification_surface_v1 */ | 946 /** @ingroup iface_zcr_notification_surface_v1 */ |
| 864 static inline void | 947 static inline void |
| 865 zcr_notification_surface_v1_set_user_data(struct zcr_notification_surface_v1 *zc
r_notification_surface_v1, void *user_data) | 948 zcr_notification_surface_v1_set_user_data(struct zcr_notification_surface_v1 *zc
r_notification_surface_v1, void *user_data) |
| 866 { | 949 { |
| 867 wl_proxy_set_user_data((struct wl_proxy *) zcr_notification_surface_v1,
user_data); | 950 wl_proxy_set_user_data((struct wl_proxy *) zcr_notification_surface_v1,
user_data); |
| 868 } | 951 } |
| 869 | 952 |
| 870 /** @ingroup iface_zcr_notification_surface_v1 */ | 953 /** @ingroup iface_zcr_notification_surface_v1 */ |
| 871 static inline void * | 954 static inline void * |
| (...skipping 20 matching lines...) Expand all Loading... |
| 892 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); | 975 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); |
| 893 | 976 |
| 894 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); | 977 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); |
| 895 } | 978 } |
| 896 | 979 |
| 897 #ifdef __cplusplus | 980 #ifdef __cplusplus |
| 898 } | 981 } |
| 899 #endif | 982 #endif |
| 900 | 983 |
| 901 #endif | 984 #endif |
| OLD | NEW |