summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorBrandon Schaefer <brandon.schaefer@canonical.com>2013-07-26 11:06:19 -0700
committerBrandon Schaefer <brandon.schaefer@canonical.com>2013-07-26 11:06:19 -0700
commitd7bef43dd7a9086ad5cd5fd9d2e074075023d4ba (patch)
tree6b5d535c428c57f82788deb5e7c066f17d6fc26f /plugins/unityshell
parent580fc7acbdf7aabe41fd2433fd66070156b27801 (diff)
* When you close all the detail windows we close the switcher.
As we can't safely add/remove icons from the application list, as iterators can be exposed. Aslo getting a crash when removing the last one needs to be looked at a bit more. (bzr r3426.1.12)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index bdf4d65f8..4d13d1735 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -1221,7 +1221,9 @@ bool UnityWindow::handleEvent(XEvent *event)
if (was_pressed)
{
if (close_button_geo_.IsPointInside(event->xbutton.x_root, event->xbutton.y_root))
+ {
window->close(0);
+ }
handled = true;
}