aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-09-04 14:04:19 +0200
committerStivvo <stivvo01@gmail.com>2020-09-04 14:04:19 +0200
commit06982a56b554947e651f37b4ff05b2010935a270 (patch)
treebe235b51f40144e2503ebe8812fcc4cf6b119082
parent60f0b667b195e7479da944fa2b960c3377d4f144 (diff)
Toggle fullscreen
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 39c34a0..73d31ab 100644
--- a/dwl.c
+++ b/dwl.c
@@ -672,7 +672,7 @@ destroyxdeco(struct wl_listener *listener, void *data)
void
fullscreenotify(struct wl_listener *listener, void *data) {
Client *c = wl_container_of(listener, c, fullscreen);
- wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, true);
+ wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, !c->surface.xdg->toplevel->current.fullscreen);
}
Monitor *