]> Dogcows Code - chaz/openbox/blobdiff - openbox/startupnotify.c
the old event code
[chaz/openbox] / openbox / startupnotify.c
index 8866e40a1b1cfe66e4ca081b652acb96bd147b80..f296c76d241b312f493042d530fb01f23542f5ee 100644 (file)
@@ -1,3 +1,21 @@
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
+
+   startupnotify.c for the Openbox window manager
+   Copyright (c) 2003        Ben Jansens
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   See the COPYING file for a copy of the GNU General Public License.
+*/
+
 #include "startupnotify.h"
 
 #ifndef USE_LIBSN
@@ -50,6 +68,8 @@ void sn_shutdown(gboolean reconfig)
 
     if (reconfig) return;
 
+    ob_main_loop_x_remove(ob_main_loop, sn_handler);
+
     for (it = sn_waits; it; it = g_slist_next(it))
         wait_data_free(it->data);
     g_slist_free(sn_waits);
@@ -141,7 +161,6 @@ static void sn_event_func(SnMonitorEvent *ev, gpointer data)
 
     switch (sn_monitor_event_get_type(ev)) {
     case SN_MONITOR_EVENT_INITIATED:
-        g_message("starting");
         d = wait_data_new(seq);
         sn_waits = g_slist_prepend(sn_waits, d);
         /* 30 second timeout for apps to start */
This page took 0.020699 seconds and 4 git commands to generate.