diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2017-03-09 14:06:51 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-03-11 15:31:12 +0100 |
commit | 406e1c3577639072f3274fdf117dccb1b3d46ffd (patch) | |
tree | 3234e25566d975769a55802c48c13b12f01be866 | |
parent | 68b4d1e462cce1b7066ce229972e39a84be40802 (diff) | |
download | mutter-406e1c3577639072f3274fdf117dccb1b3d46ffd.tar.gz |
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
-rw-r--r-- | 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 59aac3269..a78e84666 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, |