aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-07 23:24:50 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-07 23:24:50 -0500
commit80084839a9d9a3aaed323a267bbd2f061f37c8f7 (patch)
tree565c6a39b8614a6ae4989af263b7aa481a709409 /dwl.c
parent1aacfada29657ec1104f856687400e65927e54b6 (diff)
remove obsolete check of c->mon in fullscreennotify()
since 19a8a095ebe782065903b9a03670560371302206 it's checked in setfullscreen()
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/dwl.c b/dwl.c
index 41ce69f..753ee40 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1246,14 +1246,7 @@ void
fullscreennotify(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, fullscreen);
- int fullscreen = client_wants_fullscreen(c);
-
- if (!c->mon) {
- /* if the client is not mapped yet, let mapnotify() call setfullscreen() */
- c->isfullscreen = fullscreen;
- return;
- }
- setfullscreen(c, fullscreen);
+ setfullscreen(c, client_wants_fullscreen(c));
}
void