summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-11-03 12:52:11 +0100
committerMikael Magnusson <mikachu@gmail.com>2014-11-03 12:52:21 +0100
commit28e85ea2b27100de4d737347b3460324d7e971e2 (patch)
treeb0aff3e6408ef0dec9625993791ce554026c8da3 /openbox/frame.c
parent031e3c13b4333ae8def24f4ccb2f777779d4a3a5 (diff)
Move final frame adjust in flashing to timeout func
This possibly avoids badness when the timeout destroy notify is removed from the frame release func.
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 68332dff..89669726 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -1664,9 +1664,6 @@ static void flash_done(gpointer data)
{
ObFrame *self = data;
- if (self->focused != self->flash_on)
- frame_adjust_focus(self, self->focused);
-
self->flash_timer = 0;
}
@@ -1681,8 +1678,12 @@ static gboolean flash_timeout(gpointer data)
now.tv_usec >= self->flash_end.tv_usec))
self->flashing = FALSE;
- if (!self->flashing)
+ if (!self->flashing) {
+ if (self->focused != self->flash_on)
+ frame_adjust_focus(self, self->focused);
+
return FALSE; /* we are done */
+ }
self->flash_on = !self->flash_on;
if (!self->focused) {