[mutter] window-wayland: Don't bother checking if anything changed
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window-wayland: Don't bother checking if anything changed
- Date: Wed, 17 Sep 2014 01:17:05 +0000 (UTC)
commit 5c40345128a17d9fef6b30defabd38bde0a14055
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 16 19:16:19 2014 -0600
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 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c
index ee5f047..b8bd102 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]