summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2002-06-27 05:08:32 +0000
committerMark McLoughlin <mmclouglin@src.gnome.org>2002-06-27 05:08:32 +0000
commit6b72d622a5c1b0c02672f73eeeca6403b946d1bb (patch)
tree2bb5c25d2a89665eba0d9e4c33ebdb3738652997 /src/window.c
parentf0a811421fe969b59a67a54d1b1cceb2d1d1dc8b (diff)
downloadmetacity-6b72d622a5c1b0c02672f73eeeca6403b946d1bb.tar.gz
metacity-6b72d622a5c1b0c02672f73eeeca6403b946d1bb.tar.bz2
Fixes not being able to tab out of a workspace which contains no windows.
2002-06-26 Mark McLoughlin <mark@skynet.ie> Fixes not being able to tab out of a workspace which contains no windows. * src/core.c: (meta_core_begin_grab_op): upd for meta_display_begin_grab_op change. (meta_core_get_grab_frame): allow for grab_window == NULL. * src/display.[ch]: (meta_display_screen_for_xwindow): implement. (meta_display_begin_grab_op): grab on the root window if window == NULL. (meta_display_end_grab_op): use grab_screen instead of grab_window. * src/keybindings.c: (grab_all_keys_and_keyboard): split out from meta_window_grab_all_keys. (ungrab_all_keys_and_keyboard): split out from meta_window_ungrab_all_keys. (meta_screen_grab_all_keys), (meta_screen_ungrab_all_keys): implement grabbing and ungrabbing on the root window. (meta_display_process_key_event): if window == NULL, check the event is from the same screen and process. Only happens with workspace switching. (process_workspace_switch_grab): kill window param and don't use grab_window. (handle_tab_forward), (handle_begin_move): upd for meta_display_begin_grab_op change. (handle_workspace_switch): remove brokeness. Always do the grab op on the root window. * src/keybindings.h: add meta_screen_{un}grab_all_keys. * src/window.c: (meta_window_client_message), (menu_callback): update for meta_display_begin_grab_op change.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 2211905..1d8998f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3339,6 +3339,7 @@ meta_window_client_message (MetaWindow *window,
meta_topic (META_DEBUG_WINDOW_OPS,
"Beginning move/resize with button = %d\n", button);
meta_display_begin_grab_op (window->display,
+ window->screen,
window,
op,
FALSE,
@@ -5419,6 +5420,7 @@ menu_callback (MetaWindowMenu *menu,
case META_MENU_OP_MOVE:
meta_window_raise (window);
meta_display_begin_grab_op (window->display,
+ window->screen,
window,
META_GRAB_OP_KEYBOARD_MOVING,
FALSE, 0, 0,
@@ -5429,6 +5431,7 @@ menu_callback (MetaWindowMenu *menu,
case META_MENU_OP_RESIZE:
meta_window_raise (window);
meta_display_begin_grab_op (window->display,
+ window->screen,
window,
META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN,
FALSE, 0, 0,