summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-07-03 02:32:40 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-07-03 02:32:40 +0000
commitd826e620a9719527c535aa6c5e5d11ebeaa0afd5 (patch)
tree77f284adfe4549efb71adb7dbd105db09812e350 /src/window.c
parent1db28d3b3fbf93abc54477d82270471f180057fd (diff)
downloadmetacity-d826e620a9719527c535aa6c5e5d11ebeaa0afd5.tar.gz
metacity-d826e620a9719527c535aa6c5e5d11ebeaa0afd5.tar.bz2
use new macros to get whether we allow move/resize correct
2002-07-02 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_show_menu): use new macros to get whether we allow move/resize correct * src/frame.c (meta_frame_get_flags): use new macros to get whether we can move/resize correct, considering maximized/fullscreen for the move case. * src/window.h (META_WINDOW_ALLOWS_RESIZE, META_WINDOW_ALLOWS_MOVE): new macros * src/keybindings.c (process_keyboard_resize_grab): finish the right/left resize, patch from Jayaraj #78179. Has the same old move/resize bug, if it hits a constraint it starts to break because we move without resizing.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 1d8998f..9eccea1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5499,10 +5499,10 @@ meta_window_show_menu (MetaWindow *window,
if (!window->has_shade_func)
insensitive |= META_MENU_OP_SHADE | META_MENU_OP_UNSHADE;
- if (!window->has_move_func)
+ if (!META_WINDOW_ALLOWS_MOVE (window))
insensitive |= META_MENU_OP_MOVE;
- if (!window->has_resize_func)
+ if (!META_WINDOW_ALLOWS_RESIZE (window))
insensitive |= META_MENU_OP_RESIZE;
if (window->always_sticky)