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>
This commit is contained in:
parent
9dc32746f2
commit
f75404be3a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user