summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-04 04:06:43 +0000
committerDana Jansens <danakj@orodu.net>2007-05-04 04:06:43 +0000
commit02dda1ef65dc71ec0b7f375c939c3d1a56ac7034 (patch)
tree3dd10275c009d760487282bda201426d64c0b748 /openbox
parentb71f1cd6a53801b51a830705a664fd14a164712a (diff)
set the usertime on windows if they dont provide one, to something reasonable.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index df0102c7..19b65f03 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -277,7 +277,7 @@ void client_manage(Window window)
self->wmstate = WithdrawnState; /* make sure it gets updated first time */
self->layer = -1;
self->desktop = screen_num_desktops; /* always an invalid value */
- self->user_time = CurrentTime;
+ self->user_time = focus_client ? focus_client->user_time : CurrentTime;
client_get_all(self);
/* per-app settings override stuff, and return the settings for other
@@ -1202,6 +1202,8 @@ void client_update_transient_for(ObClient *self)
c->transients = g_slist_append(c->transients, self);
}
+/* XXX can i remove this ?? */
+
/* remove all transients which are in the group, that causes
circlular pointer hell of doom */
for (it = self->group->members; it; it = g_slist_next(it)) {