mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-17 22:05:25 -05:00
opt: optimize border color set when change monitor
This commit is contained in:
parent
2258574e25
commit
44c271ee52
2 changed files with 9 additions and 5 deletions
|
|
@ -3166,6 +3166,7 @@ void destroykeyboardgroup(struct wl_listener *listener, void *data) {
|
|||
void focusclient(Client *c, int lift) {
|
||||
|
||||
Client *last_focus_client = NULL;
|
||||
Monitor *um = NULL;
|
||||
|
||||
struct wlr_surface *old_keyboard_focus_surface =
|
||||
seat->keyboard_state.focused_surface;
|
||||
|
|
@ -3211,6 +3212,13 @@ void focusclient(Client *c, int lift) {
|
|||
client_set_unfocused_opacity_animation(last_focus_client);
|
||||
}
|
||||
|
||||
wl_list_for_each(um, &mons, link) {
|
||||
if (um->wlr_output->enabled && um != selmon && um->sel &&
|
||||
!um->sel->iskilling) {
|
||||
client_set_unfocused_opacity_animation(um->sel);
|
||||
}
|
||||
}
|
||||
|
||||
client_set_focused_opacity_animation(c);
|
||||
|
||||
// decide whether need to re-arrange
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue