mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: remove ov mode redundant recovery animation
This commit is contained in:
parent
ba346e5092
commit
bc0c7a61a9
1 changed files with 5 additions and 0 deletions
5
main.c
5
main.c
|
|
@ -197,6 +197,7 @@ typedef struct {
|
|||
struct wlr_box bounds;
|
||||
bool resizing;
|
||||
bool is_first_resize;
|
||||
bool is_restoring_from_ov;
|
||||
|
||||
struct dwl_animation animation;
|
||||
|
||||
|
|
@ -1606,6 +1607,9 @@ void client_set_pending_state(Client *c, uint32_t x, uint32_t y,
|
|||
if (!animations || c == grabc || (!c->is_first_resize && wlr_box_equal(&c->current, &pending)))
|
||||
{
|
||||
c->animation.should_animate = false;
|
||||
} else if (c->is_restoring_from_ov) {
|
||||
c->is_restoring_from_ov = false;
|
||||
c->animation.should_animate = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -4460,6 +4464,7 @@ void overview_restore(Client *c, const Arg *arg) {
|
|||
c->overview_isfullscreenbak = 0;
|
||||
c->overview_isfakefullscreenbak = 0;
|
||||
c->bw = c->overview_backup_bw;
|
||||
c->is_restoring_from_ov = true;
|
||||
if (c->isfloating) {
|
||||
// XRaiseWindow(dpy, c->win); // 提升悬浮窗口到顶层
|
||||
resizeclient(c, c->overview_backup_x, c->overview_backup_y, c->overview_backup_w,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue