opt: avoid useless get geometry
This commit is contained in:
@@ -2621,10 +2621,6 @@ void commitnotify(struct wl_listener *listener, void *data) {
|
|||||||
|
|
||||||
struct wlr_box geometry;
|
struct wlr_box geometry;
|
||||||
client_get_geometry(c, &geometry);
|
client_get_geometry(c, &geometry);
|
||||||
if (geometry.width == c->animation.current.width - 2 * c->bw &&
|
|
||||||
geometry.height == c->animation.current.height - 2 * c->bw) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (geometry.width == c->geom.width - 2 * c->bw &&
|
if (geometry.width == c->geom.width - 2 * c->bw &&
|
||||||
geometry.height == c->geom.height - 2 * c->bw) {
|
geometry.height == c->geom.height - 2 * c->bw) {
|
||||||
@@ -2632,6 +2628,11 @@ void commitnotify(struct wl_listener *listener, void *data) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (geometry.width == c->animation.current.width - 2 * c->bw &&
|
||||||
|
geometry.height == c->animation.current.height - 2 * c->bw) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
resize(c, c->geom, (c->isfloating && !c->isfullscreen));
|
resize(c, c->geom, (c->isfloating && !c->isfullscreen));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user