fix crash when grab failed due to another operation in progress

2002-01-15  Havoc Pennington  <hp@redhat.com>
	* src/keybindings.c (handle_tab_backward): fix crash
	when grab failed due to another operation in progress
	(handle_tab_forward): fix crash when grab failed
This commit is contained in:
Havoc Pennington 2002-01-15 23:19:06 +00:00 committed by Havoc Pennington
parent e532a300b0
commit 3194faaa9c
2 changed files with 36 additions and 28 deletions

View File

@ -1,3 +1,9 @@
2002-01-15 Havoc Pennington <hp@redhat.com>
* src/keybindings.c (handle_tab_backward): fix crash
when grab failed due to another operation in progress
(handle_tab_forward): fix crash when grab failed
2002-01-10 Havoc Pennington <hp@pobox.com>
* src/frame.c (meta_window_destroy_frame): only bump

View File

@ -980,15 +980,15 @@ handle_tab_forward (MetaDisplay *display,
{
meta_verbose ("Starting tab forward, showing popup\n");
meta_display_begin_grab_op (window->display,
if (meta_display_begin_grab_op (window->display,
display->focus_window ?
display->focus_window : window,
META_GRAB_OP_KEYBOARD_TABBING,
FALSE,
0, 0,
event->xkey.time,
0, 0);
0, 0))
{
meta_ui_tab_popup_select (window->screen->tab_popup,
window->xwindow);
/* only after selecting proper window */
@ -996,6 +996,7 @@ handle_tab_forward (MetaDisplay *display,
TRUE);
}
}
}
static void
handle_tab_backward (MetaDisplay *display,
@ -1040,15 +1041,15 @@ handle_tab_backward (MetaDisplay *display,
{
meta_verbose ("Starting tab backward, showing popup\n");
meta_display_begin_grab_op (window->display,
if (meta_display_begin_grab_op (window->display,
display->focus_window ?
display->focus_window : window,
META_GRAB_OP_KEYBOARD_TABBING,
FALSE,
0, 0,
event->xkey.time,
0, 0);
0, 0))
{
meta_ui_tab_popup_select (window->screen->tab_popup,
window->xwindow);
/* only after selecting proper window */
@ -1056,6 +1057,7 @@ handle_tab_backward (MetaDisplay *display,
TRUE);
}
}
}
static void
handle_focus_previous (MetaDisplay *display,