mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user