projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6e53c4f
)
if a launch time isnt there (like for client_activate) assume the window launched...
author
Dana Jansens
<danakj@orodu.net>
Tue, 30 Mar 2010 00:36:35 +0000
(20:36 -0400)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 30 Mar 2010 00:36:35 +0000
(20:36 -0400)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index
4d54b38
..
5c5b765
100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-791,8
+791,9
@@
static gboolean client_can_steal_focus(ObClient *self, Time steal_time,
if (!(self->desktop == screen_desktop ||
self->desktop == DESKTOP_ALL) &&
/* the timestamp is from before you changed desktops */
- launch_time && screen_desktop_user_time &&
- !event_time_after(launch_time, screen_desktop_user_time))
+ (!launch_time ||
+ (screen_desktop_user_time &&
+ !event_time_after(launch_time, screen_desktop_user_time))))
{
steal = FALSE;
ob_debug_type(OB_DEBUG_FOCUS,