summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-08-22 06:53:33 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-08-22 06:53:33 +0000
commit46082f8c71f257b7f38035b6cac07dfa3026a529 (patch)
tree72ff0d572c682b7ac88107244b9709ec02b50b11
parente51c12d1cd9f2de3ca382668d193ddd8852323f8 (diff)
downloadmetacity-46082f8c71f257b7f38035b6cac07dfa3026a529.tar.gz
all the MWM flag tests were backward
2001-08-22 Havoc Pennington <hp@pobox.com> * src/window.c (update_mwm_hints): all the MWM flag tests were backward
-rw-r--r--ChangeLog5
-rw-r--r--src/window.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e3e70f58..28d752af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2001-08-22 Havoc Pennington <hp@pobox.com>
+ * src/window.c (update_mwm_hints): all the MWM flag tests were
+ backward
+
+2001-08-22 Havoc Pennington <hp@pobox.com>
+
* src/window.c (update_icon): half-ass implementation of
getting pixmap icons (WM_NORMAL_HINTS and KWM_WIN_ICON).
Ignores mask for now, with possibly ugly results for
diff --git a/src/window.c b/src/window.c
index 145bd7f8..4d7c8686 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2990,31 +2990,31 @@ update_mwm_hints (MetaWindow *window)
toggle_value = FALSE;
}
- if ((hints->functions & MWM_FUNC_CLOSE) == 0)
+ if ((hints->functions & MWM_FUNC_CLOSE) != 0)
{
meta_verbose ("Window %s toggles close via MWM hints\n",
window->desc);
window->mwm_has_close_func = toggle_value;
}
- if ((hints->functions & MWM_FUNC_MINIMIZE) == 0)
+ if ((hints->functions & MWM_FUNC_MINIMIZE) != 0)
{
meta_verbose ("Window %s toggles minimize via MWM hints\n",
window->desc);
window->mwm_has_minimize_func = toggle_value;
}
- if ((hints->functions & MWM_FUNC_MAXIMIZE) == 0)
+ if ((hints->functions & MWM_FUNC_MAXIMIZE) != 0)
{
meta_verbose ("Window %s toggles maximize via MWM hints\n",
window->desc);
window->mwm_has_maximize_func = toggle_value;
}
- if ((hints->functions & MWM_FUNC_MOVE) == 0)
+ if ((hints->functions & MWM_FUNC_MOVE) != 0)
{
meta_verbose ("Window %s toggles move via MWM hints\n",
window->desc);
window->mwm_has_move_func = toggle_value;
}
- if ((hints->functions & MWM_FUNC_RESIZE) == 0)
+ if ((hints->functions & MWM_FUNC_RESIZE) != 0)
{
meta_verbose ("Window %s toggles resize via MWM hints\n",
window->desc);