xwayland: make the output serials belong to the screen
Xwayland uses an output serial number it increments each time a new Wayland output is added. On server regeneration, that static value is not cleared, and therfore the output numbers keep increasing each time the Xserver restarts. To avoid that issue, make the output serial part of the xwl_screen, which gets recreated on server regeneration, so that index is reset to 0 automatically on server regeneration. Signed-off-by:Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
Showing
- hw/xwayland/xwayland-drm-lease.c 7 additions, 5 deletionshw/xwayland/xwayland-drm-lease.c
- hw/xwayland/xwayland-output.c 2 additions, 8 deletionshw/xwayland/xwayland-output.c
- hw/xwayland/xwayland-output.h 0 additions, 2 deletionshw/xwayland/xwayland-output.h
- hw/xwayland/xwayland-screen.c 7 additions, 0 deletionshw/xwayland/xwayland-screen.c
- hw/xwayland/xwayland-screen.h 2 additions, 0 deletionshw/xwayland/xwayland-screen.h
Loading
Please register or sign in to comment