mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
foreign-toplevel: support fullscreen state and request
This commit is contained in:
parent
a656e486f4
commit
4e6c17a7c9
3 changed files with 95 additions and 10 deletions
|
|
@ -28,9 +28,10 @@ struct wlr_foreign_toplevel_manager_v1 {
|
|||
};
|
||||
|
||||
enum wlr_foreign_toplevel_handle_v1_state {
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MAXIMIZED = 1,
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MINIMIZED = 2,
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_ACTIVATED = 4,
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MAXIMIZED = (1 << 0),
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MINIMIZED = (1 << 1),
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_ACTIVATED = (1 << 2),
|
||||
WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_FULLSCREEN = (1 << 3),
|
||||
};
|
||||
|
||||
struct wlr_foreign_toplevel_handle_v1_output {
|
||||
|
|
@ -59,6 +60,8 @@ struct wlr_foreign_toplevel_handle_v1 {
|
|||
struct wl_signal request_minimize;
|
||||
//wlr_foreign_toplevel_handle_v1_activated_event
|
||||
struct wl_signal request_activate;
|
||||
//wlr_foreign_toplevel_handle_v1_fullscreen_event
|
||||
struct wl_signal request_fullscreen;
|
||||
struct wl_signal request_close;
|
||||
|
||||
//wlr_foreign_toplevel_handle_v1_set_rectangle_event
|
||||
|
|
@ -84,6 +87,12 @@ struct wlr_foreign_toplevel_handle_v1_activated_event {
|
|||
struct wlr_seat *seat;
|
||||
};
|
||||
|
||||
struct wlr_foreign_toplevel_handle_v1_fullscreen_event {
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel;
|
||||
bool fullscreen;
|
||||
struct wlr_output *output;
|
||||
};
|
||||
|
||||
struct wlr_foreign_toplevel_handle_v1_set_rectangle_event {
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel;
|
||||
struct wlr_surface *surface;
|
||||
|
|
@ -116,5 +125,7 @@ void wlr_foreign_toplevel_handle_v1_set_minimized(
|
|||
struct wlr_foreign_toplevel_handle_v1 *toplevel, bool minimized);
|
||||
void wlr_foreign_toplevel_handle_v1_set_activated(
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel, bool activated);
|
||||
void wlr_foreign_toplevel_handle_v1_set_fullscreen(
|
||||
struct wlr_foreign_toplevel_handle_v1* toplevel, bool fullscreen);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue