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