diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-31 14:39:04 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-31 14:39:04 (GMT) |
commit | 25d454344e3782af50e4de2b30951409e349dc07 (patch) | |
tree | 6faf126294b1235b3307dcc394cab895489ceef6 /win/tkWinWm.c | |
parent | 1d84ebe142bb392f1d8c24f0bb90f6be02530c24 (diff) | |
download | tk-25d454344e3782af50e4de2b30951409e349dc07.zip tk-25d454344e3782af50e4de2b30951409e349dc07.tar.gz tk-25d454344e3782af50e4de2b30951409e349dc07.tar.bz2 |
minor improvements to flag handling
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index cfa04e1..efed842 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -6356,7 +6356,7 @@ ParseGeometry( * them. */ - if ((wmPtr->sizeHintsFlags & (USPosition|PPosition)) == 0) { + if (!(wmPtr->sizeHintsFlags & (USPosition|PPosition))) { wmPtr->sizeHintsFlags |= USPosition; } } @@ -6550,7 +6550,7 @@ Tk_MoveToplevelWindow( wmPtr->y = y; wmPtr->flags |= WM_MOVE_PENDING; wmPtr->flags &= ~(WM_NEGATIVE_X|WM_NEGATIVE_Y); - if ((wmPtr->sizeHintsFlags & (USPosition|PPosition)) == 0) { + if (!(wmPtr->sizeHintsFlags & (USPosition|PPosition))) { wmPtr->sizeHintsFlags |= USPosition; } |