summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-01-10 00:27:00 +0000
committerElijah Newren <newren@src.gnome.org>2005-01-10 00:27:00 +0000
commit7d747092a6bffce0efdca952c6259a699a119462 (patch)
treed47caae76005e7701e57d4d75eab4c9f525cfdf6
parentbe29c6965339585b879f69cb5e804b9458da0087 (diff)
downloadmetacity-7d747092a6bffce0efdca952c6259a699a119462.tar.gz
Remove the hack from bug 128200; it isn't needed anymore with the fix from
2005-01-09 Elijah Newren <newren@gmail.com> * src/display.c (meta_display_open): * src/display.h (struct _MetaDisplay): * src/window.c (meta_window_free, meta_window_client_message, meta_window_notify_focus): Remove the hack from bug 128200; it isn't needed anymore with the fix from bug #160470.
-rw-r--r--ChangeLog10
-rw-r--r--src/display.c1
-rw-r--r--src/display.h4
-rw-r--r--src/window.c28
4 files changed, 11 insertions, 32 deletions
diff --git a/ChangeLog b/ChangeLog
index 030b5e09..ffc4ee8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2005-01-09 Elijah Newren <newren@gmail.com>
+ * src/display.c (meta_display_open):
+ * src/display.h (struct _MetaDisplay):
+ * src/window.c (meta_window_free, meta_window_client_message,
+ meta_window_notify_focus):
+
+ Remove the hack from bug 128200; it isn't needed anymore with the
+ fix from bug #160470.
+
+2005-01-09 Elijah Newren <newren@gmail.com>
+
Don't focus the panel on click. Fixes #160470 (and 100470 and
removes the need for the hack from 128200)
diff --git a/src/display.c b/src/display.c
index 006f8218..28b05e4b 100644
--- a/src/display.c
+++ b/src/display.c
@@ -330,7 +330,6 @@ meta_display_open (const char *name)
display->autoraise_timeout_id = 0;
display->autoraise_window = NULL;
display->focus_window = NULL;
- display->previously_focused_window = NULL;
display->expected_focus_window = NULL;
#ifdef HAVE_XSYNC
diff --git a/src/display.h b/src/display.h
index a3452d5f..a122c35a 100644
--- a/src/display.h
+++ b/src/display.h
@@ -188,10 +188,6 @@ struct _MetaDisplay
*/
MetaWindow *focus_window;
- /* Window that was the actual window from focus events before focus_window
- */
- MetaWindow *previously_focused_window;
-
/* window we are expecting a FocusIn event for or the current focus
* window if we are not expecting any FocusIn/FocusOut events; not
* perfect because applications can call XSetInputFocus directly.
diff --git a/src/window.c b/src/window.c
index aba733f1..c410a2d2 100644
--- a/src/window.c
+++ b/src/window.c
@@ -950,8 +950,6 @@ meta_window_free (MetaWindow *window)
if (window->display->focus_window == window)
window->display->focus_window = NULL;
- if (window->display->previously_focused_window == window)
- window->display->previously_focused_window = NULL;
meta_window_unqueue_calc_showing (window);
meta_window_unqueue_move_resize (window);
@@ -3970,29 +3968,7 @@ meta_window_client_message (MetaWindow *window,
event->xclient.data.l[0]);
if (event->xclient.data.l[0] == IconicState &&
window->has_minimize_func)
- {
- meta_window_minimize (window);
-
- /* If the window being minimized was the one with focus,
- * then we should focus a new window. We often receive this
- * wm_change_state message when a user has clicked on the
- * tasklist on the panel; in those cases, the current
- * focus_window is the panel, but the previous focus_window
- * will have been this one. This is a special case where we
- * need to manually handle focusing a new window because
- * meta_window_minimize will get it wrong.
- */
- if (window->display->focus_window &&
- (window->display->focus_window->type == META_WINDOW_DOCK ||
- window->display->focus_window->type == META_WINDOW_DESKTOP) &&
- window->display->previously_focused_window == window)
- {
- meta_topic (META_DEBUG_FOCUS,
- "Focusing default window because of minimization of former focus window %s, which was due to a wm_change_state client message\n",
- window->desc);
- meta_workspace_focus_default_window (window->screen->active_workspace, window, meta_display_get_current_time_roundtrip (window->display));
- }
- }
+ meta_window_minimize (window);
return TRUE;
}
@@ -4296,8 +4272,6 @@ meta_window_notify_focus (MetaWindow *window,
meta_topic (META_DEBUG_FOCUS,
"* Focus --> NULL (was %s)\n", window->desc);
- window->display->previously_focused_window =
- window->display->focus_window;
window->display->focus_window = NULL;
window->has_focus = FALSE;
if (window->frame)