change alt+tab to a windowless grab, fixes #83499

2002-08-03  Craig Black  <blackc@speakeasy.net>

  * src/keybindings.c: (meta_display_process_key_event),
  (process_tab_grab), (do_choose_window): change alt+tab
  to a windowless grab, fixes #83499
This commit is contained in:
Craig Black 2002-08-03 23:30:48 +00:00 committed by Craig Black
parent dc5a81ac77
commit ae148bc89f
2 changed files with 11 additions and 11 deletions

View File

@ -1,3 +1,9 @@
2002-08-03 Craig Black <blackc@speakeasy.net>
* src/keybindings.c: (meta_display_process_key_event),
(process_tab_grab), (do_choose_window): change alt+tab
to a windowless grab, fixes #83499
2002-08-03 Craig Black <blackc@speakeasy.net> 2002-08-03 Craig Black <blackc@speakeasy.net>
* src/display.c: (event_callback): Have ButtonPress and UnmapNotify * src/display.c: (event_callback): Have ButtonPress and UnmapNotify

View File

@ -124,7 +124,6 @@ static gboolean process_keyboard_resize_grab (MetaDisplay *display,
KeySym keysym); KeySym keysym);
static gboolean process_tab_grab (MetaDisplay *display, static gboolean process_tab_grab (MetaDisplay *display,
MetaWindow *window,
XEvent *event, XEvent *event,
KeySym keysym); KeySym keysym);
@ -1349,8 +1348,7 @@ meta_display_process_key_event (MetaDisplay *display,
case META_GRAB_OP_KEYBOARD_ESCAPING_DOCK: case META_GRAB_OP_KEYBOARD_ESCAPING_DOCK:
meta_topic (META_DEBUG_KEYBINDINGS, meta_topic (META_DEBUG_KEYBINDINGS,
"Processing event for keyboard tabbing/cycling\n"); "Processing event for keyboard tabbing/cycling\n");
g_assert (window != NULL); handled = process_tab_grab (display, event, keysym);
handled = process_tab_grab (display, window, event, keysym);
break; break;
case META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING: case META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING:
@ -1855,7 +1853,6 @@ process_keyboard_resize_grab (MetaDisplay *display,
static gboolean static gboolean
process_tab_grab (MetaDisplay *display, process_tab_grab (MetaDisplay *display,
MetaWindow *window,
XEvent *event, XEvent *event,
KeySym keysym) KeySym keysym)
{ {
@ -1863,9 +1860,7 @@ process_tab_grab (MetaDisplay *display,
MetaKeyBindingAction action; MetaKeyBindingAction action;
gboolean popup_not_showing; gboolean popup_not_showing;
window = NULL; /* be sure we don't use this, it's irrelevant */ screen = display->grab_screen;
screen = display->grab_window->screen;
g_return_val_if_fail (screen->tab_popup != NULL, FALSE); g_return_val_if_fail (screen->tab_popup != NULL, FALSE);
@ -2323,7 +2318,7 @@ do_choose_window (MetaDisplay *display,
{ {
window = meta_display_get_tab_next (display, window = meta_display_get_tab_next (display,
type, type,
display->focus_window->screen, display->focus_window->screen,
display->focus_window->screen->active_workspace, display->focus_window->screen->active_workspace,
display->focus_window, display->focus_window,
backward); backward);
@ -2343,7 +2338,7 @@ do_choose_window (MetaDisplay *display,
{ {
window = meta_display_get_tab_next (screen->display, window = meta_display_get_tab_next (screen->display,
type, type,
screen, screen,
screen->active_workspace, screen->active_workspace,
NULL, NULL,
backward); backward);
@ -2357,8 +2352,7 @@ do_choose_window (MetaDisplay *display,
if (meta_display_begin_grab_op (window->display, if (meta_display_begin_grab_op (window->display,
window->screen, window->screen,
display->focus_window ? NULL,
display->focus_window : window,
show_popup ? show_popup ?
tab_op_from_tab_type (type) : tab_op_from_tab_type (type) :
cycle_op_from_tab_type (type), cycle_op_from_tab_type (type),