mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Split out sticky mode checks and the restoring of a client's group and
_NET_WM_DESKTOP from the config-based auto-grouping; no (intentional) behavior changes. Needed for further work in cleaning up this area.
This commit is contained in:
14
client.c
14
client.c
@ -120,9 +120,17 @@ client_init(Window win, struct screen_ctx *sc)
|
||||
else
|
||||
client_unhide(cc);
|
||||
|
||||
if (mapped)
|
||||
group_autogroup(cc);
|
||||
|
||||
if (mapped) {
|
||||
if (group_restore(cc))
|
||||
goto out;
|
||||
if (group_autogroup(cc))
|
||||
goto out;
|
||||
if (Conf.flags & CONF_STICKY_GROUPS)
|
||||
group_assign(sc->group_active, cc);
|
||||
else
|
||||
group_assign(NULL, cc);
|
||||
}
|
||||
out:
|
||||
XSync(X_Dpy, False);
|
||||
XUngrabServer(X_Dpy);
|
||||
|
||||
|
Reference in New Issue
Block a user