• Pekka Paalanen's avatar
    xwayland: detect initially positioned X11 windows · 882aff09
    Pekka Paalanen authored
    X11 applications expect -geometry command line option to work for
    setting the initial window position, but currently this does not work.
    
    During map, detect X11 windows that set an explicit position. This works
    by heuristics: if window position is not 0,0 then it is explicitly
    positioned. Legacy fullscreen windows are also at 0,0 but these are
    detected earlier.
    
    Explicitly store the window position at map request time to detect
    client-positioned windows, and use it as the suggested initial position.
    weston_wm_window::x and y have been overwritten due to reparenting when
    we eventually need the initial position.
    
    This patch requires that the new set_toplevel_with_position() hook is
    implemented in the shell.
    
    Note that this patch is about positioning xwayland toplevels, not
    override-redirect windows which are already handled.
    Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    Reviewed-by: Quentin Glidic's avatarQuentin Glidic <sardemff7+git@sardemff7.net>
    Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
    882aff09
Name
Last commit
Last update
..
dnd.c Loading commit data...
hash.c Loading commit data...
hash.h Loading commit data...
launcher.c Loading commit data...
selection.c Loading commit data...
window-manager.c Loading commit data...
xwayland-api.h Loading commit data...
xwayland-internal-interface.h Loading commit data...
xwayland.h Loading commit data...