Update the insertion point if the target desktop changes

This commit is contained in:
Bastien Dejean 2014-01-05 10:43:13 +01:00
parent 50c6f10182
commit 3250438d7c

View file

@ -94,6 +94,7 @@ void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
if (desktop_from_desc(csq->desktop_desc, &ref, &trg)) {
m = trg.monitor;
d = trg.desktop;
f = trg.desktop->focus;
}
} else if (csq->monitor_desc[0] != '\0') {
coordinates_t ref = {m, NULL, NULL};
@ -101,12 +102,14 @@ void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
if (monitor_from_desc(csq->monitor_desc, &ref, &trg)) {
m = trg.monitor;
d = trg.monitor->desk;
f = trg.monitor->desk->focus;
}
}
if (csq->sticky) {
m = mon;
d = mon->desk;
f = mon->desk->focus;
}
client_t *c = make_client(win);