summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-09-04 14:04:19 +0200
committerGuido Cella <guido@guidocella.xyz>2020-12-19 18:05:51 +0100
commitdd3920e75d2e71c569c3781914cd388f69f45bc9 (patch)
tree3fcde63a9c7a0f04771632ee049c84574e5231ba
parent0f04c76387f74827931db0c3692fbdc2f50fa8d8 (diff)
Toggle fullscreen
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 4c97cc4..c650875 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1045,7 +1045,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 *