Add inhibit_fullscreen command

inhibit_fullscreen allows a container to service but ignore fullscreen
requests from clients. This allows clients to change to fullscreen mode
without changing dimensions of its container.
This commit is contained in:
Kenny Levinsen 2019-06-15 20:02:17 +02:00 committed by Pedro Côrte-Real
parent 45aa5c104c
commit ab58edfc90
8 changed files with 92 additions and 10 deletions

View file

@ -135,6 +135,7 @@ sway_cmd cmd_fullscreen;
sway_cmd cmd_gaps;
sway_cmd cmd_hide_edge_borders;
sway_cmd cmd_include;
sway_cmd cmd_inhibit_fullscreen;
sway_cmd cmd_inhibit_idle;
sway_cmd cmd_input;
sway_cmd cmd_seat;

View file

@ -108,6 +108,9 @@ struct sway_container {
enum sway_fullscreen_mode fullscreen_mode;
bool inhibit_fullscreen;
bool is_fullscreen;
enum sway_container_border border;
// Used when the view changes to CSD unexpectedly. This will be a non-B_CSD
@ -269,6 +272,8 @@ void container_end_mouse_operation(struct sway_container *container);
void container_set_fullscreen(struct sway_container *con,
enum sway_fullscreen_mode mode);
void container_request_fullscreen(struct sway_container *con, bool enable);
/**
* Convenience function.
*/