[gtk+] wayland: Only 'moved-to-rect' if move_to_rect() was used
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Only 'moved-to-rect' if move_to_rect() was used
- Date: Fri, 30 Sep 2016 10:40:39 +0000 (UTC)
commit f7c0661a61f4fe46fa691ee2133a39877e110736
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Sep 16 15:42:37 2016 +0800
wayland: Only 'moved-to-rect' if move_to_rect() was used
Don't emit the 'moved-to-rect' signal if move_to_rect() was used.
https://bugzilla.gnome.org/show_bug.cgi?id=771516
gdk/wayland/gdkwindow-wayland.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 7dbb979..3e0abb1 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1509,6 +1509,9 @@ xdg_popup_configure (void *data,
g_return_if_fail (impl->transient_for);
+ if (impl->position_method != POSITION_METHOD_MOVE_TO_RECT)
+ return;
+
calculate_moved_to_rect_result (window, x, y, width, height,
&flipped_rect,
&final_rect,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]