diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-11-27 15:05:42 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2024-03-20 09:05:36 +0100 |
commit | cd0c43df13141cf100b16fea4ea0b93f6fff2325 (patch) | |
tree | 5e189110c2a60000a7c4403a448452021ef17302 /hw/xwayland | |
parent | d7f31fe8878676e4840f37627106085fd9397735 (diff) |
xwayland: Make has_viewport_enabled private
By using a sensible scale factor for input even when there is no
viewport enabled, no need to have xwl_window_has_viewport_enabled()
public anymore.
Small cleanup, no functional change.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-By: Kenny Levinsen <kl@kl.wtf>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1197>
Diffstat (limited to 'hw/xwayland')
-rw-r--r-- | hw/xwayland/xwayland-window.c | 2 | ||||
-rw-r--r-- | hw/xwayland/xwayland-window.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/hw/xwayland/xwayland-window.c b/hw/xwayland/xwayland-window.c index 09d69df3c..d419e3070 100644 --- a/hw/xwayland/xwayland-window.c +++ b/hw/xwayland/xwayland-window.c @@ -246,7 +246,7 @@ unregister_damage(WindowPtr window) dixSetPrivate(&window->devPrivates, &xwl_damage_private_key, NULL); } -Bool +static Bool xwl_window_has_viewport_enabled(struct xwl_window *xwl_window) { return (xwl_window->viewport != NULL); diff --git a/hw/xwayland/xwayland-window.h b/hw/xwayland/xwayland-window.h index 2873ab707..08629877f 100644 --- a/hw/xwayland/xwayland-window.h +++ b/hw/xwayland/xwayland-window.h @@ -85,7 +85,6 @@ Bool is_surface_from_xwl_window(struct wl_surface *surface); void xwl_window_update_property(struct xwl_window *xwl_window, PropertyStateRec *propstate); -Bool xwl_window_has_viewport_enabled(struct xwl_window *xwl_window); Bool xwl_window_is_toplevel(WindowPtr window); void xwl_window_check_resolution_change_emulation(struct xwl_window *xwl_window); void xwl_window_rootful_update_title(struct xwl_window *xwl_window); |