mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-04 06:46:38 -04:00
fix: reset client foreign toplevel in updatemon
This commit is contained in:
parent
a032f817b4
commit
1e5cc601ac
2 changed files with 5 additions and 3 deletions
6
maomao.c
6
maomao.c
|
|
@ -3487,7 +3487,7 @@ keypress(struct wl_listener *listener, void *data)
|
|||
event->state == WL_KEYBOARD_KEY_STATE_RELEASED &&
|
||||
(keycode == 133 || keycode == 37 || keycode == 64 || keycode == 50 ||
|
||||
keycode == 134 || keycode == 105 || keycode == 108 || keycode == 62) &&
|
||||
selmon->sel) {
|
||||
selmon && selmon->sel) {
|
||||
if (selmon->isoverview && selmon->sel) {
|
||||
toggleoverview(&(Arg){.i = -1});
|
||||
}
|
||||
|
|
@ -6337,8 +6337,10 @@ updatemons(struct wl_listener *listener, void *data)
|
|||
|
||||
if (selmon && selmon->wlr_output->enabled) {
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (!c->mon && client_surface(c)->mapped)
|
||||
if (!c->mon && client_surface(c)->mapped) {
|
||||
setmon(c, selmon, c->tags);
|
||||
reset_foreign_tolevel(c);
|
||||
}
|
||||
}
|
||||
focusclient(focustop(selmon), 1);
|
||||
if (selmon->lock_surface) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue