mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
fix: avoid to activate swallowing window by foreight toplevel
This commit is contained in:
parent
a10e3c329d
commit
f8f908d8b0
1 changed files with 10 additions and 0 deletions
10
maomao.c
10
maomao.c
|
|
@ -2967,6 +2967,8 @@ void focusclient(Client *c, int lift) {
|
||||||
if (locked)
|
if (locked)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (c && !client_surface(c)->mapped)
|
||||||
|
return;
|
||||||
if (c && c->iskilling)
|
if (c && c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -4735,6 +4737,10 @@ void show_hide_client(Client *c) {
|
||||||
void handle_foreign_activate_request(struct wl_listener *listener, void *data) {
|
void handle_foreign_activate_request(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, foreign_activate_request);
|
Client *c = wl_container_of(listener, c, foreign_activate_request);
|
||||||
unsigned int target;
|
unsigned int target;
|
||||||
|
|
||||||
|
if (c && c->swallowing)
|
||||||
|
return;
|
||||||
|
|
||||||
if (c && !c->isminied && c == selmon->sel) {
|
if (c && !c->isminied && c == selmon->sel) {
|
||||||
set_minized(c);
|
set_minized(c);
|
||||||
return;
|
return;
|
||||||
|
|
@ -4761,6 +4767,10 @@ void handle_foreign_fullscreen_request(struct wl_listener *listener,
|
||||||
|
|
||||||
void handle_foreign_close_request(struct wl_listener *listener, void *data) {
|
void handle_foreign_close_request(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, foreign_close_request);
|
Client *c = wl_container_of(listener, c, foreign_close_request);
|
||||||
|
|
||||||
|
if (c && c->swallowing)
|
||||||
|
return;
|
||||||
|
|
||||||
if (c) {
|
if (c) {
|
||||||
pending_kill_client(c);
|
pending_kill_client(c);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue