mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-03 09:01:47 -05:00
fix: gloabl window in scroller lost foucs when switch to empty tag
This commit is contained in:
parent
8e781a9bbc
commit
d3be50b9e3
1 changed files with 3 additions and 1 deletions
4
main.c
4
main.c
|
|
@ -1157,6 +1157,8 @@ arrange(Monitor *m, bool want_animation) {
|
||||||
|
|
||||||
if (c->mon == m && c->isglobal) {
|
if (c->mon == m && c->isglobal) {
|
||||||
c->tags = m->tagset[m->seltags];
|
c->tags = m->tagset[m->seltags];
|
||||||
|
if(selmon->sel == NULL)
|
||||||
|
focusclient(c,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->mon == m) {
|
if (c->mon == m) {
|
||||||
|
|
@ -1723,7 +1725,7 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data) {
|
||||||
void client_set_pending_state(Client *c) {
|
void client_set_pending_state(Client *c) {
|
||||||
|
|
||||||
// 判断是否需要动画
|
// 判断是否需要动画
|
||||||
if(c->isglobal){
|
if(c->isglobal && c->isfloating){
|
||||||
c->animation.should_animate = false;
|
c->animation.should_animate = false;
|
||||||
} else if (animations && c->animation.tagining) {
|
} else if (animations && c->animation.tagining) {
|
||||||
c->animation.tagining = false;
|
c->animation.tagining = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue