From 5c40345128a17d9fef6b30defabd38bde0a14055 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 16 Sep 2014 19:16:19 -0600 Subject: [PATCH] window-wayland: Don't bother checking if anything changed This is a small fixup. We don't need the check here, since we don't do anything extra if it actually changed. --- src/wayland/window-wayland.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c index ee5f047b0..b8bd102e2 100644 --- a/src/wayland/window-wayland.c +++ b/src/wayland/window-wayland.c @@ -207,12 +207,8 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, } } - if (wl_window->last_sent_width != constrained_rect.width || - wl_window->last_sent_height != constrained_rect.height) - { - wl_window->last_sent_width = constrained_rect.width; - wl_window->last_sent_height = constrained_rect.height; - } + wl_window->last_sent_width = constrained_rect.width; + wl_window->last_sent_height = constrained_rect.height; if (can_move_now) {