Alter the meaning of expected_focus_window; doesn't affect current

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

         Alter the meaning of expected_focus_window; doesn't affect
	 current operation but assists in fixing some other bugs
	 (#154598)

	* src/display.c (meta_display_focus_the_no_focus_window): set the
	expected_focus_window to NULL.

	* src/window.c (meta_window_notify_focus): don't NULL the
	expected_focus_window when that window receives a FocusIn event
This commit is contained in:
Elijah Newren 2004-10-08 21:57:01 +00:00 committed by Elijah Newren
parent 714fb3d539
commit 79b4de04fc
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,15 @@
2004-10-08 Elijah Newren <newren@math.utah.edu>
Alter the meaning of expected_focus_window; doesn't affect
current operation but assists in fixing some other bugs
(#154598)
* src/display.c (meta_display_focus_the_no_focus_window): set the
expected_focus_window to NULL.
* src/window.c (meta_window_notify_focus): don't NULL the
expected_focus_window when that window receives a FocusIn event
2004-10-04 Elijah Newren <newren@math.utah.edu>
* src/display.c (event_callback): if the root window gets focused,

View File

@ -4593,6 +4593,7 @@ meta_display_focus_the_no_focus_window (MetaDisplay *display,
display->no_focus_window,
RevertToPointerRoot,
timestamp);
display->expected_focus_window = NULL;
meta_display_remove_autoraise_callback (display);
}

View File

@ -4303,9 +4303,6 @@ meta_window_notify_focus (MetaWindow *window,
if (event->type == FocusIn)
{
if (window->display->expected_focus_window == window)
window->display->expected_focus_window = NULL;
if (window != window->display->focus_window)
{
meta_topic (META_DEBUG_FOCUS,