Focusing a window upon unshowing the desktop in various ways (panel applet

2004-08-06  Elijah Newren  <newren@math.utah.edu>

	* src/display.c (event_callback): Focusing a window upon unshowing
	the desktop in various ways (panel applet or keybinding) was
	inconsistent for sloppy and click focus modes.  Fix this by
	calling meta_workspace_focus_default_window after unshowing the
	desktop via a _NET_SHOWING_DESKTOP message.  (resolves #149543)
This commit is contained in:
Elijah Newren 2004-08-07 03:13:56 +00:00 committed by Elijah Newren
parent 385248044d
commit e81659d2ff
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2004-08-06 Elijah Newren <newren@math.utah.edu>
* src/display.c (event_callback): Focusing a window upon unshowing
the desktop in various ways (panel applet or keybinding) was
inconsistent for sloppy and click focus modes. Fix this by
calling meta_workspace_focus_default_window after unshowing the
desktop via a _NET_SHOWING_DESKTOP message. (resolves #149543)
2004-08-06 Elijah Newren <newren@math.utah.edu>
* src/workspace.c (meta_workspace_focus_default_window): prevent

View File

@ -2086,7 +2086,10 @@ event_callback (XEvent *event,
if (showing_desktop)
meta_screen_show_desktop (screen);
else
meta_screen_unshow_desktop (screen);
{
meta_screen_unshow_desktop (screen);
meta_workspace_focus_default_window (screen->active_workspace, NULL);
}
}
else if (event->xclient.message_type ==
display->atom_metacity_restart_message)