mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
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:
parent
45aa5c104c
commit
ab58edfc90
8 changed files with 92 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue