aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-13 20:54:44 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-13 21:31:57 -0600
commit43228bd493f53f996a645156f0505b63e79a4f72 (patch)
tree6c33df38754183278cb256512e3a1057cd993d02 /dwl.c
parent03e167dbb70fbc967e310f95200bcd63f43cac72 (diff)
don't use fullscreen event in fullscreennotify()
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index f99fc9a..612f3d7 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1042,13 +1042,14 @@ void
fullscreennotify(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, fullscreen);
- struct wlr_xdg_toplevel_set_fullscreen_event *event = data;
+ int fullscreen = client_wants_fullscreen(c);
+
if (!c->mon) {
/* if the client is not mapped yet, let mapnotify() call setfullscreen() */
- c->isfullscreen = event->fullscreen;
+ c->isfullscreen = fullscreen;
return;
}
- setfullscreen(c, event->fullscreen);
+ setfullscreen(c, fullscreen);
}
Monitor *