summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-09-04 19:58:00 +0200
committerStivvo <stivvo01@gmail.com>2020-09-05 10:40:52 +0200
commit73d717a9246320ad9fccd0a0fe7726ef937e7fc2 (patch)
treed61cbf942e0f88033505945c47b1c4cb29b384d5
parentbd222cb75d9ee43ca0a35b158b5a00e9665ecef8 (diff)
isfullscreen int
-rw-r--r--dwl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 6354072..bdc1e69 100644
--- a/dwl.c
+++ b/dwl.c
@@ -110,7 +110,7 @@ typedef struct {
int prevy;
int prevwidth;
int prevheight;
- bool isfullscreen;
+ int isfullscreen;
} Client;
typedef struct {
@@ -608,7 +608,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
@@ -677,7 +677,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;
@@ -1858,7 +1859,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