mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Update the insertion point if the target desktop changes
This commit is contained in:
parent
50c6f10182
commit
3250438d7c
1 changed files with 3 additions and 0 deletions
3
window.c
3
window.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue