]> Dogcows Code - chaz/openbox/commitdiff
Fix for #3715, app settings applied too late.
authorMikael Magnusson <mikachu@gmail.com>
Fri, 3 Jul 2009 19:19:54 +0000 (21:19 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Fri, 3 Jul 2009 19:20:35 +0000 (21:20 +0200)
This caused problems for placing windows with decor turned off, the
placement code thought they had it on.

openbox/client.c

index 03bbfe48e0d3934c4c61b164e7ad1da212b05c58..016a660fd486b9875b27714813cbc6db6dd0e959 100644 (file)
@@ -315,6 +315,11 @@ void client_manage(Window window, ObPrompt *prompt)
     ob_debug("Window group: 0x%x\n", self->group?self->group->leader:0);
     ob_debug("Window name: %s class: %s\n", self->name, self->class);
 
+    /* per-app settings override stuff from client_get_all, and return the
+       settings for other uses too. the returned settings is a shallow copy,
+       that needs to be freed with g_free(). */
+    settings = client_get_settings_state(self);
+
     /* now we have all of the window's information so we can set this up.
        do this before creating the frame, so it can tell that we are still
        mapping and doesn't go applying things right away */
@@ -335,10 +340,6 @@ void client_manage(Window window, ObPrompt *prompt)
        time now */
     grab_server(FALSE);
 
-    /* per-app settings override stuff from client_get_all, and return the
-       settings for other uses too. the returned settings is a shallow copy,
-       that needs to be freed with g_free(). */
-    settings = client_get_settings_state(self);
     /* the session should get the last say though */
     client_restore_session_state(self);
 
This page took 0.024801 seconds and 4 git commands to generate.