mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
fix: Rofi configurex11 event miss handle
This commit is contained in:
parent
ace553ace3
commit
ceb5f5dd85
1 changed files with 7 additions and 7 deletions
14
main.c
14
main.c
|
|
@ -1764,7 +1764,7 @@ void // 0.5
|
||||||
commitnotify(struct wl_listener *listener, void *data) {
|
commitnotify(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, commit);
|
Client *c = wl_container_of(listener, c, commit);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -2677,7 +2677,7 @@ void // 0.6
|
||||||
fullscreennotify(struct wl_listener *listener, void *data) {
|
fullscreennotify(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, fullscreen);
|
Client *c = wl_container_of(listener, c, fullscreen);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
setfullscreen(c, client_wants_fullscreen(c));
|
setfullscreen(c, client_wants_fullscreen(c));
|
||||||
|
|
@ -3085,7 +3085,7 @@ maximizenotify(struct wl_listener *listener, void *data) {
|
||||||
// togglefakefullscreen(&(Arg){0});
|
// togglefakefullscreen(&(Arg){0});
|
||||||
Client *c = wl_container_of(listener, c, maximize);
|
Client *c = wl_container_of(listener, c, maximize);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (c->isfakefullscreen || c->isfullscreen)
|
if (c->isfakefullscreen || c->isfullscreen)
|
||||||
|
|
@ -3130,7 +3130,7 @@ minimizenotify(struct wl_listener *listener, void *data) {
|
||||||
// togglefakefullscreen(&(Arg){0});
|
// togglefakefullscreen(&(Arg){0});
|
||||||
Client *c = wl_container_of(listener, c, minimize);
|
Client *c = wl_container_of(listener, c, minimize);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
set_minized(c);
|
set_minized(c);
|
||||||
|
|
@ -5016,7 +5016,7 @@ updatemons(struct wl_listener *listener, void *data) {
|
||||||
void updatetitle(struct wl_listener *listener, void *data) {
|
void updatetitle(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, set_title);
|
Client *c = wl_container_of(listener, c, set_title);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const char *title;
|
const char *title;
|
||||||
|
|
@ -5397,7 +5397,7 @@ void zoom(const Arg *arg) {
|
||||||
void activatex11(struct wl_listener *listener, void *data) {
|
void activatex11(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, activate);
|
Client *c = wl_container_of(listener, c, activate);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Only "managed" windows can be activated */
|
/* Only "managed" windows can be activated */
|
||||||
|
|
@ -5424,7 +5424,7 @@ void // 0.7
|
||||||
configurex11(struct wl_listener *listener, void *data) {
|
configurex11(struct wl_listener *listener, void *data) {
|
||||||
Client *c = wl_container_of(listener, c, configure);
|
Client *c = wl_container_of(listener, c, configure);
|
||||||
|
|
||||||
if(!c || !c->mon || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
struct wlr_xwayland_surface_configure_event *event = data;
|
struct wlr_xwayland_surface_configure_event *event = data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue