summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-31 08:45:57 +0000
committerDana Jansens <danakj@orodu.net>2003-07-31 08:45:57 +0000
commit717d10f31a5247700f5303fc82bb4767661f5fd7 (patch)
tree320f031670e92e9c19f0e96cffd761d12b1f0e60
parente75ad73c0f8cf1a327a57284bcb4c2cc261d279f (diff)
add the window to the lists before setting the client list hint
-rw-r--r--openbox/client.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 1219f15d..08a80a48 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -318,15 +318,15 @@ void client_manage(Window window)
if (screen_showing_desktop)
screen_show_desktop(FALSE);
+ /* add to client list/map */
+ client_list = g_list_append(client_list, self);
+ g_hash_table_insert(window_map, &self->window, self);
+
/* update the list hints */
client_set_list();
dispatch_client(Event_Client_Mapped, self, 0, 0);
- /* add to client list/map */
- client_list = g_list_append(client_list, self);
- g_hash_table_insert(window_map, &self->window, self);
-
ob_debug("Managed window 0x%lx (%s)\n", window, self->class);
}
@@ -463,19 +463,12 @@ static void client_restore_session_state(ObClient *self)
{
ObSessionState *s;
- g_message("looking for %s", self->name);
-
s = session_state_find(self);
- g_message("returned %p %d", s, self->positioned);
if (!(s)) return;
- g_message("restoring state for %s", s->name);
-
- g_message("%d %d %d %d", s->x, s->y, s->w, s->h);
RECT_SET(self->area, s->x, s->y, s->w, s->h);
XResizeWindow(ob_display, self->window, s->w, s->h);
self->positioned = TRUE;
- g_message("desktop %d", s->desktop);
self->desktop = s->desktop == DESKTOP_ALL ? s->desktop :
MIN(screen_num_desktops - 1, s->desktop);
self->shaded = s->shaded;