[mutter] xwayland: Raise the dnd window each time
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] xwayland: Raise the dnd window each time
- Date: Thu, 9 Mar 2017 13:22:03 +0000 (UTC)
commit 4b86af839f55b43a7931e741c21736cb1b953e75
Author: Olivier Fourdan <ofourdan redhat com>
Date: Thu Mar 9 14:06:51 2017 +0100
xwayland: Raise the dnd window each time
If the dnd window ends up lower in the overall stack than the window
it's supposed to fence, the drop might end up in some other window
underneath the expected target window.
Maps and raises the dnd window each time it's shown so that it's always
placed above.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=779800
src/wayland/meta-xwayland-selection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-xwayland-selection.c b/src/wayland/meta-xwayland-selection.c
index 59aac32..a78e846 100644
--- a/src/wayland/meta-xwayland-selection.c
+++ b/src/wayland/meta-xwayland-selection.c
@@ -1368,7 +1368,7 @@ repick_drop_surface (MetaWaylandCompositor *compositor,
if (focus &&
focus->window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND)
{
- XMapWindow (xdisplay, dnd->dnd_window);
+ XMapRaised (xdisplay, dnd->dnd_window);
XMoveResizeWindow (xdisplay, dnd->dnd_window,
focus->window->rect.x,
focus->window->rect.y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]