diff options
author | Stivvo <stivvo01@gmail.com> | 2020-09-04 19:58:00 +0200 |
---|---|---|
committer | Guido Cella <guido@guidocella.xyz> | 2020-12-19 18:05:51 +0100 |
commit | 2abfd475dedf86c84fc66da42c51cff87251659f (patch) | |
tree | 35d69f588e4fa897e580146ad3f7ea34bef64360 | |
parent | af68b7109497853936ffabc3e6926095976b572f (diff) |
isfullscreen int
-rw-r--r-- | dwl.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -116,7 +116,7 @@ typedef struct { int prevy; int prevwidth; int prevheight; - bool isfullscreen; + int isfullscreen; } Client; typedef struct { @@ -919,7 +919,7 @@ createnotify(struct wl_listener *listener, void *data) c->fullscreen.notify = fullscreenotify; wl_signal_add(&xdg_surface->toplevel->events.request_fullscreen, &c->fullscreen); - c->isfullscreen = false; + c->isfullscreen = 0; } void @@ -1050,7 +1050,8 @@ destroyxdeco(struct wl_listener *listener, void *data) } void -fullscreenotify(struct wl_listener *listener, void *data) { +fullscreenotify(struct wl_listener *listener, void *data) +{ Client *c = wl_container_of(listener, c, fullscreen); c->isfullscreen = !c->isfullscreen; @@ -2466,7 +2467,7 @@ createnotifyx11(struct wl_listener *listener, void *data) c->fullscreen.notify = fullscreenotify; wl_signal_add(&xwayland_surface->events.request_fullscreen, &c->fullscreen); - c->isfullscreen = false; + c->isfullscreen = 0; } Atom |