mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: optimize layer geom set
This commit is contained in:
parent
f7c161b78c
commit
21c15c07dd
1 changed files with 4 additions and 1 deletions
|
|
@ -3299,7 +3299,10 @@ void maplayersurfacenotify(struct wl_listener *listener, void *data) {
|
||||||
if (animations && layer_animations && !l->noanim) {
|
if (animations && layer_animations && !l->noanim) {
|
||||||
l->need_output_flush = true;
|
l->need_output_flush = true;
|
||||||
l->animation.action = OPEN;
|
l->animation.action = OPEN;
|
||||||
l->geom = box;
|
l->geom.x = box.x;
|
||||||
|
l->geom.y = box.y;
|
||||||
|
l->geom.width = box.width;
|
||||||
|
l->geom.height = box.height;
|
||||||
layer_set_pending_state(l);
|
layer_set_pending_state(l);
|
||||||
}
|
}
|
||||||
// 刷新布局,让窗口能感应到exclude_zone变化以及设置独占表面
|
// 刷新布局,让窗口能感应到exclude_zone变化以及设置独占表面
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue