From f1c9077139d1b670782b1e4e1286c17eb302465f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 21 Feb 2023 23:57:08 +0000 Subject: [PATCH] unblock pure wayland compiles --- src/helpers/XWaylandStubs.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/helpers/XWaylandStubs.hpp b/src/helpers/XWaylandStubs.hpp index fcb4a842..59b73bbf 100644 --- a/src/helpers/XWaylandStubs.hpp +++ b/src/helpers/XWaylandStubs.hpp @@ -155,10 +155,16 @@ inline wlr_xwayland_surface* wlr_xwayland_surface_from_wlr_surface(void*) { return nullptr; } -inline void wlr_xwayland_surface_close(wlr_xwayland_surface*) {} +inline void wlr_xwayland_surface_close(wlr_xwayland_surface*) {} -inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) {} +inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) {} -inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface*, bool) {} +inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface*, bool) {} -inline wlr_xwayland_surface* wlr_xwayland_surface_try_from_wlr_surface(wlr_surface*) { return nullptr; } +inline wlr_xwayland_surface* wlr_xwayland_surface_try_from_wlr_surface(wlr_surface*) { + return nullptr; +} + +inline bool wlr_xwayland_or_surface_wants_focus(const wlr_xwayland_surface*) { + return false; +} \ No newline at end of file