summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 01f01c7..af9210b 100644
--- a/main.cpp
+++ b/main.cpp
@@ -872,13 +872,12 @@ void clientMessage(XClientMessageEvent e)
if((Atom)e.data.l[0] == 2)
log("\tadd");
char* prop1 = XGetAtomName(dpy, (Atom)e.data.l[1]);
- log("\tprop1");
if((Atom)e.data.l[1] == XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", false))
{
int fID = getFrameID(e.window);
int cID = getFrame(fID).cID;
- getClient(cID).fullscreen = (Atom) e.data.l[0] == 1;
- setFullscreen(e.window, (Atom) e.data.l[0] == 1);
+ getClient(cID).fullscreen = (Atom) e.data.l[0] > 0;
+ setFullscreen(e.window, (Atom) e.data.l[0] > 0);
tileRoots();
}
XFree(prop1);