From 8d91135926883a59f01be8e2efdf953ac056ff23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 20 Jan 2019 17:43:31 +0100 Subject: [PATCH] wayland/xdg-shell: Fix buffer attach coordinate comparison Only x was checked, but twice. Should check both x and y. --- src/wayland/meta-wayland-legacy-xdg-shell.c | 2 +- src/wayland/meta-wayland-xdg-shell.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-legacy-xdg-shell.c b/src/wayland/meta-wayland-legacy-xdg-shell.c index 9c7dbf373..504b34ffd 100644 --- a/src/wayland/meta-wayland-legacy-xdg-shell.c +++ b/src/wayland/meta-wayland-legacy-xdg-shell.c @@ -701,7 +701,7 @@ meta_wayland_zxdg_toplevel_v6_commit (MetaWaylandSurfaceRole *surface_role, window_geometry, pending->dx, pending->dy); } - else if (pending->dx != 0 || pending->dx != 0) + else if (pending->dx != 0 || pending->dy != 0) { g_warning ("XXX: Attach-initiated move without a new geometry. " "This is unimplemented right now."); diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c index 9e1d86bd5..af35cc89a 100644 --- a/src/wayland/meta-wayland-xdg-shell.c +++ b/src/wayland/meta-wayland-xdg-shell.c @@ -732,7 +732,7 @@ meta_wayland_xdg_toplevel_commit (MetaWaylandSurfaceRole *surface_role, window_geometry, pending->dx, pending->dy); } - else if (pending->dx != 0 || pending->dx != 0) + else if (pending->dx != 0 || pending->dy != 0) { g_warning ("XXX: Attach-initiated move without a new geometry. " "This is unimplemented right now.");