summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lange <klange@ogunderground.com>2008-02-11 11:08:25 -0500
committerKevin Lange <klange@ogunderground.com>2008-02-11 11:08:25 -0500
commit91ccb6af1ed02a725d9226fcaa8b5e37f5e22cc7 (patch)
tree33a1f7e2a2160063d7bbe75965a63bd490ac7209
parent2d382841aa91148cc10a99b3a77b285f3ac46b18 (diff)
downloadwiitrack-91ccb6af1ed02a725d9226fcaa8b5e37f5e22cc7.tar.gz
wiitrack-91ccb6af1ed02a725d9226fcaa8b5e37f5e22cc7.tar.bz2
Oh come on, like you even expect anyone to use it in the first place...HEADmaster
-rw-r--r--wiitrack.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wiitrack.c b/wiitrack.c
index 7d5889b..13699eb 100644
--- a/wiitrack.c
+++ b/wiitrack.c
@@ -541,8 +541,10 @@ static Bool WTDebugToggleMouse (CompDisplay *d, CompAction *action,
Window xid;
xid = getIntOptionNamed (option, nOption, "root", 0);
s = findScreenAtDisplay (d, xid);
- WIITRACK_SCREEN (s);
- wts->trackMouse = !wts->trackMouse;
+ if (s) {
+ WIITRACK_SCREEN (s);
+ wts->trackMouse = !wts->trackMouse;
+ }
}
return TRUE;
}