20 #ifndef MIRAL_WAYLAND_SURFACE_H
21 #define MIRAL_WAYLAND_SURFACE_H
42 auto surface() const -> wl_surface* {
return surface_; }
50 static void handle_ping(
void* data,
struct wl_shell_surface* shell_surface, uint32_t serial);
51 static void handle_configure(
53 wl_shell_surface* shell_surface,
58 static wl_shell_surface_listener
const shell_surface_listener;
Definition: wayland_app.h:117
Definition: wayland_surface.h:30
void set_fullscreen(wl_output *output)
output can be null, user needs to commit after
Definition: wayland_surface.cpp:55
void add_frame_callback(std::function< void()> &&func)
Definition: wayland_surface.cpp:64
void commit() const
Definition: wayland_surface.cpp:50
virtual ~WaylandSurface()=default
auto surface() const -> wl_surface *
Definition: wayland_surface.h:42
auto app() const -> WaylandApp const *
Definition: wayland_surface.h:41
void attach_buffer(wl_buffer *buffer, int scale)
Definition: wayland_surface.cpp:40
auto configured_size() const -> mir::geometry::Size
Definition: wayland_surface.h:43
virtual void configured()
Called when the compositor configures this shell surface.
Definition: wayland_surface.h:47
WaylandSurface(WaylandApp const *app)
Definition: wayland_surface.cpp:31
Definition: splash_session.h:24