mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
restored fullscreen/focus behavior
This commit is contained in:
parent
23b90d8e69
commit
03e83c7ef9
6 changed files with 166 additions and 83 deletions
|
|
@ -408,7 +408,7 @@ static bool cmd_fullscreen(struct sway_config *config, int argc, char **argv) {
|
|||
return false;
|
||||
}
|
||||
|
||||
swayc_t *container = get_focused_container(&root_container);
|
||||
swayc_t *container = get_focused_view(&root_container);
|
||||
bool current = (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) > 0;
|
||||
wlc_view_set_state(container->handle, WLC_BIT_FULLSCREEN, !current);
|
||||
//Resize workspace if going from fullscreen -> notfullscreen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue