From 90cd9c62192194d1b3ab868a77fe56a9b1e215c2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 18 Apr 2007 19:22:59 +0000 Subject: 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. --- openbox/client.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'openbox/client.h') 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). -- cgit v1.2.3