From d7bef43dd7a9086ad5cd5fd9d2e074075023d4ba Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Fri, 26 Jul 2013 11:06:19 -0700 Subject: * 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) --- plugins/unityshell/src/unityshell.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/unityshell') 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; } -- cgit v1.2.3