diff options
author | taiyu <[email protected]> | 2015-08-21 10:45:18 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-21 10:45:18 -0700 |
commit | d2e1c660b19e8bb24e496b3dd52d4696456863f0 (patch) | |
tree | a1cc9658c3558dca9476449e44f300ce4ded3329 /sway/commands.c | |
parent | dde8bfe72838b2a08a6367a3bc26fde528c6dafe (diff) |
swayc_is_fullscreen
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index e485cdb5..efaa7472 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -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 |