resizor: Don't resize if maximized

https://bugs.freedesktop.org/show_bug.cgi?id=73723
This commit is contained in:
Kristian Høgsberg 2014-01-17 15:31:33 -08:00
parent 8e80a31ba4
commit 6f394d59a1

View File

@ -77,6 +77,14 @@ frame_callback(void *data, struct wl_callback *callback, uint32_t time)
assert(!callback || callback == resizor->frame_callback);
if (resizor->frame_callback) {
wl_callback_destroy(resizor->frame_callback);
resizor->frame_callback = NULL;
}
if (window_is_maximized(resizor->window))
return;
spring_update(&resizor->width);
spring_update(&resizor->height);
@ -84,11 +92,6 @@ frame_callback(void *data, struct wl_callback *callback, uint32_t time)
resizor->width.current + 0.5,
resizor->height.current + 0.5);
if (resizor->frame_callback) {
wl_callback_destroy(resizor->frame_callback);
resizor->frame_callback = NULL;
}
if (!spring_done(&resizor->width) || !spring_done(&resizor->height)) {
resizor->frame_callback =
wl_surface_frame(