mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-23 05:35:53 -04:00
opt: not apply animationa action when xdg toplevel is initing
This commit is contained in:
parent
ccefa572e1
commit
2bd9d2d292
2 changed files with 12 additions and 0 deletions
|
|
@ -1182,6 +1182,10 @@ bool client_draw_frame(Client *c) {
|
||||||
if (!c || !client_surface(c)->mapped)
|
if (!c || !client_surface(c)->mapped)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (c->animation.running && client_is_initing(c)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!c->need_output_flush) {
|
if (!c->need_output_flush) {
|
||||||
return client_apply_focus_opacity(c);
|
return client_apply_focus_opacity(c);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -491,6 +491,14 @@ static inline bool client_request_maximize(Client *c, void *data) {
|
||||||
return c->surface.xdg->toplevel->requested.maximized;
|
return c->surface.xdg->toplevel->requested.maximized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool client_is_initing(Client *c) {
|
||||||
|
#ifdef XWAYLAND
|
||||||
|
if (client_is_x11(c))
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
return c->surface.xdg->initial_commit;
|
||||||
|
}
|
||||||
|
|
||||||
static inline void client_set_size_bound(Client *c) {
|
static inline void client_set_size_bound(Client *c) {
|
||||||
struct wlr_xdg_toplevel *toplevel;
|
struct wlr_xdg_toplevel *toplevel;
|
||||||
struct wlr_xdg_toplevel_state state;
|
struct wlr_xdg_toplevel_state state;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue