diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2014-03-28 16:57:48 +0000 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-02-29 14:04:06 -0500 |
commit | f75404be3ad94c8da493688397712c65ea66cb90 (patch) | |
tree | 4b24674760de5efebe03888e7e3cb527f7078e26 /hw/xwin/winmultiwindowwm.c | |
parent | 9dc32746f2cd161b512cce8f39c95287bdf1a3a3 (diff) |
xwin: XGetWMNormalHints() returns non-zero on success
XGetWMNormalHints() doesn't actually return a Status value. On success
it returns a non-zero value, not Success.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw/xwin/winmultiwindowwm.c')
-rw-r--r-- | hw/xwin/winmultiwindowwm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c index 1efe96a15..3156e361e 100644 --- a/hw/xwin/winmultiwindowwm.c +++ b/hw/xwin/winmultiwindowwm.c @@ -1785,8 +1785,7 @@ winApplyHints(Display * pDisplay, Window iWindow, HWND hWnd, HWND * zstyle) long supplied; if (normal_hint && - (XGetWMNormalHints(pDisplay, iWindow, normal_hint, &supplied) == - Success)) { + XGetWMNormalHints(pDisplay, iWindow, normal_hint, &supplied)) { if (normal_hint->flags & PMaxSize) { /* Not maximizable if a maximum size is specified */ hint |= HINT_NOMAXIMIZE; |