summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-20 18:05:16 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-20 18:05:16 -0500
commit79ad72413d8df7e184ff8f458d53a1f53a2cb878 (patch)
tree68169cf7c02413adaf9d304fbb4c35d81d21fd0e
parent74fce9d91870c2a319a5eefe223d0fa01a6d2e7e (diff)
don't set `c->isfullscreen` to zero
calloc initializes all fields to zero
-rw-r--r--dwl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 04ba50f..8a9f97d 100644
--- a/dwl.c
+++ b/dwl.c
@@ -977,7 +977,6 @@ createnotify(struct wl_listener *listener, void *data)
LISTEN(&xdg_surface->toplevel->events.set_title, &c->set_title, updatetitle);
LISTEN(&xdg_surface->toplevel->events.request_fullscreen, &c->fullscreen,
fullscreennotify);
- c->isfullscreen = 0;
}
void
@@ -2468,7 +2467,6 @@ createnotifyx11(struct wl_listener *listener, void *data)
c->surface.xwayland = xwayland_surface;
c->type = xwayland_surface->override_redirect ? X11Unmanaged : X11Managed;
c->bw = borderpx;
- c->isfullscreen = 0;
/* Listen to the various events it can emit */
LISTEN(&xwayland_surface->events.map, &c->map, mapnotify);