Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/sugar-runner-window.c
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-05-06 22:10:47 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-05-06 22:17:48 (GMT)
commit8b296f2a0fc3edcb09c5a411514839424f13c8c2 (patch)
tree8b705cc5bf9831ff35a5c7c5f72494e19154303a /lib/sugar-runner-window.c
parent20ec64f442d7b461892b89b3f42e7adabdf1198a (diff)
Prevent closing the session from outsideHEADmaster
The idea is to always close sugar itself to exit the scripts normally and avoid leaking processes.
Diffstat (limited to 'lib/sugar-runner-window.c')
-rw-r--r--lib/sugar-runner-window.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/sugar-runner-window.c b/lib/sugar-runner-window.c
index 8590056..77f60e1 100644
--- a/lib/sugar-runner-window.c
+++ b/lib/sugar-runner-window.c
@@ -53,12 +53,6 @@ sugar_runner_window_wait(void)
DisplayHeight(display, 0) == configure_event.height);
}
- if (event.type == ClientMessage &&
- event.xclient.data.l[0] == wm_delete_window) {
- XCloseDisplay(display);
- return FALSE;
- }
-
return TRUE;
}