select keypress/keyrelease events on root window, this may fix the bug

2002-06-08  Havoc Pennington  <hp@pobox.com>

	* src/screen.c (meta_screen_new): select keypress/keyrelease
	events on root window, this may fix the bug where keybindings
	didn't work if you didn't have a focused window.
This commit is contained in:
Havoc Pennington 2002-06-08 22:06:55 +00:00 committed by Havoc Pennington
parent be44a1d9a5
commit 538a06fd55
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-06-08 Havoc Pennington <hp@pobox.com>
* src/screen.c (meta_screen_new): select keypress/keyrelease
events on root window, this may fix the bug where keybindings
didn't work if you didn't have a focused window.
2002-06-08 Havoc Pennington <hp@pobox.com>
* src/main.c (main): call meta_session_shutdown when exiting

View File

@ -204,6 +204,7 @@ meta_screen_new (MetaDisplay *display,
ColormapChangeMask | PropertyChangeMask |
LeaveWindowMask | EnterWindowMask |
ButtonPressMask | ButtonReleaseMask |
KeyPressMask | KeyReleaseMask |
FocusChangeMask | attr.your_event_mask);
if (meta_error_trap_pop (display) != Success)
{