]> git.mdlowis.com Git - proto/anvil.git/commitdiff
make sure windows open by default are opened as floating and stay that way
authorMichael D. Lowis <mike@mdlowis.com>
Sun, 22 Mar 2020 02:46:33 +0000 (22:46 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Sun, 22 Mar 2020 02:46:33 +0000 (22:46 -0400)
client.c

index c2bbcdc4552e1cdd0857dc11f88ef053275d8347..b5863563f4ee41c9866948cdd33764ec3c252279 100644 (file)
--- a/client.c
+++ b/client.c
@@ -13,7 +13,8 @@ void client_initall(void)
         {
             if (XGetWindowAttributes(X.disp, wins[i], &attr) && !attr.override_redirect)
             {
-                (void)client_add(wins[i], &attr);
+                Client* c = client_add(wins[i], &attr);
+                c->flags |= F_DIALOG;
             }
         }
         xfree(wins);