]> Dogcows Code - chaz/openbox/commitdiff
dont crash when flashing a window when it goes away, remove the timer when dying
authorDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 04:30:59 +0000 (04:30 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 04:30:59 +0000 (04:30 +0000)
openbox/frame.c

index 700f2eac3d3c45be6342a7e85d9ea4b70d23f0ea..3bceec997a2f2aed40fac936123b125f474517cd 100644 (file)
@@ -19,6 +19,8 @@
                           f->cbwidth_y)
 
 static void layout_title(ObFrame *self);
+static void flash_done(gpointer data);
+static gboolean flash_timeout(gpointer data);
 
 static Window createWindow(Window parent, unsigned long mask,
                           XSetWindowAttributes *attrib)
@@ -475,6 +477,8 @@ void frame_release_client(ObFrame *self, ObClient *client)
     g_hash_table_remove(window_map, &self->tlresize);
     g_hash_table_remove(window_map, &self->trresize);
 
+    ob_main_loop_timeout_remove(ob_main_loop, flash_timeout);
+
     frame_free(self);
 }
 
This page took 0.026002 seconds and 4 git commands to generate.