Skip to content

xwayland: Fix delay in displaying pop-up menu

Derek Foreman requested to merge derekf/weston:xwayland_nopopup into main

Xwayland pop-up menus aren't displayed until the mouse moves, or some other action causes the compositor to repaint.

This is because the shell knows nothing about xwayland override redirect windows, so it won't assign them an output. Without an output, the surface commit won't cause a repaint.

Fix this with brute force by updating their geometry on commit. If the geometry is dirty (and it will be for new surfaces), this will cause an output to be assigned before the upcoming weston_surface_schedule_repaint()

Signed-off-by: Derek Foreman derek.foreman@collabora.com Found-by: Hideyuki Nagase hideyukn@microsoft.com

Merge request reports