add a server grab here since we were failing to have one when calling the

2001-12-21  Havoc Pennington  <hp@redhat.com>

	* src/frame.c (meta_window_ensure_frame): add a server grab
	here since we were failing to have one when calling the function
This commit is contained in:
Havoc Pennington 2002-01-02 17:42:14 +00:00 committed by Havoc Pennington
parent edb4d0a8c4
commit 86e9191d34
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-12-21 Havoc Pennington <hp@redhat.com>
* src/frame.c (meta_window_ensure_frame): add a server grab
here since we were failing to have one when calling the function
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -36,11 +36,12 @@ meta_window_ensure_frame (MetaWindow *window)
{ {
MetaFrame *frame; MetaFrame *frame;
XSetWindowAttributes attrs; XSetWindowAttributes attrs;
g_return_if_fail (window->display->server_grab_count > 0);
if (window->frame) if (window->frame)
return; return;
/* See comment below for why this is required. */
meta_display_grab (window->display);
frame = g_new (MetaFrame, 1); frame = g_new (MetaFrame, 1);
@ -127,6 +128,8 @@ meta_window_ensure_frame (MetaWindow *window)
/* Move keybindings to frame instead of window */ /* Move keybindings to frame instead of window */
meta_window_grab_keys (window); meta_window_grab_keys (window);
meta_display_ungrab (window->display);
} }
void void