1
0
Fork 0

prevent keyboard from "getting locked" upon workspace switch, by making

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

	* src/workspace.c (meta_workspace_focus_default_window): prevent
	keyboard from "getting locked" upon workspace switch, by making
	sure that the no_focus_window has focus if no other window does.
	(fixes #147475)
This commit is contained in:
Elijah Newren 2004-08-06 18:13:55 +00:00 committed by Elijah Newren
parent 731ac41cd7
commit 385248044d
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-08-06 Elijah Newren <newren@math.utah.edu>
* src/workspace.c (meta_workspace_focus_default_window): prevent
keyboard from "getting locked" upon workspace switch, by making
sure that the no_focus_window has focus if no other window does.
(fixes #147475)
2004-08-05 Elijah Newren <newren@math.utah.edu>
Have newly mapped windows that are denied focus appear after the

View file

@ -799,7 +799,15 @@ meta_workspace_focus_default_window (MetaWorkspace *workspace,
else if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_SLOPPY)
meta_workspace_focus_mru_window (workspace, not_this_one);
else if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_MOUSE)
meta_topic (META_DEBUG_FOCUS, "No mouse window to focus found\n");
{
meta_topic (META_DEBUG_FOCUS,
"Setting focus to no_focus_window, since no valid "
"window to focus found.\n");
XSetInputFocus (workspace->screen->display->xdisplay,
workspace->screen->display->no_focus_window,
RevertToPointerRoot,
meta_display_get_current_time (workspace->screen->display));
}
}
}