Commits on Source (13)
-
Fix compiler warnings: ../hw/xfree86/os-support/bsd/bsd_VTsw.c: In function ‘xf86VTSwitchPending’: ../hw/xfree86/os-support/bsd/bsd_VTsw.c:56:1: warning: old-style function definition [-Wold-style-definition] 56 | xf86VTSwitchPending() | ^~~~~~~~~~~~~~~~~~~ ./hw/xfree86/os-support/bsd/bsd_VTsw.c: In function ‘xf86VTSwitchAway’: ./hw/xfree86/os-support/bsd/bsd_VTsw.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | xf86VTSwitchAway() | ^~~~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_VTsw.c: In function ‘xf86VTSwitchTo’: ../hw/xfree86/os-support/bsd/bsd_VTsw.c:82:1: warning: old-style function definition [-Wold-style-definition] 82 | xf86VTSwitchTo() | ^~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86OpenConsole’: ../hw/xfree86/os-support/bsd/bsd_init.c:153:1: warning: old-style function definition [-Wold-style-definition] 153 | xf86OpenConsole() | ^~~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86OpenPccons’: ../hw/xfree86/os-support/bsd/bsd_init.c:320:1: warning: old-style function definition [-Wold-style-definition] 320 | xf86OpenPccons() | ^~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86OpenPcvt’: ../hw/xfree86/os-support/bsd/bsd_init.c:451:1: warning: old-style function definition [-Wold-style-definition] 451 | xf86OpenPcvt() | ^~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86OpenWScons’: ../hw/xfree86/os-support/bsd/bsd_init.c:563:1: warning: old-style function definition [-Wold-style-definition] 563 | xf86OpenWScons() | ^~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86CloseConsole’: ../hw/xfree86/os-support/bsd/bsd_init.c:594:1: warning: old-style function definition [-Wold-style-definition] 594 | xf86CloseConsole() | ^~~~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86UseMsg’: ../hw/xfree86/os-support/bsd/bsd_init.c:671:1: warning: old-style function definition [-Wold-style-definition] 671 | xf86UseMsg() | ^~~~~~~~~~ Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <xorg/xserver!1445>
-
Slightly simpler, and might work better in some cases when X windows get reparented. Part-of: <xorg/xserver!1300>
-
It's always the toplevel window, i.e. either the root window or a child of it. Preparation for later commits, no functional change. v2: (Olivier Fourdan) * Fix debug build. * Add comment describing ::toplevel. Part-of: <xorg/xserver!1300>
-
Preparation for later commits, no functional change intended. v2: * Leave register_damage call unchanged in this commit. (Olivier Fourdan) Part-of: <xorg/xserver!1300>
-
Preparation for next commit. This might change behaviour for non-InputOutput top-level windows. ensure_surface_for_window getting called and returning non-NULL for those would seem like a pre-existing bug though. Part-of: <xorg/xserver!1300>
-
Preparation for later commits, no functional change intended. Part-of: <xorg/xserver!1300>
-
Preparation for later changes, no functional change intended. Part-of: <xorg/xserver!1300>
-
It may track a non-toplevel window which fully covers the area of the window pixmap / Wayland surface. It is now used instead of xwl_window::toplevel for updating the Wayland surface contents. The surface_window can now hit the Present page flip path while it's automatically redirected. v2: * Use "surface_window" instead of "surf_win". (Olivier Fourdan) * Add comment describing surface_window, and describe what surface_window/toplevel are useful for respectively. (Olivier Fourdan) * Use surface_window in xwl_realize_window. v3: * Backtrack up to the closest opaque ancestor in xwl_window_update_surface_window. (Olivier Fourdan) v4: * Clean up logic for determining the surface window in xwl_window_update_surface_window, and document it better. * Handle window_get_damage(xwl_window->surface_window) returning NULL in xwl_window_update_surface_window. * Call xwl_window_update_surface_window after xwl_window_buffers_init in ensure_surface_for_window, since the former may call xwl_window_buffers_dispose. * Rename surf/win_pix to surface/window_pixmap in xwl_window_update_surface_window. Part-of: <xorg/xserver!1300>
-
Preparation for later commits, no functional change intended. Part-of: <xorg/xserver!1300>
-
A later commit will use these to (un)redirect the surface window on demand. Not used yet, so no functional change intended. v2: * Use "surface_window_damage" instead of "surf_win_damage". (Olivier Fourdan) * Slightly simplify logic in xwl_unrealize_window. v3: * Add comment in xwl_present_maybe_unredirect_window explaining why we use a timer. (Olivier Fourdan) v4: * Rename unredir_timer field to unredirect_timer. Part-of: <xorg/xserver!1300>
-
A later commit will use it to ensure the toplevel window pixmap has valid contents. It's hooked up only while any xwl_window->surface_window_damage points to a non-empty region. So far it's always NULL, so no functional change intended. v2: * Fix trailing whitespace. (Olivier Fourdan) v3: * Use toplevel local variable more in xwl_window_update_surface_window. Part-of: <xorg/xserver!1300>
-
Preparation for next commit, no functional change intended. Part-of: <!1300>
-
It's needed when the surface window is a depth 24 descendant of a depth 32 toplevel window. xwl_source_validate ensures the toplevel window pixmap has valid contents when a client reads from it, or when the window hierarchy / geometry changes. It's never called in the normal fullscreen application case, so there's no GPU copy overhead with that. v2: * Don't try to redirect a depth 32 descendant of different-depth ancestors, the alpha channel wouldn't be handled correctly. (Olivier Fourdan) Part-of: <xorg/xserver!1300>
Showing
- hw/xfree86/os-support/bsd/bsd_VTsw.c 3 additions, 3 deletionshw/xfree86/os-support/bsd/bsd_VTsw.c
- hw/xfree86/os-support/bsd/bsd_init.c 7 additions, 7 deletionshw/xfree86/os-support/bsd/bsd_init.c
- hw/xwayland/xwayland-dmabuf.c 2 additions, 2 deletionshw/xwayland/xwayland-dmabuf.c
- hw/xwayland/xwayland-glamor-gbm.c 2 additions, 3 deletionshw/xwayland/xwayland-glamor-gbm.c
- hw/xwayland/xwayland-glamor.c 7 additions, 2 deletionshw/xwayland/xwayland-glamor.c
- hw/xwayland/xwayland-glamor.h 1 addition, 1 deletionhw/xwayland/xwayland-glamor.h
- hw/xwayland/xwayland-input.c 18 additions, 17 deletionshw/xwayland/xwayland-input.c
- hw/xwayland/xwayland-input.h 2 additions, 2 deletionshw/xwayland/xwayland-input.h
- hw/xwayland/xwayland-present.c 76 additions, 13 deletionshw/xwayland/xwayland-present.c
- hw/xwayland/xwayland-present.h 6 additions, 0 deletionshw/xwayland/xwayland-present.h
- hw/xwayland/xwayland-screen.c 11 additions, 8 deletionshw/xwayland/xwayland-screen.c
- hw/xwayland/xwayland-screen.h 5 additions, 1 deletionhw/xwayland/xwayland-screen.h
- hw/xwayland/xwayland-window-buffers.c 9 additions, 8 deletionshw/xwayland/xwayland-window-buffers.c
- hw/xwayland/xwayland-window.c 299 additions, 82 deletionshw/xwayland/xwayland-window.c
- hw/xwayland/xwayland-window.h 28 additions, 5 deletionshw/xwayland/xwayland-window.h
This diff is collapsed.