Client: Fix popup position for xdg shell
Popups used xdg_surface instead of xdg_popup. It's not possible to set a
position for an xdg_surface, because it's supposed to be a top level window (in
xdg shell v5). Consequently, popups were treated as top level windows and
positioned randomly on Weston.
Using xdg_popup instead solves the problem.
Task-number: QTBUG-55063
Change-Id: I223348677ef8a1ef1eee6a4c389276a6c802bcb5
Reviewed-by:
Giulio Camuffo <giulio.camuffo@kdab.com>
Showing
- src/client/client.pro 2 additions, 0 deletionssrc/client/client.pro
- src/client/qwaylandxdgpopup_p.cpp 61 additions, 0 deletionssrc/client/qwaylandxdgpopup_p.cpp
- src/client/qwaylandxdgpopup_p.h 79 additions, 0 deletionssrc/client/qwaylandxdgpopup_p.h
- src/client/qwaylandxdgshell.cpp 14 additions, 0 deletionssrc/client/qwaylandxdgshell.cpp
- src/client/qwaylandxdgshell_p.h 2 additions, 0 deletionssrc/client/qwaylandxdgshell_p.h
- src/client/qwaylandxdgshellintegration.cpp 5 additions, 1 deletionsrc/client/qwaylandxdgshellintegration.cpp
Loading
Please register or sign in to comment