summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-03-23 12:10:15 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-03-23 12:10:15 -0700
commitcb5d4b416a0fc850a1c119755a9cc3c4f0d7a545 (patch)
tree709a83b2e364e5b4f099a29f21fda130edd5df17
parentc116e32dc2799c4abcf38d22bc773b755387c89a (diff)
XQuartz: applewm: Don't check if requested window level is < 0 because it is unsigned (-Wtautological-compare)
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--hw/xquartz/applewm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c
index ec20534e0..2f26e61d9 100644
--- a/hw/xquartz/applewm.c
+++ b/hw/xquartz/applewm.c
@@ -437,7 +437,7 @@ ProcAppleWMSetWindowLevel(register ClientPtr client)
DixReadAccess))
return BadValue;
- if (stuff->level < 0 || stuff->level >= AppleWMNumWindowLevels) {
+ if (stuff->level >= AppleWMNumWindowLevels) {
return BadValue;
}