From dd3920e75d2e71c569c3781914cd388f69f45bc9 Mon Sep 17 00:00:00 2001 From: Stivvo Date: Fri, 4 Sep 2020 14:04:19 +0200 Subject: Toggle fullscreen --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 * -- cgit v1.2.3