mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: focustop need judge surface want focus
This commit is contained in:
parent
3db1bac8f9
commit
335a8fa2b1
1 changed files with 1 additions and 1 deletions
|
|
@ -3877,7 +3877,7 @@ Client * // 0.5
|
||||||
focustop(Monitor *m) {
|
focustop(Monitor *m) {
|
||||||
Client *c;
|
Client *c;
|
||||||
wl_list_for_each(c, &fstack, flink) {
|
wl_list_for_each(c, &fstack, flink) {
|
||||||
if (c->iskilling)
|
if (c->iskilling || !client_surface_wants_focus(c))
|
||||||
continue;
|
continue;
|
||||||
if (VISIBLEON(c, m))
|
if (VISIBLEON(c, m))
|
||||||
return c;
|
return c;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue