summaryrefslogtreecommitdiff
path: root/openbox/client.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-18 19:22:59 +0000
committerDana Jansens <danakj@orodu.net>2007-04-18 19:22:59 +0000
commit90cd9c62192194d1b3ab868a77fe56a9b1e215c2 (patch)
tree9110d9f62f519cbc12c3a881f8f6ad8cbaed8897 /openbox/client.h
parentf18d9a95399f9588151bf142b0f03b0781527171 (diff)
get rid of global client_last_user_time variable.
add ObClientTimeHeap. This is a max-heap of the clients based on their user times. this only includes the clients whose user time is not CurrentTime. the maximum from this heap replaces the client_last_user_time variable, so that you always have the latest time, not the last time that was changed. hoefully it works, so far it seems to.
Diffstat (limited to 'openbox/client.h')
-rw-r--r--openbox/client.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/client.h b/openbox/client.h
index 1c4a2b1f..bb1d4c9f 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -2,7 +2,7 @@
client.h for the Openbox window manager
Copyright (c) 2006 Mikael Magnusson
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -32,6 +32,7 @@
struct _ObFrame;
struct _ObGroup;
struct _ObSessionState;
+struct _ObClientTimeHeap;
typedef struct _ObClient ObClient;
typedef struct _ObClientIcon ObClientIcon;
@@ -300,6 +301,7 @@ struct _ObAppSettings
};
extern GList *client_list;
+extern struct _ObClientTimeHeap *client_user_times;
void client_startup(gboolean reconfig);
void client_shutdown(gboolean reconfig);
@@ -559,7 +561,7 @@ void client_update_strut(ObClient *self);
/*! Updates the window's icons */
void client_update_icons(ObClient *self);
/*! Updates the window's user time */
-void client_update_user_time(ObClient *self, gboolean new_event);
+void client_update_user_time(ObClient *self);
/*! Set up what decor should be shown on the window and what functions should
be allowed (ObClient::decorations and ObClient::functions).