summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-04-19 14:44:26 +0200
committerBert <ber.t@gmx.com>2011-04-19 14:44:26 +0200
commitd227b17d96f04895146a7db92b4106669b6c4e3e (patch)
tree1e4052683ae862a8cb20d5ce98d7335f384665bd /window.c
parentd54e64faaee6ba788bc5a57232d615fef816ed97 (diff)
downloadnsxiv-d227b17d96f04895146a7db92b4106669b6c4e3e.tar.zst
Made fullscreen work under buggy window managers
Diffstat (limited to 'window.c')
-rw-r--r--window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/window.c b/window.c
index 623da45..68ef24f 100644
--- a/window.c
+++ b/window.c
@@ -243,8 +243,7 @@ void win_toggle_fullscreen(win_t *win) {
cm->format = 32;
cm->data.l[0] = win->fullscreen;
cm->data.l[1] = XInternAtom(win->env.dpy, "_NET_WM_STATE_FULLSCREEN", False);
- cm->data.l[2] = XInternAtom(win->env.dpy, "_NET_WM_STATE_ABOVE", False);
- cm->data.l[3] = 0;
+ cm->data.l[2] = cm->data.l[3] = 0;
XSendEvent(win->env.dpy, DefaultRootWindow(win->env.dpy), False,
SubstructureNotifyMask | SubstructureRedirectMask, &ev);