mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: miss re judge the border corler of old mon sel client after change focus mon
This commit is contained in:
parent
b6b56a91ef
commit
cddbbd8bd6
1 changed files with 6 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ void toggle_trackpad_enable(const Arg *arg) {
|
|||
}
|
||||
|
||||
void focusmon(const Arg *arg) {
|
||||
Client *c;
|
||||
Client *c, *old_selmon_sel;
|
||||
Monitor *m = NULL;
|
||||
|
||||
if (arg->i != UNDIR) {
|
||||
|
|
@ -152,6 +152,7 @@ void focusmon(const Arg *arg) {
|
|||
if (!m || !m->wlr_output->enabled)
|
||||
return;
|
||||
|
||||
old_selmon_sel = selmon->sel;
|
||||
selmon = m;
|
||||
warp_cursor_to_selmon(selmon);
|
||||
c = focustop(selmon);
|
||||
|
|
@ -161,6 +162,10 @@ void focusmon(const Arg *arg) {
|
|||
wlr_seat_keyboard_notify_clear_focus(seat);
|
||||
} else
|
||||
focusclient(c, 1);
|
||||
|
||||
if (old_selmon_sel) {
|
||||
setborder_color(old_selmon_sel);
|
||||
}
|
||||
}
|
||||
|
||||
void // 17
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue