dont crash when flashing a window when it goes away, remove the timer when dying
Dana Jansens danakj@orodu.net
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
openbox/frame.c
→
openbox/frame.c
@@ -19,6 +19,8 @@ #define FRAME_HANDLE_Y(f) (f->innersize.top + f->client->area.height + \
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)@@ -474,6 +476,8 @@ g_hash_table_remove(window_map, &self->lgrip);
g_hash_table_remove(window_map, &self->rgrip); 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); }