Blender V5.3
GHOST_WindowWayland.cc File Reference
#include "GHOST_WindowWayland.hh"
#include "GHOST_SystemWayland.hh"
#include "GHOST_Types.hh"
#include "GHOST_WaylandUtils.hh"
#include "GHOST_WindowManager.hh"
#include "GHOST_utildefines.hh"
#include "GHOST_Event.hh"
#include "GHOST_ContextNone.hh"
#include <wayland-client-protocol.h>
#include <algorithm>
#include <color-management-v1-client-protocol.h>
#include <fractional-scale-v1-client-protocol.h>
#include <viewporter-client-protocol.h>
#include <xdg-activation-v1-client-protocol.h>
#include <xdg-decoration-unstable-v1-client-protocol.h>
#include <xdg-shell-client-protocol.h>
#include <atomic>
#include <optional>
#include <cstring>
#include <sys/mman.h>
#include "CLG_log.h"

Go to the source code of this file.

Classes

struct  GWL_XDG_Decor_Window
struct  GWL_WindowScaleParams
struct  GWL_WindowFrame
struct  GWL_Window
struct  GWL_ImageDescriptionWait

Functions

static void gwl_xdg_decor_window_destroy (GWL_XDG_Decor_Window *decor)
Rounding Utilities
static void gwl_round_int_by (int *value_p, const int round_value)
static void gwl_round_int2_by (int value_p[2], const int round_value)
static bool gwl_round_int_test (const int value, const int round_value)
Window-Viewport/Wayland to/from Scale Conversion
wl_fixed_t gwl_window_scale_wl_fixed_to (const GWL_WindowScaleParams &scale_params, wl_fixed_t value)
wl_fixed_t gwl_window_scale_wl_fixed_from (const GWL_WindowScaleParams &scale_params, wl_fixed_t value)
int gwl_window_scale_int_to (const GWL_WindowScaleParams &scale_params, const int value)
int gwl_window_scale_int_from (const GWL_WindowScaleParams &scale_params, const int value)
static uint divide_ceil_uint (const uint x, const uint d)
int gwl_window_scale_buffer_size_to (const GWL_WindowScaleParams &scale_params, const int logical_size, int *r_buffer_scale)
Internal #GWL_WindowCursorCustomShape
static void gwl_window_cursor_custom_free (GHOST_CursorGenerator *cg)
static void gwl_window_cursor_custom_clear (GHOST_CursorGenerator **cg)
static GHOST_TSuccess gwl_window_cursor_custom_load (const GHOST_CursorGenerator &cg, GHOST_SystemWayland *system)
static GHOST_TSuccess gwl_window_cursor_shape_refresh (GHOST_TStandardCursor shape, const GHOST_CursorGenerator *cg, GHOST_SystemWayland *system)
Internal #GWL_Window Viewport Setup/Tear-down

A viewport is needed to implement fractional scale, as the outputs scale may change at runtime, support creating & clearing the viewport as needed.

static int gwl_window_fractional_to_viewport (const GWL_WindowFrame &frame, const int value)
static int gwl_window_fractional_from_viewport (const GWL_WindowFrame &frame, const int value)
static int gwl_window_fractional_to_viewport_round (const GWL_WindowFrame &frame, const int value)
static int gwl_window_fractional_from_viewport_round (const GWL_WindowFrame &frame, const int value)
static bool gwl_window_viewport_set (GWL_Window *win, bool *r_surface_needs_commit, bool *r_surface_needs_buffer_scale)
static bool gwl_window_viewport_unset (GWL_Window *win, bool *r_surface_needs_commit, bool *r_surface_needs_buffer_scale)
static bool gwl_window_viewport_size_update (GWL_Window *win)
Internal #GWL_Window Activation
static void gwl_window_activate (GWL_Window *win)
Internal #GWL_Window Pending Actions
static void gwl_window_frame_pending_fractional_scale_set_notest (GWL_Window *win, bool *r_surface_needs_commit, bool *r_surface_needs_buffer_scale)
static void gwl_window_frame_pending_fractional_scale_set (GWL_Window *win, bool *r_surface_needs_commit, bool *r_surface_needs_buffer_scale)
static void gwl_window_frame_pending_size_set (GWL_Window *win, bool *r_surface_needs_commit, bool *r_surface_needs_resize_for_backend, bool *r_surface_needs_buffer_scale)
static void gwl_window_frame_update_from_pending (GWL_Window *win)
static void gwl_window_pending_actions_tag (GWL_Window *win, enum eGWL_PendingWindowActions type)
static void gwl_window_pending_actions_handle (GWL_Window *win)
static void gwl_window_frame_update_from_pending_no_lock (GWL_Window *win)
Internal Utilities
static int output_scale_cmp (const GWL_Output *output_a, const GWL_Output *output_b)
static int outputs_max_scale_or_default (const std::span< GWL_Output *const > outputs, const int32_t scale_default, int *r_scale_fractional)
static int outputs_uniform_scale_or_default (const std::span< GWL_Output *const > outputs, const int32_t scale_default, int *r_scale_fractional)
Public WAYLAND Direct Data Access

Expose some members via methods.

void gwl_xdg_window_icon_free (GWL_XDG_WindowIcon &icon)

Variables

static constexpr size_t base_dpi = 96

Internal #GWL_Window

#define PENDING_NUM   (PENDING_WINDOW_CURSOR_SHAPE_REFRESH + 1)
enum  eGWL_PendingWindowActions {
  PENDING_WINDOW_FRAME_CONFIGURE = 0 , PENDING_OUTPUT_SCALE_UPDATE , PENDING_OUTPUT_SCALE_UPDATE_DEFERRED , PENDING_WINDOW_SURFACE_COMMIT ,
  PENDING_WINDOW_CURSOR_SHAPE_REFRESH
}
static void gwl_window_resize_for_backend (GWL_Window *win, const int32_t size[2])
static void gwl_window_title_set (GWL_Window *win, const char *title)
static GHOST_TWindowState gwl_window_state_get (const GWL_Window *win)
static bool gwl_window_state_set_for_xdg (xdg_toplevel *toplevel, const GHOST_TWindowState state, const GHOST_TWindowState state_current)
static bool gwl_window_state_set (GWL_Window *win, const GHOST_TWindowState state)

Listener (Surface), #wl_surface_listener

#define LOG   (&LOG_WL_XDG_TOPLEVEL)
#define LOG   (&LOG_WL_FRACTIONAL_SCALE)
#define LOG   (&LOG_WL_IMAGE_DESCRIPTION)
#define LOG   (&LOG_WL_XDG_TOPLEVEL_DECORATION)
#define LOG   (&LOG_WL_XDG_SURFACE)
#define LOG   (&LOG_WL_SURFACE)
static CLG_LogRef LOG_WL_SURFACE = {"ghost.wl.handle.surface"}
static const wl_surface_listener wl_surface_listener
static void surface_handle_enter (void *data, wl_surface *, wl_output *wl_output)
static void surface_handle_leave (void *data, wl_surface *, wl_output *wl_output)

Listener (XDG Top Level), #xdg_toplevel_listener

static CLG_LogRef LOG_WL_XDG_TOPLEVEL = {"ghost.wl.handle.xdg_toplevel"}
static const xdg_toplevel_listener xdg_toplevel_listener
static void xdg_toplevel_handle_configure (void *data, xdg_toplevel *, const int32_t width, const int32_t height, wl_array *states)
static void xdg_toplevel_handle_close (void *data, xdg_toplevel *)
static void xdg_toplevel_handle_configure_bounds (void *data, xdg_toplevel *, const int32_t width, const int32_t height)
static void xdg_toplevel_handle_wm_capabilities (void *data, xdg_toplevel *, wl_array *capabilities)

Listener (XDG Activation), #xdg_activation_v1_interface

Used by #gwl_window_activate.

static const xdg_activation_token_v1_listener xdg_activation_listener
static const xdg_activation_token_v1_listener * xdg_activation_listener_get ()
static void xdg_activation_handle_done (void *data, xdg_activation_token_v1 *xdg_activation_token_v1, const char *token)

Listener (Fractional Scale), #wp_fractional_scale_manager_v1_interface

Used by #gwl_window_activate.

static CLG_LogRef LOG_WL_FRACTIONAL_SCALE = {"ghost.wl.handle.fractional_scale"}
static const wp_fractional_scale_v1_listener wp_fractional_scale_listener
static void wp_fractional_scale_handle_preferred_scale (void *data, wp_fractional_scale_v1 *, uint preferred_scale)

Listener (Image Description), #wp_image_description_v1_listener

static CLG_LogRef LOG_WL_IMAGE_DESCRIPTION = {"ghost.wl.handle.image_description"}
static const wp_image_description_v1_listener image_description_listener
static void image_description_handle_failed (void *data, wp_image_description_v1 *, uint32_t cause, const char *msg)
static void image_description_handle_ready (void *data, wp_image_description_v1 *, uint32_t identity)

Listener (XDG Decoration Listener), #zxdg_toplevel_decoration_v1_listener

static CLG_LogRef LOG_WL_XDG_TOPLEVEL_DECORATION = {"ghost.wl.handle.xdg_toplevel_decoration"}
static const zxdg_toplevel_decoration_v1_listener xdg_toplevel_decoration_v1_listener
static void xdg_toplevel_decoration_handle_configure (void *data, zxdg_toplevel_decoration_v1 *, const uint32_t mode)

Listener (XDG Surface Handle Configure), #xdg_surface_listener

static CLG_LogRef LOG_WL_XDG_SURFACE = {"ghost.wl.handle.xdg_surface"}
static const xdg_surface_listener xdg_surface_listener
static void xdg_surface_handle_configure (void *data, xdg_surface *xdg_surface, const uint32_t serial)

Macro Definition Documentation

◆ LOG [1/6]

#define LOG   (&LOG_WL_SURFACE)

Definition at line 1357 of file GHOST_WindowWayland.cc.

◆ LOG [2/6]

#define LOG   (&LOG_WL_XDG_SURFACE)

Definition at line 1357 of file GHOST_WindowWayland.cc.

◆ LOG [3/6]

#define LOG   (&LOG_WL_XDG_TOPLEVEL_DECORATION)

Definition at line 1357 of file GHOST_WindowWayland.cc.

◆ LOG [4/6]

#define LOG   (&LOG_WL_IMAGE_DESCRIPTION)

Definition at line 1357 of file GHOST_WindowWayland.cc.

◆ LOG [5/6]

#define LOG   (&LOG_WL_FRACTIONAL_SCALE)

Definition at line 1357 of file GHOST_WindowWayland.cc.

◆ LOG [6/6]

#define LOG   (&LOG_WL_XDG_TOPLEVEL)

Definition at line 1357 of file GHOST_WindowWayland.cc.

◆ PENDING_NUM

#define PENDING_NUM   (PENDING_WINDOW_CURSOR_SHAPE_REFRESH + 1)

Definition at line 320 of file GHOST_WindowWayland.cc.

Referenced by gwl_window_pending_actions_handle().

Enumeration Type Documentation

◆ eGWL_PendingWindowActions

Enumerator
PENDING_WINDOW_FRAME_CONFIGURE 

The state of the window frame has changed, apply the state from GWL_Window::frame_pending.

PENDING_OUTPUT_SCALE_UPDATE 

The DPI for a monitor has changed or the monitors (outputs) this window is visible on may have changed. Recalculate the windows scale.

PENDING_OUTPUT_SCALE_UPDATE_DEFERRED 

Workaround for a bug/glitch in WLROOTS based compositors (RIVER for example). Deferring the scale update one even-loop cycle resolves a bug where the output enter/exit events cause the surface buffer being an invalid size.

While these kinds of glitches might be ignored in some cases, this caused newly created windows to immediately loose the connection to WAYLAND (crashing from a user perspective).

PENDING_WINDOW_SURFACE_COMMIT 

The surface needs a commit to run. Use this to avoid committing immediately which can cause flickering when other operations have not yet been performed - such as refreshing the window size.

PENDING_WINDOW_CURSOR_SHAPE_REFRESH 

The window has gained focus and the cursor shape needs to be refreshed.

Definition at line 285 of file GHOST_WindowWayland.cc.

Function Documentation

◆ divide_ceil_uint()

uint divide_ceil_uint ( const uint x,
const uint d )
static

Definition at line 213 of file GHOST_WindowWayland.cc.

References divide_ceil_uint(), and x.

Referenced by divide_ceil_uint(), and gwl_window_scale_buffer_size_to().

◆ gwl_round_int2_by()

void gwl_round_int2_by ( int value_p[2],
const int round_value )
static

◆ gwl_round_int_by()

void gwl_round_int_by ( int * value_p,
const int round_value )
static

◆ gwl_round_int_test()

bool gwl_round_int_test ( const int value,
const int round_value )
static

Return true if the value is already rounded by round_value.

Definition at line 166 of file GHOST_WindowWayland.cc.

References gwl_round_int_test().

Referenced by GHOST_WindowWayland::GHOST_WindowWayland(), and gwl_round_int_test().

◆ gwl_window_activate()

void gwl_window_activate ( GWL_Window * win)
static

Unlike GHOST_WindowWayland::activate which responds to WAYLAND having set the window active. This function makes a request to WAYLAND for the window to become active.

Note
The request may be ignored and may not work on all compositors.

Definition at line 700 of file GHOST_WindowWayland.cc.

References GHOST_System::getWindowManager(), GWL_Window::ghost_system, gwl_window_activate(), GHOST_SystemWayland::wl_seat_active_get_with_input_serial(), wl_surface, GHOST_WindowWayland::wl_surface_get(), GWL_Window::xdg, xdg_activation_listener_get(), GHOST_SystemWayland::xdg_activation_manager_get(), and GHOST_SystemWayland::xdg_app_id_get().

Referenced by gwl_window_activate(), and GHOST_WindowWayland::setOrder().

◆ gwl_window_cursor_custom_clear()

void gwl_window_cursor_custom_clear ( GHOST_CursorGenerator ** cg)
static

◆ gwl_window_cursor_custom_free()

◆ gwl_window_cursor_custom_load()

GHOST_TSuccess gwl_window_cursor_custom_load ( const GHOST_CursorGenerator & cg,
GHOST_SystemWayland * system )
staticnodiscard

◆ gwl_window_cursor_shape_refresh()

◆ gwl_window_fractional_from_viewport()

int gwl_window_fractional_from_viewport ( const GWL_WindowFrame & frame,
const int value )
static

Scale a value from a Wayland windowing value to the viewport. Scales up or not at all.

Definition at line 564 of file GHOST_WindowWayland.cc.

References FRACTIONAL_DENOMINATOR, GWL_WindowFrame::fractional_scale, GHOST_ASSERT, and gwl_window_fractional_from_viewport().

Referenced by gwl_window_fractional_from_viewport(), and GHOST_WindowWayland::wl_fixed_from_window().

◆ gwl_window_fractional_from_viewport_round()

int gwl_window_fractional_from_viewport_round ( const GWL_WindowFrame & frame,
const int value )
static

◆ gwl_window_fractional_to_viewport()

int gwl_window_fractional_to_viewport ( const GWL_WindowFrame & frame,
const int value )
static

Scale a value from a viewport value to Wayland windowing. Scale down or not at all.

Definition at line 554 of file GHOST_WindowWayland.cc.

References FRACTIONAL_DENOMINATOR, GWL_WindowFrame::fractional_scale, GHOST_ASSERT, and gwl_window_fractional_to_viewport().

Referenced by GHOST_WindowWayland::getDPIHint(), gwl_window_fractional_to_viewport(), and GHOST_WindowWayland::wl_fixed_to_window().

◆ gwl_window_fractional_to_viewport_round()

int gwl_window_fractional_to_viewport_round ( const GWL_WindowFrame & frame,
const int value )
static

◆ gwl_window_frame_pending_fractional_scale_set()

◆ gwl_window_frame_pending_fractional_scale_set_notest()

◆ gwl_window_frame_pending_size_set()

◆ gwl_window_frame_update_from_pending()

◆ gwl_window_frame_update_from_pending_no_lock()

void gwl_window_frame_update_from_pending_no_lock ( GWL_Window * win)
static

Update the window's GWL_WindowFrame. The caller must handle locking & run from the main thread.

Definition at line 1095 of file GHOST_WindowWayland.cc.

References GHOST_WindowWayland::activate(), GWL_WindowFrame::buffer_scale, GHOST_WindowWayland::deactivate(), GWL_WindowFrame::fractional_scale, GWL_Window::frame, GWL_Window::frame_pending, GHOST_WindowManager::getActiveWindow(), GHOST_SystemWayland::getMilliSeconds(), GHOST_System::getWindowManager(), GHOST_ASSERT, GHOST_kCSDTypeBody, GHOST_kEventWindowDPIHintChanged, GHOST_kWindowStateFullScreen, GWL_Window::ghost_system, GWL_Window::ghost_window, gwl_window_frame_pending_fractional_scale_set(), gwl_window_frame_pending_size_set(), gwl_window_frame_update_from_pending_no_lock(), gwl_window_pending_actions_tag(), gwl_window_resize_for_backend(), gwl_window_state_get(), GWL_XDG_Decor_Window::initial_configure_seen, GWL_WindowFrame::is_active, GWL_WindowFrame::is_fullscreen, GWL_WindowFrame::is_maximized, GHOST_SystemWayland::main_thread_id, GHOST_WindowWayland::notify_decor_redraw(), GWL_XDG_Decor_Window::pending, PENDING_WINDOW_SURFACE_COMMIT, GHOST_System::pushEvent(), GWL_WindowFrame::size, state, GWL_XDG_Decor_Window::surface, GWL_WindowFrame::tiled_edges, GWL_XDG_Decor_Window::toplevel, GWL_Window::wl, GWL_Window::xdg_decor, and GHOST_SystemWayland::xdg_toplevel_icon_update().

Referenced by gwl_window_frame_update_from_pending(), gwl_window_frame_update_from_pending_no_lock(), GHOST_WindowWayland::outputs_changed_update_scale(), and xdg_surface_handle_configure().

◆ gwl_window_pending_actions_handle()

◆ gwl_window_pending_actions_tag()

◆ gwl_window_resize_for_backend()

◆ gwl_window_scale_buffer_size_to()

int gwl_window_scale_buffer_size_to ( const GWL_WindowScaleParams & scale_params,
int logical_size,
int * r_buffer_scale )

Scale a logical buffer size to physical pixels, returning an integer buffer scale. The buffer scale is rounded up so result / *r_buffer_scale == logical_size.

Definition at line 218 of file GHOST_WindowWayland.cc.

References divide_ceil_uint(), gwl_window_scale_buffer_size_to(), and gwl_window_scale_int_to().

Referenced by ghost_wl_surface_own_cursor_tablet(), gwl_window_scale_buffer_size_to(), and GHOST_SystemWayland::xdg_toplevel_icon_update().

◆ gwl_window_scale_int_from()

int gwl_window_scale_int_from ( const GWL_WindowScaleParams & scale_params,
const int value )

◆ gwl_window_scale_int_to()

int gwl_window_scale_int_to ( const GWL_WindowScaleParams & scale_params,
const int value )

◆ gwl_window_scale_wl_fixed_from()

◆ gwl_window_scale_wl_fixed_to()

◆ gwl_window_state_get()

◆ gwl_window_state_set()

◆ gwl_window_state_set_for_xdg()

bool gwl_window_state_set_for_xdg ( xdg_toplevel * toplevel,
const GHOST_TWindowState state,
const GHOST_TWindowState state_current )
static

◆ gwl_window_title_set()

◆ gwl_window_viewport_set()

bool gwl_window_viewport_set ( GWL_Window * win,
bool * r_surface_needs_commit,
bool * r_surface_needs_buffer_scale )
static

◆ gwl_window_viewport_size_update()

◆ gwl_window_viewport_unset()

bool gwl_window_viewport_unset ( GWL_Window * win,
bool * r_surface_needs_commit,
bool * r_surface_needs_buffer_scale )
static

◆ gwl_xdg_decor_window_destroy()

◆ gwl_xdg_window_icon_free()

◆ image_description_handle_failed()

void image_description_handle_failed ( void * data,
wp_image_description_v1 * ,
uint32_t cause,
const char * msg )
static

◆ image_description_handle_ready()

void image_description_handle_ready ( void * data,
wp_image_description_v1 * ,
uint32_t identity )
static

◆ output_scale_cmp()

int output_scale_cmp ( const GWL_Output * output_a,
const GWL_Output * output_b )
static

Return -1 if output_a has a scale smaller than output_b, 0 when there equal, otherwise 1.

Definition at line 1270 of file GHOST_WindowWayland.cc.

References FRACTIONAL_DENOMINATOR, GWL_Output::has_scale_fractional, output_scale_cmp(), GWL_Output::scale, and GWL_Output::scale_fractional.

Referenced by output_scale_cmp(), outputs_max_scale_or_default(), and outputs_uniform_scale_or_default().

◆ outputs_max_scale_or_default()

int outputs_max_scale_or_default ( const std::span< GWL_Output *const > outputs,
const int32_t scale_default,
int * r_scale_fractional )
static

◆ outputs_uniform_scale_or_default()

int outputs_uniform_scale_or_default ( const std::span< GWL_Output *const > outputs,
const int32_t scale_default,
int * r_scale_fractional )
static

◆ surface_handle_enter()

◆ surface_handle_leave()

◆ wp_fractional_scale_handle_preferred_scale()

void wp_fractional_scale_handle_preferred_scale ( void * data,
wp_fractional_scale_v1 * ,
uint preferred_scale )
static

◆ xdg_activation_handle_done()

void xdg_activation_handle_done ( void * data,
xdg_activation_token_v1 * xdg_activation_token_v1,
const char * token )
static

◆ xdg_activation_listener_get()

const xdg_activation_token_v1_listener * xdg_activation_listener_get ( )
static

◆ xdg_surface_handle_configure()

◆ xdg_toplevel_decoration_handle_configure()

void xdg_toplevel_decoration_handle_configure ( void * data,
zxdg_toplevel_decoration_v1 * ,
const uint32_t mode )
static

◆ xdg_toplevel_handle_close()

void xdg_toplevel_handle_close ( void * data,
xdg_toplevel *  )
static

◆ xdg_toplevel_handle_configure()

◆ xdg_toplevel_handle_configure_bounds()

void xdg_toplevel_handle_configure_bounds ( void * data,
xdg_toplevel * ,
const int32_t width,
const int32_t height )
static

◆ xdg_toplevel_handle_wm_capabilities()

void xdg_toplevel_handle_wm_capabilities ( void * data,
xdg_toplevel * ,
wl_array * capabilities )
static

Variable Documentation

◆ base_dpi

size_t base_dpi = 96
staticconstexpr

Definition at line 75 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::getDPIHint().

◆ image_description_listener

const wp_image_description_v1_listener image_description_listener
static
Initial value:
= {
}
static void image_description_handle_ready(void *data, wp_image_description_v1 *, uint32_t identity)
static void image_description_handle_failed(void *data, wp_image_description_v1 *, uint32_t cause, const char *msg)

Definition at line 1612 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland().

◆ LOG_WL_FRACTIONAL_SCALE

CLG_LogRef LOG_WL_FRACTIONAL_SCALE = {"ghost.wl.handle.fractional_scale"}
static

Definition at line 1539 of file GHOST_WindowWayland.cc.

◆ LOG_WL_IMAGE_DESCRIPTION

CLG_LogRef LOG_WL_IMAGE_DESCRIPTION = {"ghost.wl.handle.image_description"}
static

Definition at line 1572 of file GHOST_WindowWayland.cc.

◆ LOG_WL_SURFACE

CLG_LogRef LOG_WL_SURFACE = {"ghost.wl.handle.surface"}
static

Definition at line 1701 of file GHOST_WindowWayland.cc.

◆ LOG_WL_XDG_SURFACE

CLG_LogRef LOG_WL_XDG_SURFACE = {"ghost.wl.handle.xdg_surface"}
static

Definition at line 1653 of file GHOST_WindowWayland.cc.

◆ LOG_WL_XDG_TOPLEVEL

CLG_LogRef LOG_WL_XDG_TOPLEVEL = {"ghost.wl.handle.xdg_toplevel"}
static

Definition at line 1356 of file GHOST_WindowWayland.cc.

◆ LOG_WL_XDG_TOPLEVEL_DECORATION

CLG_LogRef LOG_WL_XDG_TOPLEVEL_DECORATION = {"ghost.wl.handle.xdg_toplevel_decoration"}
static

Definition at line 1628 of file GHOST_WindowWayland.cc.

◆ wl_surface_listener

const wl_surface_listener wl_surface_listener
static
Initial value:
= {
}
static void surface_handle_leave(void *data, wl_surface *, wl_output *wl_output)
static void surface_handle_enter(void *data, wl_surface *, wl_output *wl_output)

Definition at line 1754 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland().

◆ wp_fractional_scale_listener

const wp_fractional_scale_v1_listener wp_fractional_scale_listener
static
Initial value:
= {
}
static void wp_fractional_scale_handle_preferred_scale(void *data, wp_fractional_scale_v1 *, uint preferred_scale)

Definition at line 1560 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland().

◆ xdg_activation_listener

const xdg_activation_token_v1_listener xdg_activation_listener
static
Initial value:
= {
}
static void xdg_activation_handle_done(void *data, xdg_activation_token_v1 *xdg_activation_token_v1, const char *token)

Definition at line 1522 of file GHOST_WindowWayland.cc.

Referenced by xdg_activation_listener_get().

◆ xdg_surface_listener

const xdg_surface_listener xdg_surface_listener
static
Initial value:
= {
}
static void xdg_surface_handle_configure(void *data, xdg_surface *xdg_surface, const uint32_t serial)

Definition at line 1689 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland().

◆ xdg_toplevel_decoration_v1_listener

const zxdg_toplevel_decoration_v1_listener xdg_toplevel_decoration_v1_listener
static
Initial value:
= {
}
static void xdg_toplevel_decoration_handle_configure(void *data, zxdg_toplevel_decoration_v1 *, const uint32_t mode)

Definition at line 1641 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland().

◆ xdg_toplevel_listener

const xdg_toplevel_listener xdg_toplevel_listener
static
Initial value:
= {
}
static void xdg_toplevel_handle_configure(void *data, xdg_toplevel *, const int32_t width, const int32_t height, wl_array *states)
static void xdg_toplevel_handle_wm_capabilities(void *data, xdg_toplevel *, wl_array *capabilities)
static void xdg_toplevel_handle_configure_bounds(void *data, xdg_toplevel *, const int32_t width, const int32_t height)
static void xdg_toplevel_handle_close(void *data, xdg_toplevel *)

Definition at line 1489 of file GHOST_WindowWayland.cc.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland().