summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-09-29 17:35:11 +0000
committerHavoc Pennington <hp@src.gnome.org>2003-09-29 17:35:11 +0000
commit320ef83bfcbfd0536bbf41df68e6a3ee0bf7bd2d (patch)
tree7c890b543e55e4be66c9cadbb2cb6f863e99f628
parent8849fad8f9dfdba843899058026ca9c7f32555a2 (diff)
downloadmetacity-320ef83bfcbfd0536bbf41df68e6a3ee0bf7bd2d.tar.gz
don't move the focus after you click the close button on a window. bug
2003-09-29 Havoc Pennington <hp@redhat.com> * src/delete.c (meta_window_delete): don't move the focus after you click the close button on a window. bug #108706
-rw-r--r--ChangeLog5
-rw-r--r--src/delete.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e009698..888fcb99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2003-09-29 Havoc Pennington <hp@redhat.com>
+ * src/delete.c (meta_window_delete): don't move the focus after
+ you click the close button on a window. bug #108706
+
+2003-09-29 Havoc Pennington <hp@redhat.com>
+
* src/main.c (find_accessibility_module): fix warnings (one was a
real bug)
diff --git a/src/delete.c b/src/delete.c
index 2d30e8d7..ced57267 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -387,6 +387,10 @@ meta_window_delete (MetaWindow *window,
if (window->has_focus)
{
+ /* FIXME Clean this up someday
+ * http://bugzilla.gnome.org/show_bug.cgi?id=108706
+ */
+#if 0
/* This is unfortunately going to result in weirdness
* if the window doesn't respond to the delete event.
* I don't know how to avoid that though.
@@ -396,6 +400,11 @@ meta_window_delete (MetaWindow *window,
window->desc);
meta_workspace_focus_mru_window (window->screen->active_workspace,
window);
+#else
+ meta_topic (META_DEBUG_FOCUS,
+ "Not unfocusing %s on delete/kill\n",
+ window->desc);
+#endif
}
else
{