summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2012-07-31 14:39:04 (GMT)
committerdkf <dkf@noemail.net>2012-07-31 14:39:04 (GMT)
commit38580505599388462eb75b8c410fe63f2a9d5cf2 (patch)
tree6faf126294b1235b3307dcc394cab895489ceef6 /macosx
parentf13e064cb63e9f0f191027737a0828049522456f (diff)
downloadtk-38580505599388462eb75b8c410fe63f2a9d5cf2.zip
tk-38580505599388462eb75b8c410fe63f2a9d5cf2.tar.gz
tk-38580505599388462eb75b8c410fe63f2a9d5cf2.tar.bz2
minor improvements to flag handling
FossilOrigin-Name: 9507ac2ceef0b18eaa4733203d2e48e14f641631
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 6ad7547..29def64 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -3742,7 +3742,7 @@ UpdateGeometryInfo(
if (((width != winPtr->changes.width)
|| (height != winPtr->changes.height))
&& (wmPtr->gridWin == NULL)
- && ((wmPtr->sizeHintsFlags & (PMinSize|PMaxSize)) == 0)) {
+ && !(wmPtr->sizeHintsFlags & (PMinSize|PMaxSize))) {
wmPtr->flags |= WM_UPDATE_SIZE_HINTS;
}
if (wmPtr->flags & WM_UPDATE_SIZE_HINTS) {
@@ -3946,7 +3946,7 @@ ParseGeometry(
* them.
*/
- if ((wmPtr->sizeHintsFlags & (USPosition|PPosition)) == 0) {
+ if (!(wmPtr->sizeHintsFlags & (USPosition|PPosition))) {
wmPtr->sizeHintsFlags |= USPosition;
flags |= WM_UPDATE_SIZE_HINTS;
}
@@ -4443,7 +4443,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;
wmPtr->flags |= WM_UPDATE_SIZE_HINTS;
}