|
Blender V5.3
|
#include "GHOST_SystemWayland.hh"#include "GHOST_Context.hh"#include "GHOST_Event.hh"#include "GHOST_EventButton.hh"#include "GHOST_EventCursor.hh"#include "GHOST_EventDragnDrop.hh"#include "GHOST_EventKey.hh"#include "GHOST_EventTrackpad.hh"#include "GHOST_EventWheel.hh"#include "GHOST_PathUtils.hh"#include "GHOST_TimerManager.hh"#include "GHOST_WaylandUtils.hh"#include "GHOST_WindowManager.hh"#include "GHOST_utildefines.hh"#include <algorithm>#include <atomic>#include <optional>#include <string_view>#include <thread>#include <unordered_set>#include <variant>#include <wayland-cursor.h>#include <xkbcommon/xkbcommon-compose.h>#include <xkbcommon/xkbcommon.h>#include <color-management-v1-client-protocol.h>#include <cursor-shape-v1-client-protocol.h>#include <fractional-scale-v1-client-protocol.h>#include <pointer-constraints-unstable-v1-client-protocol.h>#include <pointer-gestures-unstable-v1-client-protocol.h>#include <primary-selection-unstable-v1-client-protocol.h>#include <relative-pointer-unstable-v1-client-protocol.h>#include <tablet-v2-client-protocol.h>#include <viewporter-client-protocol.h>#include <xdg-activation-v1-client-protocol.h>#include <xdg-output-unstable-v1-client-protocol.h>#include <xdg-toplevel-icon-v1-client-protocol.h>#include <xdg-decoration-unstable-v1-client-protocol.h>#include <xdg-shell-client-protocol.h>#include <fcntl.h>#include <sys/mman.h>#include <unistd.h>#include <cstdlib>#include <cstring>#include <mutex>#include <pthread.h>#include <poll.h>#include "CLG_log.h"#include "GHOST_TimerTask.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"Go to the source code of this file.
Classes | |
| struct | GWL_ModifierInfo |
| struct | GWL_SimpleBuffer |
| struct | GWL_CursorShape |
| struct | GWL_Cursor |
| struct | GWL_TabletTool |
| struct | GWL_DataOffer |
| struct | GWL_DataSource |
| struct | GWL_KeyRepeatPlayload |
| struct | GWL_SeatStateGrab |
| struct | GWL_SeatStatePointer |
| struct | GWL_SeatStatePointer_Events |
| struct | GWL_SeatStatePointerScroll_SmoothAsDiscrete |
| struct | GWL_SeatStatePointerScroll |
| struct | GWL_ScaledFixedT |
| struct | GWL_SeatStatePointerGesture_Pinch |
| struct | GWL_SeatStateKeyboard |
| struct | GWL_KeyboardDepressedState |
| struct | GWL_XDG_Decor_System |
| struct | GWL_PrimarySelection_DataOffer |
| struct | GWL_PrimarySelection_DataSource |
| struct | GWL_PrimarySelection |
| struct | GWL_Seat |
| struct | GWL_DisplayTimeStamp |
| struct | GWL_Display |
| struct | GWL_RegistryAdd_Params |
| struct | GWL_RegistryUpdate_Params |
| struct | GWL_RegistryHandler |
| struct | GWL_RegistryEntry |
| struct | ColorManagerV1Data |
Macros | |
| #define | GWL_SeatStatePointer_EventTypes_NUM (int(GWL_Pointer_EventTypes::Button6_Up) + 1) |
| #define | GXMAP(k, x, y) |
| #define | SURFACE_CLEAR_PTR(surface_test) |
Typedefs | |
Internal #GWL_RegistryHandler | |
| using | GWL_RegistryHandler_AddFn |
| using | GWL_RegistryHandler_UpdateFn |
| using | GWL_RegistryEntry_RemoveFn = void (*)(GWL_Display *display, void *user_data, bool on_exit) |
Functions | |
Internal #GWL_SimpleBuffer Type | |
| static void | gwl_simple_buffer_free_data (GWL_SimpleBuffer *buffer) |
| static void | gwl_simple_buffer_set_from_string (GWL_SimpleBuffer *buffer, const char *str) |
Internal #GWL_Display Type (#wl_display & #wl_compositor wrapper) | |
| static void | gwl_display_destroy (GWL_Display *display) |
| static int | gwl_display_seat_index (GWL_Display *display, const GWL_Seat *seat) |
| static GWL_Seat * | gwl_display_seat_active_get (const GWL_Display *display) |
| static bool | gwl_display_seat_active_set (GWL_Display *display, const GWL_Seat *seat) |
Internal #GWL_RegistryEntry | |
| static void | gwl_registry_entry_add (GWL_Display *display, const GWL_RegistryAdd_Params ¶ms, void *user_data) |
| static bool | gwl_registry_entry_remove_by_interface_slot (GWL_Display *display, const int interface_slot, const bool on_exit) |
| static void | gwl_registry_entry_update_all (GWL_Display *display, const int interface_slot_exclude) |
Private "Current Desktop" Detection | |
| static GWL_CurrentDesktopType | ghost_wayland_current_desktop () |
Event Thread | |
| static void * | gwl_display_event_thread_fn (void *display_voidp) |
| static bool | gwl_display_event_thread_create (GWL_Display *display) |
Public WAYLAND Query Access | |
| GWL_Output * | ghost_wl_output_user_data (wl_output *wl_output) |
| GHOST_WindowWayland * | ghost_wl_surface_user_data (wl_surface *wl_surface) |
Variables | |
| static signed char | has_wl_trackpad_physical_direction = -1 |
| static CLG_LogRef | LOG = {"ghost.dbus"} |
Internal #GWL_Cursor Type | |
| constexpr int | EVDEV_OFFSET = 8 |
Public WAYLAND Direct Data Access | |
Expose some members via methods. | |
| static const char * | ghost_wl_app_id |
Workaround Compositor Specific Bugs | |
| #define | USE_GNOME_CONFINE_HACK |
| #define | USE_KDE_TABLET_HIDDEN_CURSOR_HACK |
| #define | USE_GNOME_MOTION_MISSING_TIME_HACK |
| static bool | use_gnome_confine_hack = false |
| static bool | use_kde_tablet_hidden_cursor_hack = false |
| static bool | use_gnome_motion_missing_time_hack = false |
Local Defines | |
Control local functionality, compositors specific workarounds. | |
| #define | _VERBOSE_OLD_IFACE_PRINT(params_version, version_max) |
| #define | GWL_IFACE_VERSION_CLAMP(params_version, version_min, version_max) |
| #define | USE_NON_LATIN_KB_WORKAROUND |
| #define | WL_FIXED_TO_INT_FOR_WINDOW_V2(win, xy) |
| constexpr uint32_t | WL_NAME_UNSET = uint32_t(-1) |
| constexpr uint32_t | WL_SERIAL_NONE = uint32_t(0) |
Inline Event Codes | |
Selected input event code defines from linux/input-event-codes.h We include some of the button input event codes here, since the header is only available in more recent kernel versions. | |
| #define | BTN_RANGE_MIN BTN_LEFT |
| #define | BTN_RANGE_MAX BTN_BACK |
| #define | XKB_VMOD_NAME_HYPER "Hyper" |
| enum | { BTN_LEFT = 0x110 , BTN_RIGHT = 0x111 , BTN_MIDDLE = 0x112 , BTN_SIDE = 0x113 , BTN_EXTRA = 0x114 , BTN_FORWARD = 0x115 , BTN_BACK = 0x116 } |
| enum | { BTN_STYLUS = 0x14b , BTN_STYLUS2 = 0x14c , BTN_STYLUS3 = 0x149 } |
| enum | { KEY_GRAVE = 41 , KEY_102ND = 86 , KEY_1 = 2 , KEY_2 = 3 , KEY_3 = 4 , KEY_4 = 5 , KEY_5 = 6 , KEY_6 = 7 , KEY_7 = 8 , KEY_8 = 9 , KEY_9 = 10 , KEY_0 = 11 } |
Modifier Table | |
Convenient access to modifier key values, allow looping over modifier keys. | |
| enum | { MOD_INDEX_SHIFT = 0 , MOD_INDEX_ALT = 1 , MOD_INDEX_CTRL = 2 , MOD_INDEX_OS = 3 , MOD_INDEX_HYPER = 4 } |
| constexpr int | MOD_INDEX_NUM = MOD_INDEX_HYPER + 1 |
| static const GWL_ModifierInfo | g_modifier_info_table [MOD_INDEX_NUM] |
Internal #GWL_TabletTool Type | |
| enum class | GWL_TabletTool_EventTypes { Motion = 0 , Pressure , Tilt , Wheel , Stylus0_Down , Stylus0_Up , Stylus1_Down , Stylus1_Up , Stylus2_Down , Stylus2_Up , Stylus3_Down , Stylus3_Up } |
| constexpr int | GWL_TabletTool_FrameTypes_NUM = int(GWL_TabletTool_EventTypes::Stylus3_Up) + 1 |
| static const GHOST_TButton | gwl_tablet_tool_ebutton [] |
| static void | gwl_tablet_tool_frame_event_add (GWL_TabletTool *tablet_tool, const GWL_TabletTool_EventTypes ty, const uint32_t serial) |
| static void | gwl_tablet_tool_frame_event_reset (GWL_TabletTool *tablet_tool) |
Private Utility Functions | |
| enum | { GWL_IOR_READ = 1 << 0 , GWL_IOR_WRITE = 1 << 1 , GWL_IOR_NO_RETRY = 1 << 2 } |
| static const int | default_cursor_size = 24 |
| static constexpr const char * | ghost_wl_mime_text_plain = "text/plain" |
| static constexpr const char * | ghost_wl_mime_text_utf8 = "text/plain;charset=utf-8" |
| static constexpr const char * | ghost_wl_mime_text_uri_list = "text/uri-list" |
| static const char * | ghost_wl_mime_preference_order [] |
| static const GHOST_TDragnDropTypes | ghost_wl_mime_preference_order_type [] |
| static const char * | ghost_wl_mime_send [] |
| static uint32_t | round_up_uint (const uint32_t x, const uint32_t multiple) |
| static uint32_t | rgba_straight_to_premul (uint32_t rgba_uint) |
| static uint32_t | rgba_straight_to_premul_inverted (uint32_t rgba_uint) |
| static uint64_t | sub_abs_u64 (const uint64_t a, const uint64_t b) |
| static uint64_t | ghost_wl_ms_from_utime_pair (uint32_t utime_hi, uint32_t utime_lo) |
| static const char * | ghost_wl_locale_from_env_with_default () |
| static void | ghost_wl_display_report_error_from_code (wl_display *display, const int ecode) |
| static void | ghost_wl_display_report_error (wl_display *display) |
| bool | ghost_wl_display_report_error_if_set (wl_display *display) |
| static void | ghost_wayland_log_handler (const char *msg, va_list arg) |
| static void | ghost_wayland_log_handler_background (const char *msg, va_list arg) |
| static GHOST_TKey | xkb_map_gkey (const xkb_keysym_t sym) |
| static GHOST_TKey | xkb_map_gkey_or_scan_code (const xkb_keysym_t sym, const uint32_t key) |
| static xkb_keysym_t | xkb_keymap_get_one_sym_with_fallback (const xkb_keysym_t sym, xkb_keymap *keymap, const xkb_keycode_t key, const xkb_layout_index_t layout_fallback) |
| static xkb_keysym_t | xkb_state_key_get_one_sym_with_fallback (xkb_state *state, const xkb_keycode_t key, const xkb_layout_index_t layout_fallback) |
| static int | pointer_axis_as_index (const uint32_t axis) |
| static GHOST_TTabletMode | tablet_tool_map_type (enum zwp_tablet_tool_v2_type wp_tablet_tool_type) |
| static std::optional< int > | cursor_size_from_env () |
| static std::vector< std::string_view > | gwl_clipboard_uri_ranges (const char *data_buf, size_t data_buf_len) |
| static void | pthread_set_min_priority (pthread_t handle) |
| static int | memfd_create_sealed (const char *name) |
| static int | file_descriptor_is_io_ready_ex (const int fd, const int fd_stop, const int flags, const int timeout_ms, bool *r_stop) |
| static int | file_descriptor_is_io_ready (const int fd, const int flags, const int timeout_ms) |
| static int | ghost_wl_display_event_pump (wl_display *wl_display) |
| static int | ghost_wl_display_event_pump_from_thread (wl_display *wl_display, const int fd, const int fd_stop, std::mutex *server_mutex) |
| static size_t | ghost_wl_shm_format_as_size (enum wl_shm_format format) |
| static wl_buffer * | ghost_wl_buffer_create_for_image (wl_shm *shm, const int32_t size_xy[2], enum wl_shm_format format, void **r_buffer_data, size_t *r_buffer_data_size) |
| wl_buffer * | ghost_wl_buffer_create_transparent_pixel (wl_shm *shm) |
| static ssize_t | read_exhaustive (const int fd, void *data, size_t nbytes) |
| static char * | read_file_as_buffer (const int fd, const bool nil_terminate, size_t *r_len) |
| static bool | string_elem_split_by_delim (std::string_view haystack, const char delim, std::string_view needle) |
Private Cursor API | |
| enum | eCursorSetMode { CURSOR_VISIBLE_ALWAYS_SET = 1 , CURSOR_VISIBLE_ONLY_HIDE , CURSOR_VISIBLE_ONLY_SHOW } |
| static void | cursor_buffer_set_surface_impl (const wl_cursor_image *wl_image, wl_buffer *buffer, wl_surface *wl_surface, const int scale) |
| static std::optional< wp_cursor_shape_device_v1_shape > | gwl_seat_cursor_find_wl_shape_from_ghost (const GHOST_TStandardCursor shape) |
| static int | gwl_seat_cursor_buffer_scale_calc (const GWL_Seat *seat) |
| static void | gwl_seat_cursor_buffer_show (GWL_Seat *seat) |
| static void | gwl_seat_cursor_buffer_hide (GWL_Seat *seat) |
| static void | gwl_seat_cursor_buffer_set (const GWL_Seat *seat, const wl_cursor_image *wl_image, wl_buffer *buffer) |
| static void | gwl_seat_cursor_buffer_set_current (GWL_Seat *seat) |
| static void | gwl_seat_cursor_visible_set (GWL_Seat *seat, const bool visible, const bool is_hardware, const enum eCursorSetMode set_mode) |
Private Keyboard Depressed Key Tracking | |
Don't track physical key-codes because there may be multiple keyboards connected. Instead, count the number of #GHOST_kKey are pressed. This may seem susceptible to bugs with sticky-keys however XKB works this way internally. | |
| static CLG_LogRef | LOG_WL_KEYBOARD_DEPRESSED_STATE = {"ghost.wl.keyboard.depressed"} |
| static void | keyboard_depressed_state_reset (GWL_Seat *seat) |
| static void | keyboard_depressed_state_key_event (GWL_Seat *seat, const GHOST_TKey gkey, const GHOST_TEventType etype) |
| static void | keyboard_depressed_state_push_events_from_change (GWL_Seat *seat, GHOST_IWindow *win, const uint64_t event_ms, const GWL_KeyboardDepressedState &key_depressed_prev) |
Listener (Relative Motion), #zwp_relative_pointer_v1_listener | |
These callbacks are registered for Wayland interfaces and called when an event is received from the compositor. | |
| static CLG_LogRef | LOG_WL_RELATIVE_POINTER = {"ghost.wl.handle.relative_pointer"} |
| static const zwp_relative_pointer_v1_listener | relative_pointer_listener |
| static void | relative_pointer_handle_relative_motion_impl (GWL_Seat *seat, GHOST_WindowWayland *win, const wl_fixed_t xy[2], const uint64_t event_ms) |
| static void | relative_pointer_handle_relative_motion (void *data, zwp_relative_pointer_v1 *, const uint32_t utime_hi, const uint32_t utime_lo, const wl_fixed_t dx, const wl_fixed_t dy, const wl_fixed_t, const wl_fixed_t) |
Listener (Data Source), #wl_data_source_listener | |
| static CLG_LogRef | LOG_WL_DATA_SOURCE = {"ghost.wl.handle.data_source"} |
| static const wl_data_source_listener | data_source_listener |
| static void | dnd_events (const GWL_Seat *const seat, const GHOST_TEventType event, const uint64_t event_ms) |
| static char * | read_buffer_from_data_offer (GWL_DataOffer *data_offer, const char *mime_receive, std::mutex *mutex, const bool nil_terminate, size_t *r_len) |
| static char * | read_buffer_from_primary_selection_offer (GWL_PrimarySelection_DataOffer *data_offer, const char *mime_receive, std::mutex *mutex, const bool nil_terminate, size_t *r_len) |
| static void | data_source_handle_target (void *, wl_data_source *, const char *) |
| static void | data_source_handle_send (void *data, wl_data_source *, const char *, const int32_t fd) |
| static void | data_source_handle_cancelled (void *data, wl_data_source *wl_data_source) |
| static void | data_source_handle_dnd_drop_performed (void *, wl_data_source *) |
| static void | data_source_handle_dnd_finished (void *, wl_data_source *) |
| static void | data_source_handle_action (void *, wl_data_source *, const uint32_t dnd_action) |
Listener (Data Offer), #wl_data_offer_listener | |
| static CLG_LogRef | LOG_WL_DATA_OFFER = {"ghost.wl.handle.data_offer"} |
| static const wl_data_offer_listener | data_offer_listener |
| static void | data_offer_handle_offer (void *data, wl_data_offer *, const char *mime_type) |
| static void | data_offer_handle_source_actions (void *data, wl_data_offer *, const uint32_t source_actions) |
| static void | data_offer_handle_action (void *data, wl_data_offer *, const uint32_t dnd_action) |
Listener (Data Device), #wl_data_device_listener | |
| static CLG_LogRef | LOG_WL_DATA_DEVICE = {"ghost.wl.handle.data_device"} |
| static const wl_data_device_listener | data_device_listener |
| static void | data_device_handle_data_offer (void *, wl_data_device *, wl_data_offer *id) |
| static void | data_device_handle_enter (void *data, wl_data_device *, const uint32_t serial, wl_surface *wl_surface, const wl_fixed_t x, const wl_fixed_t y, wl_data_offer *id) |
| static void | data_device_handle_leave (void *data, wl_data_device *) |
| static void | data_device_handle_motion (void *data, wl_data_device *, const uint32_t time, const wl_fixed_t x, const wl_fixed_t y) |
| static void | data_device_handle_drop (void *data, wl_data_device *) |
| static void | data_device_handle_selection (void *data, wl_data_device *, wl_data_offer *id) |
Listener (Buffer), #wl_buffer_listener | |
| static CLG_LogRef | LOG_WL_CURSOR_BUFFER = {"ghost.wl.handle.cursor_buffer"} |
| static const wl_buffer_listener | cursor_buffer_listener |
| static void | cursor_buffer_handle_release (void *data, wl_buffer *wl_buffer) |
Listener (Surface), #wl_surface_listener | |
| static CLG_LogRef | LOG_WL_CURSOR_SURFACE = {"ghost.wl.handle.cursor_surface"} |
| static const wl_surface_listener | cursor_surface_listener |
| static void | cursor_shape_refresh_for_pointer (const GWL_Seat *seat, const GWL_SeatStatePointer *seat_state_pointer) |
| static bool | update_cursor_scale (GWL_Seat *seat, GWL_Cursor &cursor, GWL_SeatStatePointer *seat_state_pointer) |
| static void | cursor_surface_handle_enter (void *data, wl_surface *wl_surface, wl_output *wl_output) |
| static void | cursor_surface_handle_leave (void *data, wl_surface *wl_surface, wl_output *wl_output) |
| static void | cursor_surface_handle_preferred_buffer_scale (void *, wl_surface *, const int32_t factor) |
Listener (Pointer), #wl_pointer_listener | |
| static CLG_LogRef | LOG_WL_POINTER = {"ghost.wl.handle.pointer"} |
| static const wl_pointer_listener | pointer_listener |
| static void | pointer_handle_enter (void *data, wl_pointer *, const uint32_t serial, wl_surface *wl_surface, const wl_fixed_t surface_x, const wl_fixed_t surface_y) |
| static void | pointer_handle_leave (void *data, wl_pointer *, const uint32_t, wl_surface *wl_surface) |
| static void | pointer_handle_motion (void *data, wl_pointer *, const uint32_t time, const wl_fixed_t surface_x, const wl_fixed_t surface_y) |
| static void | pointer_handle_button (void *data, wl_pointer *, const uint32_t serial, const uint32_t time, const uint32_t button, const uint32_t state) |
| static void | pointer_handle_axis (void *data, wl_pointer *, const uint32_t time, const uint32_t axis, const wl_fixed_t value) |
| static void | pointer_handle_frame (void *data, wl_pointer *) |
| static void | pointer_handle_axis_source (void *data, wl_pointer *, const uint32_t axis_source) |
| static void | pointer_handle_axis_stop (void *data, wl_pointer *, const uint32_t time, const uint32_t axis) |
| static void | pointer_handle_axis_discrete (void *data, wl_pointer *, const uint32_t axis, const int32_t discrete) |
| static void | pointer_handle_axis_value120 (void *data, wl_pointer *, const uint32_t axis, const int32_t value120) |
Listener (Touch Seat), #wl_touch_listener | |
NOTE(@ideasman42): It's not clear if this interface is used by popular compositors. It looks like GNOME/KDE only support zwp_pointer_gestures_v1_interface. If this isn't used anywhere, it could be removed. NOTE(@felipe-choi): While X11 used to provide a virtual "touchscreen mouse" device, wayland provides dedicated touch events instead, so they go through this set of handler callbacks. | |
| static CLG_LogRef | LOG_WL_TOUCH = {"ghost.wl.handle.touch"} |
| static const wl_touch_listener | touch_seat_listener |
| static void | touch_seat_handle_down (void *data, wl_touch *, const uint32_t serial, const uint32_t time, wl_surface *surface, const int32_t id, const wl_fixed_t x, const wl_fixed_t y) |
| static void | touch_seat_handle_up (void *data, wl_touch *, const uint32_t serial, const uint32_t time, const int32_t id) |
| static void | touch_seat_handle_motion (void *data, wl_touch *, const uint32_t time, const int32_t id, const wl_fixed_t x, const wl_fixed_t y) |
| static void | touch_seat_handle_frame (void *data, wl_touch *) |
| static void | touch_seat_handle_cancel (void *data, wl_touch *) |
| static void | touch_seat_handle_shape (void *, wl_touch *, const int32_t, const wl_fixed_t, const wl_fixed_t) |
| static void | touch_seat_handle_orientation (void *, wl_touch *, const int32_t, const wl_fixed_t) |
Listener (Tablet Tool), #zwp_tablet_tool_v2_listener | |
| static CLG_LogRef | LOG_WL_TABLET_TOOL = {"ghost.wl.handle.tablet_tool"} |
| static const zwp_tablet_tool_v2_listener | tablet_tool_listener |
| static void | tablet_tool_handle_type (void *data, zwp_tablet_tool_v2 *, const uint32_t tool_type) |
| static void | tablet_tool_handle_hardware_serial (void *, zwp_tablet_tool_v2 *, const uint32_t, const uint32_t) |
| static void | tablet_tool_handle_hardware_id_wacom (void *, zwp_tablet_tool_v2 *, const uint32_t, const uint32_t) |
| static void | tablet_tool_handle_capability (void *, zwp_tablet_tool_v2 *, const uint32_t capability) |
| static void | tablet_tool_handle_done (void *, zwp_tablet_tool_v2 *) |
| static void | tablet_tool_handle_removed (void *data, zwp_tablet_tool_v2 *zwp_tablet_tool_v2) |
| static void | tablet_tool_handle_proximity_in (void *data, zwp_tablet_tool_v2 *, const uint32_t serial, zwp_tablet_v2 *, wl_surface *wl_surface) |
| static void | tablet_tool_handle_proximity_out (void *data, zwp_tablet_tool_v2 *) |
| static void | tablet_tool_handle_down (void *data, zwp_tablet_tool_v2 *, const uint32_t serial) |
| static void | tablet_tool_handle_up (void *data, zwp_tablet_tool_v2 *) |
| static void | tablet_tool_handle_motion (void *data, zwp_tablet_tool_v2 *, const wl_fixed_t x, const wl_fixed_t y) |
| static void | tablet_tool_handle_pressure (void *data, zwp_tablet_tool_v2 *, const uint32_t pressure) |
| static void | tablet_tool_handle_distance (void *, zwp_tablet_tool_v2 *, const uint32_t distance) |
| static void | tablet_tool_handle_tilt (void *data, zwp_tablet_tool_v2 *, const wl_fixed_t tilt_x, const wl_fixed_t tilt_y) |
| static void | tablet_tool_handle_rotation (void *, zwp_tablet_tool_v2 *, const wl_fixed_t degrees) |
| static void | tablet_tool_handle_slider (void *, zwp_tablet_tool_v2 *, const int32_t position) |
| static void | tablet_tool_handle_wheel (void *data, zwp_tablet_tool_v2 *, const wl_fixed_t, const int32_t clicks) |
| static void | tablet_tool_handle_button (void *data, zwp_tablet_tool_v2 *, const uint32_t serial, const uint32_t button, const uint32_t state) |
| static void | tablet_tool_handle_frame (void *data, zwp_tablet_tool_v2 *, const uint32_t time) |
Listener (Table Seat), #zwp_tablet_seat_v2_listener | |
| static CLG_LogRef | LOG_WL_TABLET_SEAT = {"ghost.wl.handle.tablet_seat"} |
| static const zwp_tablet_seat_v2_listener | tablet_seat_listener |
| static void | tablet_seat_handle_tablet_added (void *, zwp_tablet_seat_v2 *, zwp_tablet_v2 *id) |
| static void | tablet_seat_handle_tool_added (void *data, zwp_tablet_seat_v2 *, zwp_tablet_tool_v2 *id) |
| static void | tablet_seat_handle_pad_added (void *, zwp_tablet_seat_v2 *, zwp_tablet_pad_v2 *id) |
Listener (Keyboard), #wl_keyboard_listener | |
| static CLG_LogRef | LOG_WL_KEYBOARD = {"ghost.wl.handle.keyboard"} |
| static const wl_keyboard_listener | keyboard_listener |
| static void | keyboard_handle_keymap (void *data, wl_keyboard *, const uint32_t format, const int32_t fd, const uint32_t size) |
| static void | keyboard_handle_enter (void *data, wl_keyboard *, const uint32_t serial, wl_surface *wl_surface, wl_array *keys) |
| static void | keyboard_handle_leave (void *data, wl_keyboard *, const uint32_t, wl_surface *wl_surface) |
| static xkb_keysym_t | xkb_state_key_get_one_sym_without_modifiers (xkb_state *xkb_state_empty, xkb_state *xkb_state_empty_with_numlock, xkb_state *xkb_state_empty_with_shift, const xkb_layout_index_t layout_fallback, const bool xkb_use_non_latin_workaround, const xkb_keycode_t key) |
| static void | keyboard_handle_key_repeat_reset (GWL_Seat *seat, const bool use_delay) |
| static void | keyboard_handle_key (void *data, wl_keyboard *, const uint32_t serial, const uint32_t time, const uint32_t key, const uint32_t state) |
| static void | keyboard_handle_modifiers (void *data, wl_keyboard *, const uint32_t serial, const uint32_t mods_depressed, const uint32_t mods_latched, const uint32_t mods_locked, const uint32_t group) |
| static void | keyboard_handle_repeat_info (void *data, wl_keyboard *, const int32_t rate, const int32_t delay) |
Listener (Primary Selection Offer), #zwp_primary_selection_offer_v1_listener | |
| static CLG_LogRef | LOG_WL_PRIMARY_SELECTION_OFFER = {"ghost.wl.handle.primary_selection_offer"} |
| static const zwp_primary_selection_offer_v1_listener | primary_selection_offer_listener |
| static void | primary_selection_offer_offer (void *data, zwp_primary_selection_offer_v1 *id, const char *type) |
Listener (Primary Selection Device), #zwp_primary_selection_device_v1_listener | |
| static CLG_LogRef | LOG_WL_PRIMARY_SELECTION_DEVICE = {"ghost.wl.handle.primary_selection_device"} |
| static const zwp_primary_selection_device_v1_listener | primary_selection_device_listener |
| static void | primary_selection_device_handle_data_offer (void *, zwp_primary_selection_device_v1 *, zwp_primary_selection_offer_v1 *id) |
| static void | primary_selection_device_handle_selection (void *data, zwp_primary_selection_device_v1 *, zwp_primary_selection_offer_v1 *id) |
Listener (Primary Selection Source), #zwp_primary_selection_source_v1_listener | |
| static CLG_LogRef | LOG_WL_PRIMARY_SELECTION_SOURCE = {"ghost.wl.handle.primary_selection_source"} |
| static const zwp_primary_selection_source_v1_listener | primary_selection_source_listener |
| static void | primary_selection_source_send (void *data, zwp_primary_selection_source_v1 *, const char *, const int32_t fd) |
| static void | primary_selection_source_cancelled (void *data, zwp_primary_selection_source_v1 *source) |
Listener (Seat), #wl_seat_listener | |
| static CLG_LogRef | LOG_WL_SEAT = {"ghost.wl.handle.seat"} |
| static const wl_seat_listener | seat_listener |
| static bool | gwl_seat_capability_pointer_multitouch_check (const GWL_Seat *seat, const bool fallback) |
| static void | gwl_seat_capability_pointer_multitouch_enable (GWL_Seat *seat) |
| static void | gwl_seat_capability_pointer_multitouch_disable (GWL_Seat *seat) |
| static void | gwl_seat_capability_pointer_enable (GWL_Seat *seat) |
| static void | gwl_seat_capability_keyboard_enable (GWL_Seat *seat) |
| static void | gwl_seat_capability_touch_enable (GWL_Seat *seat) |
| static void | seat_handle_capabilities (void *data, wl_seat *wl_seat, const uint32_t capabilities) |
| static void | seat_handle_name (void *data, wl_seat *, const char *name) |
Listener (XDG Output), #zxdg_output_v1_listener | |
| static CLG_LogRef | LOG_WL_XDG_OUTPUT = {"ghost.wl.handle.xdg_output"} |
| static const zxdg_output_v1_listener | xdg_output_listener |
| static void | xdg_output_handle_logical_position (void *data, zxdg_output_v1 *, const int32_t x, const int32_t y) |
| static void | xdg_output_handle_logical_size (void *data, zxdg_output_v1 *, const int32_t width, const int32_t height) |
| static void | xdg_output_handle_done (void *data, zxdg_output_v1 *) |
| static void | xdg_output_handle_name (void *, zxdg_output_v1 *, const char *name) |
| static void | xdg_output_handle_description (void *, zxdg_output_v1 *, const char *description) |
Listener (Output), #wl_output_listener | |
| static CLG_LogRef | LOG_WL_OUTPUT = {"ghost.wl.handle.output"} |
| static const wl_output_listener | output_listener |
| static const wp_color_manager_v1_listener | color_manager_v1_listener |
| static void | output_handle_geometry (void *data, wl_output *, const int32_t, const int32_t, const int32_t physical_width, const int32_t physical_height, const int32_t, const char *make, const char *model, const int32_t transform) |
| static void | output_handle_mode (void *data, wl_output *, const uint32_t flags, const int32_t width, const int32_t height, const int32_t) |
| static void | output_handle_scale (void *data, wl_output *, const int32_t factor) |
| static void | output_handle_name (void *, wl_output *, const char *name) |
| static void | output_handle_description (void *, wl_output *, const char *description) |
| static void | color_manager_v1_supported_intent (void *data, wp_color_manager_v1 *, uint32_t render_intent) |
| static void | color_manager_v1_supported_feature (void *data, wp_color_manager_v1 *, uint32_t feature) |
| static void | color_manager_v1_supported_tf_named (void *data, wp_color_manager_v1 *, uint32_t tf) |
| static void | color_manager_v1_supported_primaries_named (void *data, wp_color_manager_v1 *, uint32_t primaries) |
| static void | color_manager_v1_done (void *data, wp_color_manager_v1 *) |
Listener (XDG WM Base), #xdg_wm_base_listener | |
| static CLG_LogRef | LOG_WL_XDG_WM_BASE = {"ghost.wl.handle.xdg_wm_base"} |
| static const xdg_wm_base_listener | shell_listener |
| static void | shell_handle_ping (void *, xdg_wm_base *xdg_wm_base, const uint32_t serial) |
GHOST Implementation | |
WAYLAND specific implementation of the GHOST_System interface. | |
| static constexpr const char * | ghost_wl_mime_img_png = "image/png" |
| static const char * | system_clipboard_text_mime_type (const std::unordered_set< std::string > &data_offer_types) |
| static char * | system_clipboard_get_primary_selection (GWL_Display *display, const bool nil_terminate, const char *mime_receive_override, size_t *r_data_len) |
| static char * | system_clipboard_get (GWL_Display *display, const bool nil_terminate, const char *mime_receive_override, size_t *r_data_len) |
| static void | system_clipboard_put_primary_selection (GWL_Display *display, const char *buffer) |
| static void | system_clipboard_put (GWL_Display *display, const char *buffer) |
| static GHOST_TSuccess | getCursorPositionClientRelative_impl (const GWL_SeatStatePointer *seat_state_pointer, const GHOST_WindowWayland *win, int32_t &x, int32_t &y) |
| static GHOST_TSuccess | setCursorPositionClientRelative_impl (GWL_Seat *seat, GHOST_WindowWayland *win, const int32_t x, const int32_t y) |
| static bool | cursor_is_software (const GHOST_TGrabCursorMode mode, const bool use_software_confine) |
| static wl_buffer * | ghost_wl_buffer_from_cursor_generator (const GHOST_CursorGenerator &cg, wl_shm *shm, void **buffer_data_p, size_t *buffer_data_size_p, const int cursor_size, const int cursor_size_max, const int use_dark_theme, const int scale, int r_bitmap_size[2], int r_hot_spot[2]) |
| static bool | setCursorGrab_use_software_confine (const GHOST_TGrabCursorMode mode, wl_surface *wl_surface) |
| static GWL_SeatStateGrab | seat_grab_state_from_mode (const GHOST_TGrabCursorMode mode, const bool use_software_confine) |
Public WAYLAND Proxy Ownership API | |
| static const char * | ghost_wl_output_tag_id = "GHOST-output" |
| static const char * | ghost_wl_surface_tag_id = "GHOST-window" |
| static const char * | ghost_wl_surface_cursor_pointer_tag_id = "GHOST-cursor-pointer" |
| static const char * | ghost_wl_surface_cursor_tablet_tag_id = "GHOST-cursor-tablet" |
| bool | ghost_wl_output_own (const wl_output *wl_output) |
| bool | ghost_wl_surface_own (const wl_surface *wl_surface) |
| bool | ghost_wl_surface_own_with_null_check (const wl_surface *wl_surface) |
| bool | ghost_wl_surface_own_cursor_pointer (const wl_surface *wl_surface) |
| bool | ghost_wl_surface_own_cursor_tablet (const wl_surface *wl_surface) |
| void | ghost_wl_output_tag (wl_output *wl_output) |
| void | ghost_wl_surface_tag (wl_surface *wl_surface) |
| void | ghost_wl_surface_tag_cursor_pointer (wl_surface *wl_surface) |
| void | ghost_wl_surface_tag_cursor_tablet (wl_surface *wl_surface) |
| #define _VERBOSE_OLD_IFACE_PRINT | ( | params_version, | |
| version_max ) |
A version clamping macro that optionally prints when the version is outdated. This is useful when investigating when newer versions of an interface might be supported.
This addresses the following:
This should only be enabled during development, never enabled for regular releases.
Definition at line 256 of file GHOST_SystemWayland.cc.
| #define BTN_RANGE_MAX BTN_BACK |
Definition at line 307 of file GHOST_SystemWayland.cc.
Referenced by pointer_handle_button().
| #define BTN_RANGE_MIN BTN_LEFT |
Definition at line 306 of file GHOST_SystemWayland.cc.
Referenced by pointer_handle_button().
| #define GWL_IFACE_VERSION_CLAMP | ( | params_version, | |
| version_min, | |||
| version_max ) |
Definition at line 260 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_compositor_add(), gwl_registry_subcompositor_add(), gwl_registry_wl_data_device_manager_add(), gwl_registry_wl_output_add(), gwl_registry_wl_seat_add(), gwl_registry_wl_shm_add(), gwl_registry_wp_color_manager_add(), gwl_registry_wp_cursor_shape_manager_add(), gwl_registry_wp_fractional_scale_manager_add(), gwl_registry_wp_pointer_constraints_add(), gwl_registry_wp_pointer_gestures_add(), gwl_registry_wp_primary_selection_device_manager_add(), gwl_registry_wp_relative_pointer_manager_add(), gwl_registry_wp_tablet_manager_add(), gwl_registry_wp_viewporter_add(), gwl_registry_xdg_activation_add(), gwl_registry_xdg_decoration_manager_add(), gwl_registry_xdg_output_manager_add(), gwl_registry_xdg_toplevel_icon_manager_add(), and gwl_registry_xdg_wm_base_add().
| #define GWL_SeatStatePointer_EventTypes_NUM (int(GWL_Pointer_EventTypes::Button6_Up) + 1) |
Definition at line 810 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_REGISTRY) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_XDG_WM_BASE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_OUTPUT) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_XDG_OUTPUT) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_SEAT) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_PRIMARY_SELECTION_SOURCE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_PRIMARY_SELECTION_DEVICE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_PRIMARY_SELECTION_OFFER) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_KEYBOARD) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_TABLET_SEAT) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_TABLET_TOOL) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_TOUCH) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_POINTER) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_CURSOR_SURFACE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_CURSOR_BUFFER) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_DATA_DEVICE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_DATA_OFFER) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_DATA_SOURCE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_RELATIVE_POINTER) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define LOG (&LOG_WL_KEYBOARD_DEPRESSED_STATE) |
Definition at line 3411 of file GHOST_SystemWayland.cc.
| #define pushEvent DONT_USE |
In nearly all cases use pushEvent_maybe_pending at least when called from WAYLAND callbacks.
Definition at line 162 of file GHOST_SystemWayland.cc.
| #define SURFACE_CLEAR_PTR | ( | surface_test | ) |
Referenced by GHOST_SystemWayland::window_surface_unref().
| #define USE_GNOME_CONFINE_HACK |
GNOME (mutter 42.2 had a bug with confine not respecting scale - Hi-DPI), See: #98793. Even though this has been fixed, at time of writing it's not yet in a release. Workaround the problem by implementing confine with a software cursor. While this isn't ideal, it's not adding a lot of overhead as software cursors are already used for warping (which WAYLAND doesn't support).
Definition at line 177 of file GHOST_SystemWayland.cc.
| #define USE_GNOME_MOTION_MISSING_TIME_HACK |
GNOME (mutter 50.1 has a regression), unlocking the cursor warps the pointer with a zero time-stamp. See bug in mutter: 4811.
Definition at line 217 of file GHOST_SystemWayland.cc.
| #define USE_KDE_TABLET_HIDDEN_CURSOR_HACK |
KDE (plasma 5.26.1) has a bug where the cursor surface needs to be committed (via wl_surface_commit) when it was hidden and is being set to visible again, see: #102048. See: https://bugs.kde.org/show_bug.cgi?id=461001
Definition at line 193 of file GHOST_SystemWayland.cc.
| #define USE_NON_LATIN_KB_WORKAROUND |
Fix short-cut part of keyboard reading code not properly handling some keys, see: #102194.
Definition at line 268 of file GHOST_SystemWayland.cc.
Referenced by keyboard_handle_key().
| #define WL_FIXED_TO_INT_FOR_WINDOW_V2 | ( | win, | |
| xy ) |
Initializer for GHOST integer coordinates from wl_fixed_t, taking window scale into account.
Definition at line 278 of file GHOST_SystemWayland.cc.
Referenced by data_device_handle_drop(), dnd_events(), pointer_handle_enter(), pointer_handle_frame(), relative_pointer_handle_relative_motion_impl(), tablet_tool_handle_frame(), and touch_seat_handle_frame().
| #define XKB_VMOD_NAME_HYPER "Hyper" |
Definition at line 356 of file GHOST_SystemWayland.cc.
| using GWL_RegistryEntry_RemoveFn = void (*)(GWL_Display *display, void *user_data, bool on_exit) |
Remove callback for object registry.
| display | The display which holds a reference to the global object. |
| user_data | Optional reference to a sub element of display, use for outputs or seats, for example when the display may hold multiple references. |
| on_exit | Enabled when freeing on exit. When true the consistency of references between objects should be kept valid. Otherwise it can be assumed that all objects will be freed and none will be used again, so there is no need to ensure a valid state. |
Definition at line 1893 of file GHOST_SystemWayland.cc.
Add callback for object registry.
| display | The display which holds a reference to the global object. |
| params | Various arguments needed for registration. |
Definition at line 1861 of file GHOST_SystemWayland.cc.
Optional update callback to refresh internal data when another interface has been added/removed.
| display | The display which holds a reference to the global object. |
| params | Various arguments needed for updating. |
Definition at line 1880 of file GHOST_SystemWayland.cc.
| anonymous enum |
The event codes are used to differentiate from which mouse button an event comes from.
| Enumerator | |
|---|---|
| BTN_LEFT | |
| BTN_RIGHT | |
| BTN_MIDDLE | |
| BTN_SIDE | |
| BTN_EXTRA | |
| BTN_FORWARD | |
| BTN_BACK | |
Definition at line 295 of file GHOST_SystemWayland.cc.
| anonymous enum |
Tablet events.
| Enumerator | |
|---|---|
| BTN_STYLUS | Use as middle-mouse. |
| BTN_STYLUS2 | Use as right-mouse. |
| BTN_STYLUS3 | NOTE(@ideasman42): Map to an additional button (not sure which hardware uses this). |
Definition at line 317 of file GHOST_SystemWayland.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| MOD_INDEX_SHIFT | |
| MOD_INDEX_ALT | |
| MOD_INDEX_CTRL | |
| MOD_INDEX_OS | |
| MOD_INDEX_HYPER | |
Definition at line 367 of file GHOST_SystemWayland.cc.
| anonymous enum |
Keyboard scan-codes.
From linux/input-event-codes.h.
Definition at line 331 of file GHOST_SystemWayland.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| GWL_IOR_READ | |
| GWL_IOR_WRITE | |
| GWL_IOR_NO_RETRY | |
Definition at line 2650 of file GHOST_SystemWayland.cc.
| enum eCursorSetMode |
| Enumerator | |
|---|---|
| CURSOR_VISIBLE_ALWAYS_SET | |
| CURSOR_VISIBLE_ONLY_HIDE | |
| CURSOR_VISIBLE_ONLY_SHOW | |
Definition at line 3357 of file GHOST_SystemWayland.cc.
|
strong |
Definition at line 775 of file GHOST_SystemWayland.cc.
|
strong |
Collect tablet event data before the frame callback runs.
| Enumerator | |
|---|---|
| Motion | |
| Pressure | |
| Tilt | |
| Wheel | |
| Stylus0_Down | |
| Stylus0_Up | |
| Stylus1_Down | |
| Stylus1_Up | |
| Stylus2_Down | |
| Stylus2_Up | |
| Stylus3_Down | |
| Stylus3_Up | |
Definition at line 535 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 7971 of file GHOST_SystemWayland.cc.
References color_manager_v1_done(), ColorManagerV1Data::display, ColorManagerV1Data::supported_features, ColorManagerV1Data::supported_intents, ColorManagerV1Data::supported_primaries, ColorManagerV1Data::supported_transfers, GWL_Display::supports_color_manager_extended_srgb_linear, and GWL_Display::supports_color_manager_feature_windows_scrgb.
Referenced by color_manager_v1_done().
|
static |
Definition at line 7951 of file GHOST_SystemWayland.cc.
References color_manager_v1_supported_feature(), and ColorManagerV1Data::supported_features.
Referenced by color_manager_v1_supported_feature().
|
static |
Definition at line 7943 of file GHOST_SystemWayland.cc.
References color_manager_v1_supported_intent(), and ColorManagerV1Data::supported_intents.
Referenced by color_manager_v1_supported_intent().
|
static |
Definition at line 7965 of file GHOST_SystemWayland.cc.
References color_manager_v1_supported_primaries_named(), and ColorManagerV1Data::supported_primaries.
Referenced by color_manager_v1_supported_primaries_named().
|
static |
Definition at line 7958 of file GHOST_SystemWayland.cc.
References color_manager_v1_supported_tf_named(), and ColorManagerV1Data::supported_transfers.
Referenced by color_manager_v1_supported_tf_named().
|
static |
Definition at line 4637 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, cursor_buffer_handle_release(), LOG, and GWL_Cursor::wl.
Referenced by cursor_buffer_handle_release().
|
static |
Definition at line 3075 of file GHOST_SystemWayland.cc.
References cursor_buffer_set_surface_impl(), GHOST_ASSERT, scale(), and wl_surface.
Referenced by cursor_buffer_set_surface_impl(), and gwl_seat_cursor_buffer_set().
|
static |
Definition at line 10274 of file GHOST_SystemWayland.cc.
References cursor_is_software(), GHOST_kGrabNormal, and GHOST_kGrabWrap.
Referenced by GHOST_SystemWayland::cursor_grab_use_software_display_get(), cursor_is_software(), and GHOST_SystemWayland::window_cursor_grab_set().
|
static |
Re-render the custom cursor on the focused surface of seat_state_pointer.
Definition at line 4668 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, GHOST_WindowWayland::cursor_shape_refresh(), cursor_shape_refresh_for_pointer(), ghost_wl_surface_user_data(), GWL_Cursor::is_custom, GWL_SeatStatePointer::wl, and wl_surface.
Referenced by cursor_shape_refresh_for_pointer(), and update_cursor_scale().
|
static |
The cursor size from XCURSOR_SIZE, unset when it isn't a usable value. This environment variable is used by enough WAYLAND applications that it makes sense to check it (see the Xcursor man page). When set this overrides the value from DBUS.
Definition at line 2530 of file GHOST_SystemWayland.cc.
References cursor_size_from_env().
Referenced by cursor_size_from_env(), and GHOST_SystemWayland::GHOST_SystemWayland().
|
static |
Definition at line 4722 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::cursor, cursor_surface_handle_enter(), ghost_wl_output_own(), ghost_wl_output_user_data(), gwl_seat_state_pointer_from_cursor_surface(), LOG, GWL_SeatStatePointer::outputs, update_cursor_scale(), and wl_surface.
Referenced by cursor_surface_handle_enter().
|
static |
Definition at line 4738 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::cursor, cursor_surface_handle_leave(), ghost_wl_output_own(), ghost_wl_output_user_data(), gwl_seat_state_pointer_from_cursor_surface(), LOG, GWL_SeatStatePointer::outputs, update_cursor_scale(), and wl_surface.
Referenced by cursor_surface_handle_leave().
|
static |
Definition at line 4754 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, cursor_surface_handle_preferred_buffer_scale(), LOG, and wl_surface.
Referenced by cursor_surface_handle_preferred_buffer_scale().
|
static |
Definition at line 4356 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_device_handle_data_offer(), data_offer_listener, LOG, and GWL_DataOffer::wl.
Referenced by data_device_handle_data_offer().
|
static |
Definition at line 4481 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), CLOG_DEBUG, GHOST_TStringArray::count, data_device_handle_drop(), GWL_Seat::data_offer_dnd, GWL_Seat::data_offer_dnd_mutex, GWL_DataOffer::dnd, ELEM, GHOST_SystemWayland::getMilliSeconds(), GHOST_kDragnDropTypeFilenames, GHOST_kDragnDropTypeString, GHOST_kDragnDropTypeUnknown, GHOST_kEventDraggingDropDone, GHOST_URL_decode_alloc(), ghost_wl_mime_preference_order, ghost_wl_mime_text_plain, ghost_wl_mime_text_uri_list, ghost_wl_mime_text_utf8, ghost_wl_surface_user_data(), gwl_clipboard_uri_ranges(), lock, LOG, GHOST_SystemWayland::pushEvent_maybe_pending(), read_buffer_from_data_offer(), size(), GHOST_TStringArray::strings, GWL_Seat::system, GWL_DataOffer::types, UNPACK2, GWL_DataOffer::wl, GWL_Seat::wl, GHOST_SystemWayland::wl_display_get(), wl_display_roundtrip, WL_FIXED_TO_INT_FOR_WINDOW_V2, and wl_surface.
Referenced by data_device_handle_drop().
|
static |
Definition at line 4378 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), CLOG_DEBUG, data_device_handle_enter(), GWL_Seat::data_offer_dnd, GWL_Seat::data_offer_dnd_mutex, GWL_DataOffer::dnd, dnd_events(), GHOST_SystemWayland::getMilliSeconds(), GHOST_kEventDraggingEntered, ghost_wl_mime_preference_order, ghost_wl_surface_own_with_null_check(), lock, LOG, GHOST_SystemWayland::seat_active_set(), GWL_Seat::system, GWL_DataOffer::types, GWL_DataOffer::wl, GWL_Seat::wl, wl_surface, x, and y.
Referenced by data_device_handle_enter().
|
static |
Definition at line 4436 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_device_handle_leave(), GWL_Seat::data_offer_dnd, GWL_Seat::data_offer_dnd_mutex, dnd_events(), GHOST_SystemWayland::getMilliSeconds(), GHOST_kEventDraggingExited, lock, LOG, GWL_Seat::system, GWL_DataOffer::wl, and GWL_Seat::wl.
Referenced by data_device_handle_leave().
|
static |
Definition at line 4458 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_device_handle_motion(), GWL_Seat::data_offer_dnd, GWL_Seat::data_offer_dnd_mutex, GWL_DataOffer::dnd, dnd_events(), GHOST_kEventDraggingUpdated, lock, LOG, GHOST_SystemWayland::ms_from_input_time(), GWL_Seat::system, x, and y.
Referenced by data_device_handle_motion().
|
static |
Definition at line 4589 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_device_handle_selection(), GWL_Seat::data_offer_copy_paste, GWL_Seat::data_offer_copy_paste_has_image, GWL_Seat::data_offer_copy_paste_mutex, lock, LOG, and GWL_DataOffer::wl.
Referenced by data_device_handle_selection().
|
static |
Definition at line 4329 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_offer_handle_action(), GWL_DataOffer::dnd, and LOG.
Referenced by data_offer_handle_action().
|
static |
Definition at line 4309 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_offer_handle_offer(), LOG, and GWL_DataOffer::types.
Referenced by data_offer_handle_offer().
|
static |
Definition at line 4319 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_offer_handle_source_actions(), GWL_DataOffer::dnd, and LOG.
Referenced by data_offer_handle_source_actions().
|
static |
Notify the selected action.
This event indicates the action selected by the compositor after matching the source/destination side actions. Only one action (or none) will be offered here.
Definition at line 4282 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_source_handle_action(), and LOG.
Referenced by data_source_handle_action().
|
static |
Definition at line 4236 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::data_source, data_source_handle_cancelled(), GWL_Seat::data_source_mutex, lock, LOG, and GWL_DataSource::wl.
Referenced by data_source_handle_cancelled().
|
static |
The drag-and-drop operation physically finished.
The user performed the drop action. This event does not indicate acceptance, #wl_data_source.cancelled may still be emitted afterwards if the drop destination does not accept any mime type.
Definition at line 4257 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_source_handle_dnd_drop_performed(), and LOG.
Referenced by data_source_handle_dnd_drop_performed().
|
static |
The drag-and-drop operation concluded.
The drop destination finished interoperating with this data source, so the client is now free to destroy this data source and free all associated data.
Definition at line 4270 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_source_handle_dnd_finished(), and LOG.
Referenced by data_source_handle_dnd_finished().
|
static |
Definition at line 4212 of file GHOST_SystemWayland.cc.
References GWL_DataSource::buffer_out, CLOG_DEBUG, CLOG_WARN, GWL_SimpleBuffer::data, GWL_SimpleBuffer::data_size, GWL_Seat::data_source, data_source_handle_send(), GWL_Seat::data_source_mutex, and LOG.
Referenced by data_source_handle_send().
|
static |
A target accepts an offered mime type.
Sent when a target accepts pointer_focus or motion events. If a target does not accept any of the offered types, type is nullptr.
Definition at line 4205 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, data_source_handle_target(), and LOG.
Referenced by data_source_handle_target().
|
static |
Definition at line 4114 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), GWL_Seat::data_offer_dnd, GWL_DataOffer::dnd, dnd_events(), ghost_wl_mime_preference_order_type, ghost_wl_surface_user_data(), GHOST_SystemWayland::pushEvent_maybe_pending(), GWL_Seat::system, UNPACK2, GWL_Seat::wl, WL_FIXED_TO_INT_FOR_WINDOW_V2, and wl_surface.
Referenced by data_device_handle_enter(), data_device_handle_leave(), data_device_handle_motion(), and dnd_events().
|
static |
Definition at line 2691 of file GHOST_SystemWayland.cc.
References file_descriptor_is_io_ready(), and file_descriptor_is_io_ready_ex().
Referenced by file_descriptor_is_io_ready(), ghost_wl_display_event_pump(), and ghost_wl_display_event_pump_from_thread().
|
static |
| fd_stop | When not -1, wait on this descriptor too, setting r_stop when it's ready. |
Definition at line 2659 of file GHOST_SystemWayland.cc.
References file_descriptor_is_io_ready_ex(), GHOST_ASSERT, GWL_IOR_NO_RETRY, GWL_IOR_READ, and GWL_IOR_WRITE.
Referenced by file_descriptor_is_io_ready(), file_descriptor_is_io_ready_ex(), and ghost_wl_display_event_pump_from_thread().
|
staticnodiscard |
Definition at line 9872 of file GHOST_SystemWayland.cc.
References GHOST_Rect::b_, GHOST_WindowWayland::getClientBounds(), GHOST_Window::getCursorGrabAxis(), GHOST_Window::getCursorGrabBounds(), GHOST_Window::getCursorGrabModeIsWarp(), getCursorPositionClientRelative_impl(), GHOST_kFailure, GHOST_kSuccess, GHOST_Rect::l_, GHOST_Rect::r_, GHOST_Rect::t_, UNPACK2, GHOST_WindowWayland::wl_fixed_from_window(), GHOST_WindowWayland::wl_fixed_to_window(), GHOST_Rect::wrapPoint(), x, GWL_SeatStatePointer::xy, and y.
Referenced by GHOST_SystemWayland::getCursorPosition(), GHOST_SystemWayland::getCursorPositionClientRelative(), and getCursorPositionClientRelative_impl().
|
static |
Definition at line 4003 of file GHOST_SystemWayland.cc.
References ghost_wayland_current_desktop(), Gnome, KDE, Other, and string_elem_split_by_delim().
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), and ghost_wayland_current_desktop().
|
static |
Callback for WAYLAND to run when there is an error.
Definition at line 2213 of file GHOST_SystemWayland.cc.
References GHOST_ISystem::getBacktraceFn(), and ghost_wayland_log_handler().
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), ghost_wayland_log_handler(), and ghost_wayland_log_handler_background().
|
static |
A wrapper for ghost_wayland_log_handler to be used when running in the background.
Definition at line 2225 of file GHOST_SystemWayland.cc.
References ghost_wayland_log_handler(), and ghost_wayland_log_handler_background().
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), and ghost_wayland_log_handler_background().
|
static |
Return a #wl_buffer, ready to have its data filled in or nullptr in case of failure. The caller is responsible for calling unmap(buffer_data, buffer_size).
| r_buffer_data | The buffer to be filled. |
| r_buffer_data_size | The size of r_buffer_data in bytes. |
Definition at line 2892 of file GHOST_SystemWayland.cc.
References ghost_wl_buffer_create_for_image(), ghost_wl_shm_format_as_size(), memfd_create_sealed(), and UNPACK2.
Referenced by ghost_wl_buffer_create_for_image(), ghost_wl_buffer_create_transparent_pixel(), ghost_wl_buffer_from_cursor_generator(), and GHOST_SystemWayland::xdg_toplevel_icon_update().
| wl_buffer * ghost_wl_buffer_create_transparent_pixel | ( | struct wl_shm * | shm | ) |
Create a 1x1 transparent buffer, intended for up-scaling via #wp_viewport_set_destination. The caller owns the returned buffer, null on allocation failure.
Definition at line 2924 of file GHOST_SystemWayland.cc.
References ghost_wl_buffer_create_for_image(), and ghost_wl_buffer_create_transparent_pixel().
Referenced by ghost_wl_buffer_create_transparent_pixel().
|
static |
Definition at line 10370 of file GHOST_SystemWayland.cc.
References GHOST_CursorGenerator::generate_fn, ghost_wl_buffer_create_for_image(), ghost_wl_buffer_from_cursor_generator(), rgba_straight_to_premul(), rgba_straight_to_premul_inverted(), round_up_uint(), scale(), size(), x, and y.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), and ghost_wl_buffer_from_cursor_generator().
|
static |
Definition at line 2696 of file GHOST_SystemWayland.cc.
References file_descriptor_is_io_ready(), ghost_wl_display_event_pump(), GWL_IOR_NO_RETRY, GWL_IOR_READ, wl_display, wl_display_cancel_read, wl_display_dispatch_pending, wl_display_flush, wl_display_get_fd, wl_display_prepare_read, and wl_display_read_events.
Referenced by ghost_wl_display_event_pump(), and GHOST_SystemWayland::processEvents().
|
static |
Handle events from the display, waiting when there are none.
| fd_stop | See file_descriptor_is_io_ready_ex. |
Definition at line 2818 of file GHOST_SystemWayland.cc.
References file_descriptor_is_io_ready(), file_descriptor_is_io_ready_ex(), GHOST_ASSERT, ghost_wl_display_event_pump_from_thread(), GWL_IOR_NO_RETRY, GWL_IOR_READ, INT32_MAX, state, wl_display, wl_display_cancel_read, wl_display_dispatch_pending, wl_display_prepare_read, and wl_display_read_events.
Referenced by ghost_wl_display_event_pump_from_thread(), and gwl_display_event_thread_fn().
|
static |
Definition at line 2169 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, ghost_wl_display_report_error(), ghost_wl_display_report_error_from_code(), wl_display, and wl_display_get_error.
Referenced by ghost_wl_display_report_error(), and GHOST_SystemWayland::processEvents().
|
static |
Definition at line 2144 of file GHOST_SystemWayland.cc.
References ELEM, GHOST_ASSERT, ghost_wl_display_report_error_from_code(), wl_display, and wl_display_get_protocol_error.
Referenced by ghost_wl_display_report_error(), ghost_wl_display_report_error_from_code(), and ghost_wl_display_report_error_if_set().
| bool ghost_wl_display_report_error_if_set | ( | wl_display * | display | ) |
Definition at line 2190 of file GHOST_SystemWayland.cc.
References ghost_wl_display_report_error_from_code(), ghost_wl_display_report_error_if_set(), wl_display, and wl_display_get_error.
Referenced by GHOST_WindowWayland::GHOST_WindowWayland(), and ghost_wl_display_report_error_if_set().
|
static |
Access the LOCALE (with a fallback).
Definition at line 2129 of file GHOST_SystemWayland.cc.
References ghost_wl_locale_from_env_with_default().
Referenced by ghost_wl_locale_from_env_with_default(), and gwl_registry_wl_seat_add().
|
static |
Return milliseconds from a microsecond uint32 pair (used by some wayland functions).
Definition at line 2121 of file GHOST_SystemWayland.cc.
References ghost_wl_ms_from_utime_pair().
Referenced by ghost_wl_ms_from_utime_pair(), and relative_pointer_handle_relative_motion().
| bool ghost_wl_output_own | ( | const wl_output * | wl_output | ) |
Definition at line 10722 of file GHOST_SystemWayland.cc.
References ghost_wl_output_own(), ghost_wl_output_tag_id, and wl_proxy_get_tag.
Referenced by cursor_surface_handle_enter(), cursor_surface_handle_leave(), ghost_wl_output_own(), ghost_wl_output_own(), ghost_wl_output_user_data(), surface_handle_enter(), and surface_handle_leave().
| void ghost_wl_output_tag | ( | wl_output * | wl_output | ) |
Definition at line 10760 of file GHOST_SystemWayland.cc.
References ghost_wl_output_tag(), ghost_wl_output_tag_id, and wl_proxy_set_tag.
Referenced by ghost_wl_output_own(), ghost_wl_output_tag(), and gwl_registry_wl_output_add().
| GWL_Output * ghost_wl_output_user_data | ( | wl_output * | wl_output | ) |
Definition at line 11103 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, ghost_wl_output_own(), ghost_wl_output_user_data(), and output.
Referenced by cursor_surface_handle_enter(), cursor_surface_handle_leave(), ghost_wl_output_own(), ghost_wl_output_user_data(), GHOST_SystemWayland::output_unref(), surface_handle_enter(), and surface_handle_leave().
|
static |
Definition at line 2871 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, and ghost_wl_shm_format_as_size().
Referenced by ghost_wl_buffer_create_for_image(), and ghost_wl_shm_format_as_size().
| bool ghost_wl_surface_own | ( | const wl_surface * | wl_surface | ) |
Definition at line 10728 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_own(), ghost_wl_surface_tag_id, wl_proxy_get_tag, and wl_surface.
Referenced by ghost_wl_surface_own(), ghost_wl_surface_own(), ghost_wl_surface_own_with_null_check(), and ghost_wl_surface_user_data().
| bool ghost_wl_surface_own_cursor_pointer | ( | const wl_surface * | wl_surface | ) |
Definition at line 10739 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_cursor_pointer_tag_id, ghost_wl_surface_own_cursor_pointer(), wl_proxy_get_tag, and wl_surface.
Referenced by ghost_wl_surface_own_cursor_pointer(), ghost_wl_surface_own_cursor_pointer(), and gwl_seat_state_pointer_from_cursor_surface().
| bool ghost_wl_surface_own_cursor_tablet | ( | const wl_surface * | wl_surface | ) |
Definition at line 10746 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_cursor_tablet_tag_id, ghost_wl_surface_own_cursor_tablet(), wl_proxy_get_tag, and wl_surface.
Referenced by ghost_wl_surface_own_cursor_tablet(), ghost_wl_surface_own_cursor_tablet(), and gwl_seat_state_pointer_from_cursor_surface().
| bool ghost_wl_surface_own_with_null_check | ( | const wl_surface * | wl_surface | ) |
Definition at line 10734 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_own(), ghost_wl_surface_own_with_null_check(), and wl_surface.
Referenced by data_device_handle_enter(), ghost_wl_surface_own_with_null_check(), ghost_wl_surface_own_with_null_check(), keyboard_handle_enter(), keyboard_handle_leave(), pointer_handle_enter(), pointer_handle_leave(), tablet_tool_handle_proximity_in(), and touch_seat_handle_down().
| void ghost_wl_surface_tag | ( | wl_surface * | wl_surface | ) |
Definition at line 10766 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_tag(), ghost_wl_surface_tag_id, wl_proxy_set_tag, and wl_surface.
Referenced by GHOST_WindowWayland::GHOST_WindowWayland(), ghost_wl_surface_own(), and ghost_wl_surface_tag().
| void ghost_wl_surface_tag_cursor_pointer | ( | wl_surface * | wl_surface | ) |
Definition at line 10772 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_cursor_pointer_tag_id, ghost_wl_surface_tag_cursor_pointer(), wl_proxy_set_tag, and wl_surface.
Referenced by ghost_wl_surface_own_cursor_pointer(), ghost_wl_surface_tag_cursor_pointer(), and gwl_seat_capability_pointer_enable().
| void ghost_wl_surface_tag_cursor_tablet | ( | wl_surface * | wl_surface | ) |
Definition at line 10778 of file GHOST_SystemWayland.cc.
References ghost_wl_surface_cursor_tablet_tag_id, ghost_wl_surface_tag_cursor_tablet(), wl_proxy_set_tag, and wl_surface.
Referenced by ghost_wl_surface_own_cursor_tablet(), ghost_wl_surface_tag_cursor_tablet(), and tablet_seat_handle_tool_added().
| GHOST_WindowWayland * ghost_wl_surface_user_data | ( | wl_surface * | wl_surface | ) |
Definition at line 11111 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, ghost_wl_surface_own(), ghost_wl_surface_user_data(), and wl_surface.
Referenced by cursor_shape_refresh_for_pointer(), data_device_handle_drop(), dnd_events(), GHOST_SystemWayland::getCursorPosition(), ghost_wl_surface_own(), ghost_wl_surface_user_data(), gwl_seat_key_repeat_timer_fn(), keyboard_handle_enter(), keyboard_handle_key(), pointer_handle_enter(), pointer_handle_frame(), pointer_handle_leave(), relative_pointer_handle_relative_motion(), setCursorGrab_use_software_confine(), GHOST_SystemWayland::setCursorPosition(), tablet_tool_handle_frame(), tablet_tool_handle_proximity_in(), touch_seat_handle_down(), touch_seat_handle_frame(), and GHOST_SystemWayland::window_cursor_grab_set().
|
static |
Definition at line 8905 of file GHOST_SystemWayland.cc.
References GWL_RegistryHandler::add_fn, CLOG_DEBUG, GHOST_ASSERT, global_handle_add(), gwl_registry_entry_update_all(), gwl_registry_handler_interface_slot_from_string(), gwl_registry_handlers, GWL_RegistryAdd_Params::interface_slot, LOG, GWL_RegistryAdd_Params::name, GWL_Display::registry_entry, GWL_Display::registry_skip_update_all, GWL_RegistryAdd_Params::version, and GWL_Display::wl.
Referenced by global_handle_add().
|
static |
Announce removal of global object.
Notify the client of removed global objects.
This event notifies the client that the global identified by name is no longer available. If the client bound to the global using the bind request, the client should now destroy that object.
Definition at line 8958 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GHOST_ASSERT, global_handle_remove(), gwl_registry_entry_remove_by_name(), gwl_registry_entry_update_all(), gwl_registry_handlers, LOG, GWL_Display::registry_skip_update_all, and GWL_Display::wl.
Referenced by global_handle_remove().
|
static |
Return a list of URI ranges (without the file:// prefix), the result should be decoded via GHOST_URL_decode_alloc before passed to the file-system.
Definition at line 2575 of file GHOST_SystemWayland.cc.
References gwl_clipboard_uri_ranges().
Referenced by data_device_handle_drop(), GHOST_SystemWayland::getClipboardImage(), gwl_clipboard_uri_ranges(), and GHOST_SystemWayland::hasClipboardImage().
|
static |
Free the GWL_Display and its related members.
Definition at line 1758 of file GHOST_SystemWayland.cc.
References GWL_Display::background, GWL_Display::events_pthread, gwl_display_destroy(), gwl_display_event_thread_destroy(), gwl_registry_entry_remove_all(), gwl_xdg_decor_system_destroy(), GWL_Display::key_repeat_timer_manager, GWL_Display::wl, wl_display_disconnect, and GWL_Display::xdg_decor.
Referenced by gwl_display_destroy().
|
static |
Definition at line 9017 of file GHOST_SystemWayland.cc.
References GWL_Display::background, GWL_Display::events_pending, events_pending_default_size, GWL_Display::events_pipe, GWL_Display::events_pthread, GHOST_ASSERT, gwl_display_event_thread_create(), gwl_display_event_thread_fn(), and pthread_set_min_priority().
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), and gwl_display_event_thread_create().
|
static |
Definition at line 9047 of file GHOST_SystemWayland.cc.
References GWL_Display::background, GWL_Display::events_pipe, GWL_Display::events_pthread, GHOST_ASSERT, and gwl_display_event_thread_destroy().
Referenced by gwl_display_destroy(), and gwl_display_event_thread_destroy().
|
static |
Definition at line 8996 of file GHOST_SystemWayland.cc.
References GWL_Display::background, GWL_Display::events_pipe, GHOST_ASSERT, ghost_wl_display_event_pump_from_thread(), gwl_display_event_thread_fn(), GHOST_SystemWayland::server_mutex, GWL_Display::system, GWL_Display::wl, wl_display, and wl_display_get_fd.
Referenced by gwl_display_event_thread_create(), and gwl_display_event_thread_fn().
|
static |
Callers must null check the return value unless it's known there is a seat.
Definition at line 1819 of file GHOST_SystemWayland.cc.
References gwl_display_seat_active_get(), GWL_Display::seats, and GWL_Display::seats_active_index.
Referenced by GHOST_SystemWayland::cursor_bitmap_get(), GHOST_SystemWayland::cursor_grab_use_software_display_get(), GHOST_SystemWayland::cursor_shape_check(), GHOST_SystemWayland::cursor_shape_custom_set(), GHOST_SystemWayland::cursor_shape_set(), GHOST_SystemWayland::cursor_visibility_set(), GHOST_SystemWayland::getButtons(), GHOST_SystemWayland::getCapabilities(), GHOST_SystemWayland::getClipboardImage(), GHOST_SystemWayland::getCursorPosition(), GHOST_SystemWayland::getCursorPositionClientRelative(), GHOST_SystemWayland::getCursorPreferredLogicalSize(), GHOST_SystemWayland::getModifierKeys(), gwl_display_seat_active_get(), GHOST_SystemWayland::hasClipboardImage(), GHOST_SystemWayland::putClipboardImage(), GHOST_SystemWayland::setCursorPosition(), GHOST_SystemWayland::setCursorPositionClientRelative(), system_clipboard_get(), system_clipboard_get_primary_selection(), system_clipboard_put(), system_clipboard_put_primary_selection(), GHOST_SystemWayland::window_cursor_grab_set(), and GHOST_SystemWayland::wl_seat_active_get_with_input_serial().
|
static |
Definition at line 1827 of file GHOST_SystemWayland.cc.
References gwl_display_seat_active_set(), gwl_display_seat_index(), index, GWL_Display::seats, and GWL_Display::seats_active_index.
Referenced by gwl_display_seat_active_set(), and GHOST_SystemWayland::seat_active_set().
|
static |
Definition at line 1804 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_display_seat_index(), index, and GWL_Display::seats.
Referenced by gwl_display_seat_active_set(), and gwl_display_seat_index().
|
static |
Definition at line 841 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointer_Events::frame_pending, GHOST_ASSERT, gwl_pointer_handle_frame_event_add(), and Scroll.
Referenced by gwl_pointer_handle_frame_event_add(), pointer_handle_axis(), pointer_handle_axis_discrete(), pointer_handle_axis_value120(), pointer_handle_button(), and pointer_handle_motion().
|
static |
Definition at line 868 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointer_Events::frame_pending, and gwl_pointer_handle_frame_event_reset().
Referenced by gwl_pointer_handle_frame_event_reset(), and pointer_handle_frame().
|
static |
Definition at line 1023 of file GHOST_SystemWayland.cc.
References GWL_PrimarySelection::data_offer, gwl_primary_selection_discard_offer(), and GWL_PrimarySelection_DataOffer::wp.
Referenced by gwl_primary_selection_discard_offer(), gwl_registry_wl_seat_remove(), and primary_selection_device_handle_selection().
|
static |
Definition at line 1033 of file GHOST_SystemWayland.cc.
References GWL_PrimarySelection_DataSource::buffer_out, GWL_PrimarySelection::data_source, gwl_primary_selection_discard_source(), gwl_simple_buffer_free_data(), and GWL_PrimarySelection_DataSource::wp.
Referenced by gwl_primary_selection_discard_source(), gwl_registry_wl_seat_remove(), primary_selection_source_cancelled(), and system_clipboard_put_primary_selection().
|
static |
Definition at line 8035 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_compositor_add(), gwl_registry_entry_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, and GWL_Display::wl.
Referenced by gwl_registry_compositor_add().
|
static |
Definition at line 8043 of file GHOST_SystemWayland.cc.
References gwl_registry_compositor_remove(), and GWL_Display::wl.
Referenced by gwl_registry_compositor_remove().
|
static |
Definition at line 1940 of file GHOST_SystemWayland.cc.
References gwl_registry_entry_add(), GWL_RegistryAdd_Params::interface_slot, GWL_RegistryEntry::interface_slot, GWL_RegistryAdd_Params::name, GWL_RegistryEntry::name, GWL_RegistryEntry::next, GWL_Display::registry_entry, GWL_RegistryEntry::user_data, GWL_RegistryAdd_Params::version, and GWL_RegistryEntry::version.
Referenced by gwl_registry_compositor_add(), gwl_registry_entry_add(), gwl_registry_subcompositor_add(), gwl_registry_wl_data_device_manager_add(), gwl_registry_wl_output_add(), gwl_registry_wl_seat_add(), gwl_registry_wl_shm_add(), gwl_registry_wp_color_manager_add(), gwl_registry_wp_cursor_shape_manager_add(), gwl_registry_wp_fractional_scale_manager_add(), gwl_registry_wp_pointer_constraints_add(), gwl_registry_wp_pointer_gestures_add(), gwl_registry_wp_primary_selection_device_manager_add(), gwl_registry_wp_relative_pointer_manager_add(), gwl_registry_wp_tablet_manager_add(), gwl_registry_wp_viewporter_add(), gwl_registry_xdg_activation_add(), gwl_registry_xdg_decoration_manager_add(), gwl_registry_xdg_output_manager_add(), gwl_registry_xdg_toplevel_icon_manager_add(), and gwl_registry_xdg_wm_base_add().
|
static |
Remove all global objects (on exit).
Definition at line 2016 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_registry_entry_remove_all(), gwl_registry_entry_remove_by_interface_slot(), gwl_registry_handler_interface_slot_max(), and GWL_Display::registry_entry.
Referenced by gwl_display_destroy(), and gwl_registry_entry_remove_all().
|
static |
Definition at line 1987 of file GHOST_SystemWayland.cc.
References gwl_registry_entry_remove_by_interface_slot(), gwl_registry_handler_from_interface_slot(), GWL_RegistryEntry::interface_slot, GWL_RegistryEntry::next, GWL_Display::registry_entry, GWL_RegistryHandler::remove_fn, and GWL_RegistryEntry::user_data.
Referenced by gwl_registry_entry_remove_all(), and gwl_registry_entry_remove_by_interface_slot().
|
static |
Definition at line 1955 of file GHOST_SystemWayland.cc.
References gwl_registry_entry_remove_by_name(), gwl_registry_handler_from_interface_slot(), GWL_RegistryEntry::interface_slot, GWL_RegistryEntry::name, GWL_RegistryEntry::next, GWL_Display::registry_entry, GWL_RegistryHandler::remove_fn, and GWL_RegistryEntry::user_data.
Referenced by global_handle_remove(), gwl_registry_entry_remove_by_name(), and gwl_xdg_decor_system_destroy().
|
static |
Run GWL_RegistryHandler.update_fn an all registered interface instances. This is needed to refresh the state of interfaces that may reference other interfaces. Called when interfaces are added/removed.
| interface_slot_exclude | Skip updating slots of this type. Note that while harmless dependencies only exist between different types, so there is no reason to update all other outputs that an output was removed (for example). Pass as -1 to update all slots. |
NOTE(@ideasman42): Updating all other items on a single change is typically worth avoiding. In practice this isn't a problem as so there are so few elements in display->registry_entry, so few use update functions and adding/removal at runtime is rarely called (plugging/unplugging) hardware for example So while it's possible to store dependency links to avoid unnecessary looping over data - it ends up being a non issue.
Definition at line 2056 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_registry_entry_update_all(), gwl_registry_handler_from_interface_slot(), gwl_registry_handler_interface_slot_max(), GWL_RegistryUpdate_Params::interface_slot, GWL_RegistryUpdate_Params::name, GWL_RegistryEntry::next, GWL_Display::registry_entry, GWL_RegistryHandler::update_fn, GWL_RegistryUpdate_Params::user_data, and GWL_RegistryUpdate_Params::version.
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), global_handle_add(), global_handle_remove(), and gwl_registry_entry_update_all().
|
static |
Definition at line 8898 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_registry_handler_from_interface_slot(), gwl_registry_handler_interface_slot_max(), and gwl_registry_handlers.
Referenced by gwl_registry_entry_remove_by_interface_slot(), gwl_registry_entry_remove_by_name(), gwl_registry_entry_update_all(), and gwl_registry_handler_from_interface_slot().
|
static |
Definition at line 8886 of file GHOST_SystemWayland.cc.
References gwl_registry_handler_interface_slot_from_string(), gwl_registry_handlers, GWL_RegistryHandler::interface_p, and STREQ.
Referenced by global_handle_add(), and gwl_registry_handler_interface_slot_from_string().
|
static |
Workaround for gwl_registry_handlers order of declaration, preventing ARRAY_SIZE(gwl_registry_handlers) - 1 being used.
Definition at line 8881 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), gwl_registry_handler_interface_slot_max(), and gwl_registry_handlers.
Referenced by gwl_registry_entry_remove_all(), gwl_registry_entry_update_all(), gwl_registry_handler_from_interface_slot(), and gwl_registry_handler_interface_slot_max().
|
static |
Definition at line 8054 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_subcompositor_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, and GWL_Display::wl.
Referenced by gwl_registry_subcompositor_add().
|
static |
Definition at line 8063 of file GHOST_SystemWayland.cc.
References gwl_registry_subcompositor_remove(), and GWL_Display::wl.
Referenced by gwl_registry_subcompositor_remove().
|
static |
Definition at line 8451 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wl_data_device_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, and GWL_Display::wl.
Referenced by gwl_registry_wl_data_device_manager_add().
|
static |
Definition at line 8460 of file GHOST_SystemWayland.cc.
References gwl_registry_wl_data_device_manager_remove(), and GWL_Display::wl.
Referenced by gwl_registry_wl_data_device_manager_remove().
|
static |
Definition at line 8148 of file GHOST_SystemWayland.cc.
References ghost_wl_output_tag(), GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wl_output_add(), GWL_RegistryAdd_Params::name, output, output_listener, GWL_Display::outputs, GWL_Display::system, GWL_RegistryAdd_Params::version, and GWL_Display::wl.
Referenced by gwl_registry_wl_output_add().
|
static |
Definition at line 8178 of file GHOST_SystemWayland.cc.
References CLOG_WARN, GHOST_ASSERT, gwl_registry_wl_output_remove(), LOG, output, and GWL_Display::outputs.
Referenced by gwl_registry_wl_output_remove().
|
static |
Definition at line 8163 of file GHOST_SystemWayland.cc.
References gwl_registry_wl_output_update(), output, GWL_RegistryUpdate_Params::user_data, GWL_Display::xdg, and xdg_output_listener.
Referenced by gwl_registry_wl_output_update().
|
static |
Definition at line 8240 of file GHOST_SystemWayland.cc.
References GWL_Seat::data_source, ghost_wl_locale_from_env_with_default(), GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wl_seat_add(), has_wl_trackpad_physical_direction, GWL_RegistryAdd_Params::name, seat_listener, GWL_Display::seats, GWL_Display::system, GWL_Seat::system, GWL_RegistryAdd_Params::version, GWL_Display::wl, GWL_Seat::wl, and GWL_Seat::xkb.
Referenced by gwl_registry_wl_seat_add().
|
static |
Definition at line 8317 of file GHOST_SystemWayland.cc.
References GWL_DataSource::buffer_out, GWL_Seat::cursor, GWL_Cursor::custom_data, GWL_Cursor::custom_data_size, GWL_Seat::data_offer_copy_paste, GWL_Seat::data_offer_copy_paste_mutex, GWL_Seat::data_offer_dnd, GWL_Seat::data_offer_dnd_mutex, GWL_PrimarySelection::data_offer_mutex, GWL_Seat::data_source, GWL_PrimarySelection::data_source_mutex, GWL_Seat::data_source_mutex, GHOST_ASSERT, gwl_primary_selection_discard_offer(), gwl_primary_selection_discard_source(), gwl_registry_wl_seat_remove(), gwl_seat_capability_keyboard_disable(), gwl_seat_capability_pointer_disable(), gwl_seat_capability_touch_disable(), gwl_simple_buffer_free_data(), index, lock, GWL_Seat::primary_selection, GWL_Display::seats, GWL_Display::seats_active_index, GWL_Cursor::wl, GWL_DataOffer::wl, GWL_DataSource::wl, GWL_Seat::wl, GWL_Seat::wp, and GWL_Seat::xkb.
Referenced by gwl_registry_wl_seat_remove().
|
static |
Definition at line 8261 of file GHOST_SystemWayland.cc.
References data_device_listener, gwl_registry_wl_seat_update(), GWL_Seat::primary_selection, primary_selection_device_listener, tablet_seat_listener, GWL_RegistryUpdate_Params::user_data, GWL_Display::wl, GWL_Seat::wl, GWL_Display::wp, and GWL_Seat::wp.
Referenced by gwl_registry_wl_seat_update().
|
static |
Definition at line 8432 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wl_shm_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, and GWL_Display::wl.
Referenced by gwl_registry_wl_shm_add().
|
static |
Definition at line 8440 of file GHOST_SystemWayland.cc.
References gwl_registry_wl_shm_remove(), and GWL_Display::wl.
Referenced by gwl_registry_wl_shm_remove().
|
static |
Definition at line 8212 of file GHOST_SystemWayland.cc.
References color_manager_v1_listener, GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_color_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, wl_display_create_queue, and GWL_Display::wp.
Referenced by gwl_registry_wp_color_manager_add().
|
static |
Definition at line 8225 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_color_manager_remove(), wl_event_queue_destroy, and GWL_Display::wp.
Referenced by gwl_registry_wp_color_manager_remove().
|
static |
Definition at line 8709 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_cursor_shape_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_cursor_shape_manager_add().
|
static |
Definition at line 8718 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_cursor_shape_manager_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_cursor_shape_manager_remove().
|
static |
Definition at line 8619 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_fractional_scale_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_fractional_scale_manager_add().
|
static |
Definition at line 8629 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_fractional_scale_manager_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_fractional_scale_manager_remove().
|
static |
Definition at line 8512 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_pointer_constraints_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_pointer_constraints_add().
|
static |
Definition at line 8521 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_pointer_constraints_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_pointer_constraints_remove().
|
static |
Definition at line 8532 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_pointer_gestures_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_pointer_gestures_add().
|
static |
Definition at line 8544 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_pointer_gestures_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_pointer_gestures_remove().
|
static |
Definition at line 8660 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_primary_selection_device_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_primary_selection_device_manager_add().
|
static |
Definition at line 8673 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_primary_selection_device_manager_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_primary_selection_device_manager_remove().
|
static |
Definition at line 8491 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_relative_pointer_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_relative_pointer_manager_add().
|
static |
Definition at line 8501 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_relative_pointer_manager_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_relative_pointer_manager_remove().
|
static |
Definition at line 8471 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_tablet_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_tablet_manager_add().
|
static |
Definition at line 8480 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_tablet_manager_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_tablet_manager_remove().
|
static |
Definition at line 8640 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_wp_viewporter_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::wp.
Referenced by gwl_registry_wp_viewporter_add().
|
static |
Definition at line 8649 of file GHOST_SystemWayland.cc.
References gwl_registry_wp_viewporter_remove(), and GWL_Display::wp.
Referenced by gwl_registry_wp_viewporter_remove().
|
static |
Definition at line 8555 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_xdg_activation_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::xdg.
Referenced by gwl_registry_xdg_activation_add().
|
static |
Definition at line 8564 of file GHOST_SystemWayland.cc.
References gwl_registry_xdg_activation_remove(), and GWL_Display::xdg.
Referenced by gwl_registry_xdg_activation_remove().
|
static |
Definition at line 8100 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_xdg_decoration_manager_add(), GWL_XDG_Decor_System::manager, GWL_XDG_Decor_System::manager_name, GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::xdg_decor.
Referenced by gwl_registry_xdg_decoration_manager_add().
|
static |
Definition at line 8111 of file GHOST_SystemWayland.cc.
References gwl_registry_xdg_decoration_manager_remove(), GWL_XDG_Decor_System::manager, GWL_XDG_Decor_System::manager_name, WL_NAME_UNSET, and GWL_Display::xdg_decor.
Referenced by gwl_registry_xdg_decoration_manager_remove().
|
static |
Definition at line 8125 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_xdg_output_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::xdg.
Referenced by gwl_registry_xdg_output_manager_add().
|
static |
Definition at line 8137 of file GHOST_SystemWayland.cc.
References gwl_registry_xdg_output_manager_remove(), and GWL_Display::xdg.
Referenced by gwl_registry_xdg_output_manager_remove().
|
static |
Definition at line 8596 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_xdg_toplevel_icon_manager_add(), GWL_RegistryAdd_Params::name, GWL_RegistryAdd_Params::version, GWL_Display::wl, GWL_Display::xdg, and xdg_toplevel_icon_manager_listener.
Referenced by gwl_registry_xdg_toplevel_icon_manager_add().
|
static |
Definition at line 8608 of file GHOST_SystemWayland.cc.
References gwl_registry_xdg_toplevel_icon_manager_remove(), and GWL_Display::xdg.
Referenced by gwl_registry_xdg_toplevel_icon_manager_remove().
|
static |
Definition at line 8074 of file GHOST_SystemWayland.cc.
References GWL_IFACE_VERSION_CLAMP, gwl_registry_entry_add(), gwl_registry_xdg_wm_base_add(), GWL_RegistryAdd_Params::name, GWL_XDG_Decor_System::shell, shell_listener, GWL_XDG_Decor_System::shell_name, GWL_RegistryAdd_Params::version, GWL_Display::wl, and GWL_Display::xdg_decor.
Referenced by gwl_registry_xdg_wm_base_add().
|
static |
Definition at line 8086 of file GHOST_SystemWayland.cc.
References gwl_registry_xdg_wm_base_remove(), GWL_XDG_Decor_System::shell, GWL_XDG_Decor_System::shell_name, WL_NAME_UNSET, and GWL_Display::xdg_decor.
Referenced by gwl_registry_xdg_wm_base_remove().
|
static |
Definition at line 927 of file GHOST_SystemWayland.cc.
References add(), GWL_ScaledFixedT::factor, gwl_scaled_fixed_t_add_and_calc_rounded_delta(), and GWL_ScaledFixedT::value.
Referenced by gwl_scaled_fixed_t_add_and_calc_rounded_delta().
|
static |
Definition at line 7642 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_keyboard_disable(), GWL_Seat::key_repeat, GWL_Seat::keyboard, keyboard_handle_key_repeat_cancel(), GWL_Seat::system, GHOST_SystemWayland::timer_mutex, and GWL_Seat::wl.
Referenced by gwl_registry_wl_seat_remove(), gwl_seat_capability_keyboard_disable(), and seat_handle_capabilities().
|
static |
Definition at line 7633 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_keyboard_enable(), GWL_Seat::keyboard, keyboard_listener, and GWL_Seat::wl.
Referenced by gwl_seat_capability_keyboard_enable(), and seat_handle_capabilities().
|
static |
Definition at line 7611 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, GWL_CursorShape::device, gwl_seat_capability_pointer_disable(), gwl_seat_capability_pointer_multitouch_disable(), GWL_Seat::pointer, GWL_Cursor::shape, GWL_Cursor::wl, and GWL_Seat::wl.
Referenced by gwl_registry_wl_seat_remove(), gwl_seat_capability_pointer_disable(), and seat_handle_capabilities().
|
static |
Definition at line 7587 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, cursor_surface_listener, ghost_wl_surface_tag_cursor_pointer(), gwl_seat_capability_pointer_enable(), gwl_seat_capability_pointer_multitouch_enable(), GWL_Seat::pointer, pointer_listener, GHOST_SystemWayland::preferences_cursor_size_get(), GWL_Seat::system, GWL_Cursor::theme_size, GWL_Cursor::use_dark_theme, GWL_Cursor::visible, GWL_Cursor::wl, GWL_Seat::wl, and GHOST_SystemWayland::wl_compositor_get().
Referenced by gwl_seat_capability_pointer_enable(), and seat_handle_capabilities().
|
static |
Definition at line 7467 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_pointer_multitouch_check(), GWL_Seat::pointer_gesture_pinch, GWL_Seat::system, GWL_Seat::use_pointer_scroll_smooth_as_discrete, GWL_Seat::wp, and GHOST_SystemWayland::wp_pointer_gestures_get().
Referenced by gwl_seat_capability_pointer_multitouch_check(), and GHOST_SystemWayland::setMultitouchGestures().
|
static |
Definition at line 7546 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_pointer_multitouch_disable(), GWL_Seat::pointer_gesture_pinch, GWL_Seat::pointer_scroll, GWL_SeatStatePointerScroll::smooth_as_discrete, GWL_SeatStatePointerScroll::smooth_xy, GWL_Seat::system, GWL_Seat::use_pointer_scroll_smooth_as_discrete, GWL_Seat::wp, and GHOST_SystemWayland::wp_pointer_gestures_get().
Referenced by gwl_seat_capability_pointer_disable(), gwl_seat_capability_pointer_multitouch_disable(), and GHOST_SystemWayland::setMultitouchGestures().
|
static |
Definition at line 7503 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_pointer_multitouch_enable(), GWL_Seat::pointer, GWL_Seat::pointer_gesture_pinch, GWL_Seat::pointer_scroll, GWL_SeatStatePointerScroll::smooth_as_discrete, GWL_Seat::system, GWL_Seat::use_pointer_scroll_smooth_as_discrete, GWL_Seat::wl, GWL_Seat::wp, and GHOST_SystemWayland::wp_pointer_gestures_get().
Referenced by gwl_seat_capability_pointer_enable(), gwl_seat_capability_pointer_multitouch_enable(), and GHOST_SystemWayland::setMultitouchGestures().
|
static |
Definition at line 7670 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_touch_disable(), GWL_Seat::touch, and GWL_Seat::wl.
Referenced by gwl_registry_wl_seat_remove(), gwl_seat_capability_touch_disable(), and seat_handle_capabilities().
|
static |
Definition at line 7660 of file GHOST_SystemWayland.cc.
References gwl_seat_capability_touch_enable(), GWL_Seat::touch, touch_seat_listener, and GWL_Seat::wl.
Referenced by gwl_seat_capability_touch_enable(), and seat_handle_capabilities().
|
static |
Hide the buffer defined by gwl_seat_cursor_buffer_set without changing anything else, so gwl_seat_cursor_buffer_show can be used to display it again.
The caller is responsible for setting seat->cursor.visible.
Definition at line 3302 of file GHOST_SystemWayland.cc.
References gwl_seat_cursor_buffer_hide(), GWL_Seat::pointer, GWL_SeatStatePointer::serial, GWL_TabletTool::serial, GWL_Seat::wl, and GWL_Seat::wp.
Referenced by gwl_seat_cursor_buffer_hide(), and gwl_seat_cursor_visible_set().
|
static |
Currently account for all cursors as the buffer is shared.
Note that a per pointing device buffer would be better, this is more of a low priority to-do.
Definition at line 3230 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointer::buffer_scale, gwl_seat_cursor_buffer_scale_calc(), GWL_Seat::pointer, scale(), GWL_Seat::tablet, GWL_Seat::wl, and GWL_Seat::wp.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), gwl_seat_cursor_buffer_scale_calc(), gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_show(), and update_cursor_scale().
|
static |
Definition at line 3312 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, cursor_buffer_set_surface_impl(), gwl_seat_cursor_buffer_scale_calc(), gwl_seat_cursor_buffer_set(), GWL_Cursor::is_hardware, GWL_Seat::pointer, scale(), GWL_SeatStatePointer::serial, GWL_TabletTool::serial, GWL_Cursor::visible, GWL_Cursor::wl, GWL_Seat::wl, GWL_TabletTool::wl, and GWL_Seat::wp.
Referenced by gwl_seat_cursor_buffer_set(), and gwl_seat_cursor_buffer_set_current().
|
static |
Definition at line 3351 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_set_current(), and GWL_Cursor::wl.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set(), and gwl_seat_cursor_buffer_set_current().
|
static |
Show the buffer defined by gwl_seat_cursor_buffer_set without changing anything else, so gwl_seat_cursor_buffer_hide can be used to display it again.
The caller is responsible for setting seat->cursor.visible.
Definition at line 3248 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, GWL_CursorShape::device, GWL_CursorShape::enum_id, gwl_seat_cursor_buffer_scale_calc(), gwl_seat_cursor_buffer_show(), GWL_Seat::pointer, scale(), GWL_SeatStatePointer::serial, GWL_TabletTool::serial, GWL_Cursor::shape, GWL_TabletTool::shape, use_kde_tablet_hidden_cursor_hack, GWL_Cursor::wl, GWL_Seat::wl, GWL_TabletTool::wl, and GWL_Seat::wp.
Referenced by gwl_seat_cursor_buffer_show(), and gwl_seat_cursor_visible_set().
|
static |
Definition at line 3107 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, GHOST_kStandardCursorBlade, GHOST_kStandardCursorBothHandles, GHOST_kStandardCursorBottomLeftCorner, GHOST_kStandardCursorBottomRightCorner, GHOST_kStandardCursorBottomSide, GHOST_kStandardCursorCopy, GHOST_kStandardCursorCrosshair, GHOST_kStandardCursorCrosshairA, GHOST_kStandardCursorCrosshairB, GHOST_kStandardCursorCrosshairC, GHOST_kStandardCursorCustom, GHOST_kStandardCursorDefault, GHOST_kStandardCursorDestroy, GHOST_kStandardCursorDownArrow, GHOST_kStandardCursorEraser, GHOST_kStandardCursorEWScroll, GHOST_kStandardCursorEyedropper, GHOST_kStandardCursorHandClosed, GHOST_kStandardCursorHandOpen, GHOST_kStandardCursorHandPoint, GHOST_kStandardCursorHelp, GHOST_kStandardCursorHorizontalSplit, GHOST_kStandardCursorInfo, GHOST_kStandardCursorKnife, GHOST_kStandardCursorLeftArrow, GHOST_kStandardCursorLeftHandle, GHOST_kStandardCursorLeftRight, GHOST_kStandardCursorLeftSide, GHOST_kStandardCursorMove, GHOST_kStandardCursorNSEWScroll, GHOST_kStandardCursorNSScroll, GHOST_kStandardCursorPencil, GHOST_kStandardCursorRightArrow, GHOST_kStandardCursorRightHandle, GHOST_kStandardCursorRightSide, GHOST_kStandardCursorSlip, GHOST_kStandardCursorStop, GHOST_kStandardCursorText, GHOST_kStandardCursorTopLeftCorner, GHOST_kStandardCursorTopRightCorner, GHOST_kStandardCursorTopSide, GHOST_kStandardCursorUpArrow, GHOST_kStandardCursorUpDown, GHOST_kStandardCursorVerticalSplit, GHOST_kStandardCursorWait, GHOST_kStandardCursorZoomIn, GHOST_kStandardCursorZoomOut, and gwl_seat_cursor_find_wl_shape_from_ghost().
Referenced by GHOST_SystemWayland::cursor_shape_check(), GHOST_SystemWayland::cursor_shape_set(), and gwl_seat_cursor_find_wl_shape_from_ghost().
|
static |
Definition at line 3363 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor, CURSOR_VISIBLE_ALWAYS_SET, CURSOR_VISIBLE_ONLY_HIDE, CURSOR_VISIBLE_ONLY_SHOW, gwl_seat_cursor_buffer_hide(), gwl_seat_cursor_buffer_show(), gwl_seat_cursor_visible_set(), GWL_Cursor::is_hardware, and GWL_Cursor::visible.
Referenced by GHOST_SystemWayland::cursor_visibility_set(), gwl_seat_cursor_visible_set(), and GHOST_SystemWayland::window_cursor_grab_set().
|
static |
Account for changes to #GWL_Seat::xkb::layout_active by running #xkb_state_update_mask on static states which are used for lookups.
This is also used when initializing the states.
Definition at line 1352 of file GHOST_SystemWayland.cc.
References EVDEV_OFFSET, GHOST_ASSERT, gwl_seat_key_layout_active_state_update_mask(), KEY_0, KEY_1, MOD_INDEX_SHIFT, GWL_Seat::xkb, xkb_keymap_get_fallback_layout(), GWL_Seat::xkb_keymap_mod_index, GWL_Seat::xkb_keymap_mod_index_mod2, GWL_Seat::xkb_keymap_mod_index_numlock, and GWL_Seat::xkb_use_non_latin_workaround.
Referenced by gwl_seat_key_layout_active_state_update_mask(), keyboard_handle_keymap(), and keyboard_handle_modifiers().
|
static |
Definition at line 1441 of file GHOST_SystemWayland.cc.
References GHOST_TimerManager::addTimer(), GHOST_SystemWayland::getMilliSeconds(), GHOST_ASSERT, GHOST_TimerTask::GHOST_TimerTask(), gwl_seat_key_repeat_timer_add(), GWL_Seat::key_repeat, GHOST_SystemWayland::key_repeat_timer_manager(), and GWL_Seat::system.
Referenced by gwl_seat_key_repeat_timer_add(), keyboard_handle_enter(), keyboard_handle_key(), and keyboard_handle_key_repeat_reset().
|
static |
Callback that runs from GHOST's timer.
Definition at line 1404 of file GHOST_SystemWayland.cc.
References GHOST_ITimerTask::getUserData(), GHOST_kEventKeyDown, ghost_wl_surface_user_data(), gwl_seat_key_repeat_timer_fn(), GWL_KeyRepeatPlayload::key_code, GWL_KeyRepeatPlayload::key_data, GWL_Seat::keyboard, GHOST_SystemWayland::pushEvent_maybe_pending(), GWL_KeyRepeatPlayload::seat, GWL_Seat::system, GWL_KeyRepeatPlayload::time_ms_init, GHOST_TEventKeyData::utf8_buf, GWL_SeatStateKeyboard::wl, wl_surface, GWL_Seat::xkb, and xkb_compose_state_feed_and_get_utf8().
Referenced by gwl_seat_key_repeat_timer_fn(), keyboard_handle_enter(), and keyboard_handle_key().
|
static |
Definition at line 1464 of file GHOST_SystemWayland.cc.
References gwl_seat_key_repeat_timer_remove(), GWL_Seat::key_repeat, GHOST_SystemWayland::key_repeat_timer_manager(), GHOST_TimerManager::removeTimer(), and GWL_Seat::system.
Referenced by gwl_seat_key_repeat_timer_remove(), keyboard_handle_key(), keyboard_handle_key_repeat_cancel(), and keyboard_handle_key_repeat_reset().
|
static |
Definition at line 1301 of file GHOST_SystemWayland.cc.
References GWL_Seat::cursor_source_serial, gwl_seat_state_pointer_active(), GWL_Seat::pointer, GWL_SeatStatePointer::serial, GWL_Seat::tablet, and GWL_Seat::touch.
Referenced by GHOST_SystemWayland::getButtons(), GHOST_SystemWayland::getCursorPosition(), GHOST_SystemWayland::getCursorPositionClientRelative(), and gwl_seat_state_pointer_active().
|
static |
Definition at line 1315 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, ghost_wl_surface_own_cursor_pointer(), ghost_wl_surface_own_cursor_tablet(), gwl_seat_state_pointer_from_cursor_surface(), GWL_Seat::pointer, GWL_Seat::tablet, and wl_surface.
Referenced by cursor_surface_handle_enter(), cursor_surface_handle_leave(), and gwl_seat_state_pointer_from_cursor_surface().
|
static |
Set the window surface receiving this device's input, clearing the mutually exclusive CSD margin surface (null clears both).
Definition at line 1332 of file GHOST_SystemWayland.cc.
References gwl_seat_state_pointer_surface_window_set(), GWL_SeatStatePointer::wl, and wl_surface.
Referenced by gwl_seat_state_pointer_surface_window_set(), pointer_handle_enter(), pointer_handle_leave(), tablet_tool_handle_proximity_in(), and touch_seat_handle_down().
|
static |
Definition at line 444 of file GHOST_SystemWayland.cc.
References GWL_SimpleBuffer::data, GWL_SimpleBuffer::data_size, and gwl_simple_buffer_free_data().
Referenced by gwl_primary_selection_discard_source(), gwl_registry_wl_seat_remove(), gwl_simple_buffer_free_data(), and GHOST_SystemWayland::putClipboardImage().
|
static |
Definition at line 451 of file GHOST_SystemWayland.cc.
References GWL_SimpleBuffer::data, GWL_SimpleBuffer::data_size, gwl_simple_buffer_set_from_string(), and str.
Referenced by gwl_simple_buffer_set_from_string(), system_clipboard_put(), and system_clipboard_put_primary_selection().
|
static |
Definition at line 616 of file GHOST_SystemWayland.cc.
References GWL_TabletTool::frame_pending, and gwl_tablet_tool_frame_event_add().
Referenced by gwl_tablet_tool_frame_event_add(), tablet_tool_handle_button(), tablet_tool_handle_down(), tablet_tool_handle_motion(), tablet_tool_handle_pressure(), tablet_tool_handle_tilt(), tablet_tool_handle_up(), and tablet_tool_handle_wheel().
|
static |
Definition at line 631 of file GHOST_SystemWayland.cc.
References GWL_TabletTool::frame_pending, and gwl_tablet_tool_frame_event_reset().
Referenced by gwl_tablet_tool_frame_event_reset(), and tablet_tool_handle_frame().
|
static |
Definition at line 980 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_registry_entry_remove_by_name(), gwl_xdg_decor_system_destroy(), GWL_XDG_Decor_System::manager, GWL_XDG_Decor_System::manager_name, GWL_XDG_Decor_System::shell, and GWL_XDG_Decor_System::shell_name.
Referenced by gwl_display_destroy(), and gwl_xdg_decor_system_destroy().
|
static |
Definition at line 3420 of file GHOST_SystemWayland.cc.
References CLOG_WARN, GHOST_kEventKeyUp, GHOST_KEY_MODIFIER_CHECK, GHOST_KEY_MODIFIER_TO_INDEX, index, GWL_Seat::key_depressed, keyboard_depressed_state_key_event(), LOG, and GWL_KeyboardDepressedState::mods.
Referenced by keyboard_depressed_state_key_event(), keyboard_handle_enter(), and keyboard_handle_key().
|
static |
Definition at line 3440 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GHOST_kEventKeyDown, GHOST_kEventKeyUp, GHOST_KEY_MODIFIER_FROM_INDEX, GHOST_KEY_MODIFIER_NUM, GWL_Seat::key_depressed, keyboard_depressed_state_push_events_from_change(), LOG, GWL_KeyboardDepressedState::mods, GHOST_SystemWayland::pushEvent_maybe_pending(), and GWL_Seat::system.
Referenced by keyboard_depressed_state_push_events_from_change(), and keyboard_handle_enter().
|
static |
Definition at line 3413 of file GHOST_SystemWayland.cc.
References GHOST_KEY_MODIFIER_NUM, GWL_Seat::key_depressed, keyboard_depressed_state_reset(), and GWL_KeyboardDepressedState::mods.
Referenced by keyboard_depressed_state_reset(), keyboard_handle_enter(), and keyboard_handle_keymap().
|
static |
Enter event.
Notification that this seat's keyboard focus is on a certain wl_surface.
Definition at line 6635 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, EVDEV_OFFSET, GHOST_SystemWayland::getMilliSeconds(), GHOST_kEventKeyDown, GHOST_kKeyUnknown, ghost_wl_surface_own_with_null_check(), ghost_wl_surface_user_data(), gwl_seat_key_repeat_timer_add(), gwl_seat_key_repeat_timer_fn(), GWL_KeyRepeatPlayload::key_code, GWL_KeyRepeatPlayload::key_data, GWL_Seat::key_depressed, GWL_Seat::key_repeat, GWL_Seat::keyboard, keyboard_depressed_state_key_event(), keyboard_depressed_state_push_events_from_change(), keyboard_depressed_state_reset(), keyboard_handle_enter(), keyboard_handle_key_repeat_cancel(), LOG, GWL_KeyRepeatPlayload::seat, GHOST_SystemWayland::seat_active_set(), GWL_SeatStateKeyboard::serial, GWL_Seat::system, GHOST_SystemWayland::timer_mutex, GWL_SeatStateKeyboard::wl, WL_ARRAY_FOR_EACH, wl_surface, GWL_Seat::xkb, xkb_map_gkey_or_scan_code(), and xkb_state_key_get_one_sym_with_fallback().
Referenced by keyboard_handle_enter().
|
static |
Definition at line 6886 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::data_source_serial, EVDEV_OFFSET, GHOST_kEventKeyDown, GHOST_kEventKeyUp, GHOST_kEventUnknown, ghost_wl_surface_user_data(), gwl_seat_key_repeat_timer_add(), gwl_seat_key_repeat_timer_fn(), gwl_seat_key_repeat_timer_remove(), GWL_KeyRepeatPlayload::key_code, GWL_KeyRepeatPlayload::key_data, GWL_Seat::key_repeat, GWL_Seat::keyboard, keyboard_depressed_state_key_event(), keyboard_handle_key(), LOG, GHOST_SystemWayland::ms_from_input_time(), GHOST_SystemWayland::pushEvent_maybe_pending(), GWL_KeyRepeatPlayload::seat, state, GWL_Seat::system, GHOST_SystemWayland::timer_mutex, USE_NON_LATIN_KB_WORKAROUND, GHOST_TEventKeyData::utf8_buf, GWL_SeatStateKeyboard::wl, wl_surface, GWL_Seat::xkb, xkb_compose_state_feed_and_get_utf8(), xkb_map_gkey_or_scan_code(), xkb_state_key_get_one_sym_without_modifiers(), and GWL_Seat::xkb_use_non_latin_workaround.
Referenced by keyboard_handle_key().
|
static |
Definition at line 6861 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_seat_key_repeat_timer_remove(), GWL_Seat::key_repeat, and keyboard_handle_key_repeat_cancel().
Referenced by gwl_seat_capability_keyboard_disable(), keyboard_handle_enter(), keyboard_handle_key_repeat_cancel(), keyboard_handle_leave(), and keyboard_handle_repeat_info().
|
static |
Restart the key-repeat timer.
| use_delay | When false, use the interval (prevents pause when the setting changes while the key is held). |
Definition at line 6876 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, gwl_seat_key_repeat_timer_add(), gwl_seat_key_repeat_timer_remove(), GWL_Seat::key_repeat, and keyboard_handle_key_repeat_reset().
Referenced by keyboard_handle_key_repeat_reset(), keyboard_handle_modifiers(), and keyboard_handle_repeat_info().
|
static |
Definition at line 6547 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, g_modifier_info_table, gwl_seat_key_layout_active_state_update_mask(), keyboard_depressed_state_reset(), keyboard_handle_keymap(), LOG, MOD_INDEX_NUM, MOD_INDEX_SHIFT, size(), GWL_Seat::xkb, GWL_ModifierInfo::xkb_id, GWL_Seat::xkb_keymap_mod_index, GWL_Seat::xkb_keymap_mod_index_mod2, and GWL_Seat::xkb_keymap_mod_index_numlock.
Referenced by keyboard_handle_keymap().
|
static |
Leave event.
Notification that this seat's keyboard focus is no longer on a certain wl_surface.
Definition at line 6720 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, ghost_wl_surface_own_with_null_check(), GWL_Seat::key_repeat, GWL_Seat::keyboard, keyboard_handle_key_repeat_cancel(), keyboard_handle_leave(), LOG, GWL_Seat::system, GHOST_SystemWayland::timer_mutex, GWL_SeatStateKeyboard::wl, and wl_surface.
Referenced by keyboard_handle_leave().
|
static |
Definition at line 7035 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::data_source_serial, gwl_seat_key_layout_active_state_update_mask(), GWL_Seat::key_repeat, keyboard_handle_key_repeat_reset(), keyboard_handle_modifiers(), LOG, GWL_Seat::system, GHOST_SystemWayland::timer_mutex, and GWL_Seat::xkb.
Referenced by keyboard_handle_modifiers().
|
static |
Definition at line 7074 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::key_repeat, keyboard_handle_key_repeat_cancel(), keyboard_handle_key_repeat_reset(), keyboard_handle_repeat_info(), LOG, GWL_Seat::system, and GHOST_SystemWayland::timer_mutex.
Referenced by keyboard_handle_repeat_info().
|
static |
Definition at line 2625 of file GHOST_SystemWayland.cc.
References memfd_create_sealed().
Referenced by ghost_wl_buffer_create_for_image(), and memfd_create_sealed().
|
static |
Definition at line 7918 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and output_handle_description().
Referenced by output_handle_description().
|
static |
Sent all information about output.
This event is sent after all other properties have been sent after binding to the output object and after any other property changes done after that. This allows changes to the output properties to be seen as atomic, even if they happen via multiple events.
Definition at line 7881 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, FRACTIONAL_DENOMINATOR, GHOST_ASSERT, LOG, output, output_handle_done(), and UNPACK2.
Referenced by output_handle_done(), and xdg_output_handle_done().
|
static |
Definition at line 7828 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, output, output_handle_geometry(), and transform().
Referenced by output_handle_geometry().
|
static |
Definition at line 7855 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, output, and output_handle_mode().
Referenced by output_handle_mode().
|
static |
Definition at line 7913 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and output_handle_name().
Referenced by output_handle_name().
|
static |
Definition at line 7905 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, output, and output_handle_scale().
Referenced by output_handle_scale().
|
static |
Definition at line 2479 of file GHOST_SystemWayland.cc.
References pointer_axis_as_index().
Referenced by pointer_axis_as_index(), pointer_handle_axis(), pointer_handle_axis_discrete(), and pointer_handle_axis_value120().
|
static |
Definition at line 4991 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_SeatStatePointerScroll::event_ms, gwl_pointer_handle_frame_event_add(), GWL_SeatStatePointerScroll::has_event_ms, index, LOG, GHOST_SystemWayland::ms_from_input_time(), pointer_axis_as_index(), GWL_Seat::pointer_events, pointer_handle_axis(), GWL_Seat::pointer_scroll, Scroll, GWL_SeatStatePointerScroll::smooth_xy, GWL_Seat::system, and WL_SERIAL_NONE.
Referenced by pointer_handle_axis().
|
static |
Definition at line 5309 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_SeatStatePointerScroll::discrete_xy, gwl_pointer_handle_frame_event_add(), index, LOG, pointer_axis_as_index(), GWL_Seat::pointer_events, pointer_handle_axis_discrete(), GWL_Seat::pointer_scroll, Scroll, and WL_SERIAL_NONE.
Referenced by pointer_handle_axis_discrete().
|
static |
Definition at line 5280 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointerScroll::axis_source, CLOG_DEBUG, LOG, pointer_handle_axis_source(), and GWL_Seat::pointer_scroll.
Referenced by pointer_handle_axis_source().
|
static |
Definition at line 5288 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_SeatStatePointerScroll::event_ms, GWL_SeatStatePointerScroll::has_event_ms, LOG, GHOST_SystemWayland::ms_from_input_time(), pointer_handle_axis_stop(), GWL_Seat::pointer_scroll, GWL_SeatStatePointerScroll::smooth_as_discrete, GWL_SeatStatePointerScroll_SmoothAsDiscrete::smooth_xy_accum, GWL_Seat::system, and GWL_Seat::use_pointer_scroll_smooth_as_discrete.
Referenced by pointer_handle_axis_stop().
|
static |
Definition at line 5327 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_SeatStatePointerScroll::discrete120_xy, gwl_pointer_handle_frame_event_add(), index, LOG, pointer_axis_as_index(), GWL_Seat::pointer_events, pointer_handle_axis_value120(), GWL_Seat::pointer_scroll, Scroll, and WL_SERIAL_NONE.
Referenced by pointer_handle_axis_value120().
|
static |
Definition at line 4950 of file GHOST_SystemWayland.cc.
References BTN_RANGE_MAX, BTN_RANGE_MIN, Button0_Down, CLOG_DEBUG, GWL_Seat::data_source_serial, gwl_pointer_handle_frame_event_add(), LOG, GHOST_SystemWayland::ms_from_input_time(), GWL_Seat::pointer_events, pointer_handle_button(), state, and GWL_Seat::system.
Referenced by pointer_handle_button().
|
static |
Definition at line 4825 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GHOST_WindowWayland::cursor_shape_refresh(), GWL_Seat::cursor_source_serial, GHOST_SystemWayland::getMilliSeconds(), GHOST_kCSDTypeBody, GHOST_kEventCursorMove, GHOST_TABLET_DATA_NONE, ghost_wl_surface_own_with_null_check(), ghost_wl_surface_user_data(), gwl_seat_state_pointer_surface_window_set(), LOG, GWL_Seat::pointer, pointer_handle_enter(), GWL_Seat::pointer_scroll, GHOST_SystemWayland::pushEvent_maybe_pending(), GHOST_SystemWayland::seat_active_set(), GWL_SeatStatePointer::serial, GWL_Seat::system, UNPACK2, GHOST_SystemWayland::use_window_frame_csd_get(), WL_FIXED_TO_INT_FOR_WINDOW_V2, wl_surface, and GWL_SeatStatePointer::xy.
Referenced by pointer_handle_enter().
|
static |
Definition at line 5073 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointerScroll::axis_source, Button0_Down, Button0_Up, Button1_Down, Button1_Up, Button2_Down, Button2_Up, Button3_Down, Button3_Up, Button4_Down, Button4_Up, Button5_Down, Button5_Up, Button6_Down, Button6_Up, GWL_SeatStatePointer::buttons, CLOG_DEBUG, GWL_SeatStatePointerScroll::discrete120_xy, GWL_SeatStatePointerScroll::discrete120_xy_accum, GWL_SeatStatePointerScroll::discrete_xy, GWL_SeatStatePointerScroll::event_ms, GWL_SeatStatePointer_Events::frame_pending, GHOST_SystemWayland::getMilliSeconds(), GHOST_ASSERT, GHOST_kEventButtonDown, GHOST_kEventButtonUp, GHOST_kEventCursorMove, GHOST_kEventWheelAxisHorizontal, GHOST_kEventWheelAxisVertical, GHOST_kTrackpadEventScroll, GHOST_TABLET_DATA_NONE, ghost_wl_surface_user_data(), gwl_pointer_events_ebutton, gwl_pointer_handle_frame_event_reset(), GWL_SeatStatePointerScroll::has_event_ms, GWL_SeatStatePointerScroll::inverted_xy, LOG, Motion, GWL_Seat::pointer, GWL_Seat::pointer_events, pointer_handle_frame(), GWL_Seat::pointer_scroll, GHOST_SystemWayland::pushEvent_maybe_pending(), GHOST_Buttons::set(), GWL_SeatStatePointerScroll::smooth_as_discrete, smooth_as_discrete_steps, GWL_SeatStatePointerScroll::smooth_xy, GWL_SeatStatePointerScroll_SmoothAsDiscrete::smooth_xy_accum, GWL_Seat::system, UNPACK2, GWL_Seat::use_pointer_scroll_smooth_as_discrete, GHOST_SystemWayland::use_window_frame_csd_get(), GWL_SeatStatePointer::wl, WL_FIXED_TO_INT_FOR_WINDOW_V2, wl_surface, and GWL_SeatStatePointer::xy.
Referenced by pointer_handle_frame().
|
static |
Definition at line 4890 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, ghost_wl_surface_own_with_null_check(), ghost_wl_surface_user_data(), gwl_seat_state_pointer_surface_window_set(), LOG, GWL_Seat::pointer, pointer_handle_leave(), GWL_Seat::system, GHOST_SystemWayland::use_window_frame_csd_get(), and wl_surface.
Referenced by pointer_handle_leave().
|
static |
Definition at line 4922 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, gwl_pointer_handle_frame_event_add(), LOG, Motion, GHOST_SystemWayland::ms_from_input_time(), GWL_Seat::pointer, GWL_Seat::pointer_events, pointer_handle_motion(), GWL_Seat::system, use_gnome_motion_missing_time_hack, WL_SERIAL_NONE, and GWL_SeatStatePointer::xy.
Referenced by pointer_handle_motion().
|
static |
Definition at line 7149 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, primary_selection_device_handle_data_offer(), primary_selection_offer_listener, and GWL_PrimarySelection_DataOffer::wp.
Referenced by primary_selection_device_handle_data_offer().
|
static |
Definition at line 7161 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_PrimarySelection::data_offer, GWL_PrimarySelection::data_offer_mutex, gwl_primary_selection_discard_offer(), lock, LOG, and primary_selection_device_handle_selection().
Referenced by primary_selection_device_handle_selection().
|
static |
Definition at line 7120 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, primary_selection_offer_offer(), GWL_PrimarySelection_DataOffer::types, and GWL_PrimarySelection_DataOffer::wp.
Referenced by primary_selection_offer_offer().
|
static |
Definition at line 7227 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_PrimarySelection::data_source, GWL_PrimarySelection::data_source_mutex, gwl_primary_selection_discard_source(), lock, LOG, primary_selection_source_cancelled(), and GWL_PrimarySelection_DataSource::wp.
Referenced by primary_selection_source_cancelled().
|
static |
Definition at line 7202 of file GHOST_SystemWayland.cc.
References GWL_PrimarySelection_DataSource::buffer_out, CLOG_DEBUG, CLOG_WARN, GWL_SimpleBuffer::data, GWL_SimpleBuffer::data_size, GWL_PrimarySelection::data_source, GWL_PrimarySelection::data_source_mutex, LOG, and primary_selection_source_send().
Referenced by primary_selection_source_send().
|
static |
Definition at line 2613 of file GHOST_SystemWayland.cc.
References pthread_set_min_priority().
Referenced by gwl_display_event_thread_create(), and pthread_set_min_priority().
|
static |
Definition at line 4130 of file GHOST_SystemWayland.cc.
References CLOG_WARN, LOG, read_buffer_from_data_offer(), read_file_as_buffer(), and GWL_DataOffer::wl.
Referenced by data_device_handle_drop(), read_buffer_from_data_offer(), and system_clipboard_get().
|
static |
Definition at line 4168 of file GHOST_SystemWayland.cc.
References CLOG_WARN, LOG, read_buffer_from_primary_selection_offer(), read_file_as_buffer(), and GWL_PrimarySelection_DataOffer::wp.
Referenced by read_buffer_from_primary_selection_offer(), and system_clipboard_get_primary_selection().
|
static |
A version of read which will read nbytes or as many bytes as possible, useful as the LIBC version may read less than requested.
Definition at line 2943 of file GHOST_SystemWayland.cc.
References read_exhaustive().
Referenced by read_exhaustive(), and read_file_as_buffer().
|
static |
Read from fd into a buffer which is returned. Use for files where seeking to determine the final size isn't supported (pipes for example).
Definition at line 2971 of file GHOST_SystemWayland.cc.
References len(), read_exhaustive(), and read_file_as_buffer().
Referenced by read_buffer_from_data_offer(), read_buffer_from_primary_selection_offer(), and read_file_as_buffer().
|
static |
Definition at line 4068 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, ghost_wl_ms_from_utime_pair(), ghost_wl_surface_user_data(), LOG, GHOST_SystemWayland::ms_from_input_time(), GWL_Seat::pointer, relative_pointer_handle_relative_motion(), relative_pointer_handle_relative_motion_impl(), GWL_Seat::system, GWL_SeatStatePointer::wl, wl_surface, and GWL_SeatStatePointer::xy.
Referenced by relative_pointer_handle_relative_motion().
|
static |
The caller is responsible for setting the value of seat->xy.
Definition at line 4041 of file GHOST_SystemWayland.cc.
References GHOST_Rect::b_, bounds(), GHOST_Rect::clampPoint(), GHOST_WindowWayland::getClientBounds(), GHOST_kEventCursorMove, GHOST_TABLET_DATA_NONE, GHOST_Rect::l_, GWL_Seat::pointer, GHOST_SystemWayland::pushEvent_maybe_pending(), GHOST_Rect::r_, relative_pointer_handle_relative_motion_impl(), GWL_Seat::system, GHOST_Rect::t_, UNPACK2, GWL_Seat::use_pointer_software_confine, GHOST_WindowWayland::wl_fixed_from_window(), WL_FIXED_TO_INT_FOR_WINDOW_V2, and GWL_SeatStatePointer::xy.
Referenced by relative_pointer_handle_relative_motion(), relative_pointer_handle_relative_motion_impl(), and setCursorPositionClientRelative_impl().
|
static |
Definition at line 2093 of file GHOST_SystemWayland.cc.
References rgba_straight_to_premul().
Referenced by ghost_wl_buffer_from_cursor_generator(), rgba_straight_to_premul(), and GHOST_SystemWayland::xdg_toplevel_icon_update().
|
static |
Definition at line 2103 of file GHOST_SystemWayland.cc.
References rgba_straight_to_premul_inverted().
Referenced by ghost_wl_buffer_from_cursor_generator(), and rgba_straight_to_premul_inverted().
|
static |
Definition at line 2088 of file GHOST_SystemWayland.cc.
References round_up_uint(), and x.
Referenced by ghost_wl_buffer_from_cursor_generator(), and round_up_uint().
|
static |
Definition at line 10673 of file GHOST_SystemWayland.cc.
References ELEM, GHOST_kGrabHide, GHOST_kGrabNormal, GHOST_kGrabWrap, seat_grab_state_from_mode(), GWL_SeatStateGrab::use_confine, and GWL_SeatStateGrab::use_lock.
Referenced by seat_grab_state_from_mode(), and GHOST_SystemWayland::window_cursor_grab_set().
|
static |
Definition at line 7679 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GHOST_ASSERT, gwl_seat_capability_keyboard_disable(), gwl_seat_capability_keyboard_enable(), gwl_seat_capability_pointer_disable(), gwl_seat_capability_pointer_enable(), gwl_seat_capability_touch_disable(), gwl_seat_capability_touch_enable(), LOG, seat_handle_capabilities(), and GWL_Seat::wl.
Referenced by seat_handle_capabilities().
|
static |
Definition at line 7715 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and seat_handle_name().
Referenced by seat_handle_name().
|
static |
Definition at line 10648 of file GHOST_SystemWayland.cc.
References GHOST_kGrabNormal, ghost_wl_surface_user_data(), GHOST_WindowWayland::scale_get(), setCursorGrab_use_software_confine(), use_gnome_confine_hack, and wl_surface.
Referenced by setCursorGrab_use_software_confine(), and GHOST_SystemWayland::window_cursor_grab_set().
|
staticnodiscard |
Definition at line 9910 of file GHOST_SystemWayland.cc.
References GHOST_SystemWayland::getMilliSeconds(), GHOST_kFailure, GHOST_kSuccess, relative_pointer_handle_relative_motion_impl(), setCursorPositionClientRelative_impl(), GWL_Seat::system, GHOST_WindowWayland::wl_fixed_from_window(), GWL_Seat::wp, x, and y.
Referenced by GHOST_SystemWayland::setCursorPosition(), GHOST_SystemWayland::setCursorPositionClientRelative(), and setCursorPositionClientRelative_impl().
|
static |
Definition at line 8012 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and shell_handle_ping().
Referenced by shell_handle_ping().
|
static |
Definition at line 3049 of file GHOST_SystemWayland.cc.
References string_elem_split_by_delim().
Referenced by ghost_wayland_current_desktop(), and string_elem_split_by_delim().
Definition at line 2113 of file GHOST_SystemWayland.cc.
References b, and sub_abs_u64().
Referenced by GHOST_SystemWayland::ms_from_input_time(), and sub_abs_u64().
|
static |
Definition at line 9531 of file GHOST_SystemWayland.cc.
References GWL_Seat::data_offer_copy_paste, GWL_Seat::data_offer_copy_paste_mutex, GHOST_ASSERT, gwl_display_seat_active_get(), read_buffer_from_data_offer(), system_clipboard_get(), system_clipboard_text_mime_type(), GWL_DataOffer::types, GWL_Display::wl, and wl_display_roundtrip.
Referenced by GHOST_SystemWayland::getClipboard(), GHOST_SystemWayland::getClipboardImage(), GHOST_SystemWayland::hasClipboardImage(), and system_clipboard_get().
|
static |
Definition at line 9469 of file GHOST_SystemWayland.cc.
References GWL_PrimarySelection::data_offer, GWL_PrimarySelection::data_offer_mutex, GHOST_ASSERT, gwl_display_seat_active_get(), GWL_Seat::primary_selection, read_buffer_from_primary_selection_offer(), system_clipboard_get_primary_selection(), system_clipboard_text_mime_type(), GWL_PrimarySelection_DataOffer::types, GWL_Display::wl, and wl_display_roundtrip.
Referenced by GHOST_SystemWayland::getClipboard(), and system_clipboard_get_primary_selection().
|
static |
Definition at line 9647 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), GWL_DataSource::buffer_out, GWL_Seat::data_source, data_source_listener, GWL_Seat::data_source_mutex, GWL_Seat::data_source_serial, ghost_wl_mime_send, gwl_display_seat_active_get(), gwl_simple_buffer_set_from_string(), lock, system_clipboard_put(), GWL_DataSource::wl, GWL_Display::wl, and GWL_Seat::wl.
Referenced by GHOST_SystemWayland::putClipboard(), and system_clipboard_put().
|
static |
Definition at line 9610 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), GWL_PrimarySelection_DataSource::buffer_out, GWL_PrimarySelection::data_source, GWL_PrimarySelection::data_source_mutex, GWL_Seat::data_source_serial, ghost_wl_mime_send, gwl_display_seat_active_get(), gwl_primary_selection_discard_source(), gwl_simple_buffer_set_from_string(), lock, GWL_Seat::primary_selection, primary_selection_source_listener, system_clipboard_put_primary_selection(), GWL_Display::wp, GWL_PrimarySelection_DataSource::wp, and GWL_Seat::wp.
Referenced by GHOST_SystemWayland::putClipboard(), and system_clipboard_put_primary_selection().
|
static |
Return a mime type which is supported by GHOST and exists in types (defined by the data offer).
Definition at line 9457 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), ghost_wl_mime_text_plain, ghost_wl_mime_text_utf8, and system_clipboard_text_mime_type().
Referenced by system_clipboard_get(), system_clipboard_get_primary_selection(), and system_clipboard_text_mime_type().
|
static |
Definition at line 6523 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and tablet_seat_handle_pad_added().
Referenced by tablet_seat_handle_pad_added().
|
static |
Definition at line 6494 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and tablet_seat_handle_tablet_added().
Referenced by tablet_seat_handle_tablet_added().
|
static |
Definition at line 6501 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, cursor_surface_listener, ghost_wl_surface_tag_cursor_tablet(), LOG, GWL_TabletTool::seat, GWL_Seat::system, tablet_seat_handle_tool_added(), tablet_tool_listener, GWL_TabletTool::wl, GHOST_SystemWayland::wl_compositor_get(), and GWL_Seat::wp.
Referenced by tablet_seat_handle_tool_added().
|
static |
Definition at line 6234 of file GHOST_SystemWayland.cc.
References BTN_STYLUS, BTN_STYLUS2, BTN_STYLUS3, CLOG_DEBUG, GWL_Seat::data_source_serial, gwl_tablet_tool_frame_event_add(), LOG, Motion, GWL_TabletTool::seat, state, Stylus1_Down, Stylus1_Up, Stylus2_Down, Stylus2_Up, Stylus3_Down, Stylus3_Up, and tablet_tool_handle_button().
Referenced by tablet_tool_handle_button().
|
static |
Definition at line 6010 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and tablet_tool_handle_capability().
Referenced by tablet_tool_handle_capability().
|
static |
Definition at line 6176 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, distance(), LOG, and tablet_tool_handle_distance().
Referenced by tablet_tool_handle_distance().
|
static |
Definition at line 6023 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and tablet_tool_handle_done().
Referenced by tablet_tool_handle_done().
|
static |
Definition at line 6121 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_Seat::data_source_serial, gwl_tablet_tool_frame_event_add(), LOG, GWL_TabletTool::seat, Stylus0_Down, and tablet_tool_handle_down().
Referenced by tablet_tool_handle_down().
|
static |
Definition at line 6343 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointer::buttons, CLOG_DEBUG, GHOST_WindowWayland::cursor_shape_refresh(), GWL_TabletTool::data, GWL_TabletTool::frame_pending, GHOST_ASSERT, GHOST_kEventButtonDown, GHOST_kEventButtonUp, GHOST_kEventCursorMove, GHOST_kEventWheelAxisVertical, ghost_wl_surface_user_data(), gwl_tablet_tool_ebutton, gwl_tablet_tool_frame_event_reset(), GWL_TabletTool::has_xy, LOG, Motion, GHOST_SystemWayland::ms_from_input_time(), Pressure, GWL_TabletTool::proximity, GHOST_SystemWayland::pushEvent_maybe_pending(), GWL_TabletTool::seat, GHOST_Buttons::set(), Stylus0_Down, Stylus0_Up, Stylus1_Down, Stylus1_Up, Stylus2_Down, Stylus2_Up, Stylus3_Down, Stylus3_Up, GWL_Seat::system, GWL_Seat::tablet, tablet_tool_handle_frame(), Tilt, UNPACK2, GHOST_SystemWayland::use_window_frame_csd_get(), Wheel, GWL_SeatStatePointer::wl, WL_FIXED_TO_INT_FOR_WINDOW_V2, WL_SERIAL_NONE, wl_surface, GWL_SeatStatePointer::xy, and GWL_TabletTool::xy.
Referenced by tablet_tool_handle_frame().
|
static |
Definition at line 6002 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and tablet_tool_handle_hardware_id_wacom().
Referenced by tablet_tool_handle_hardware_id_wacom().
|
static |
Definition at line 5994 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and tablet_tool_handle_hardware_serial().
Referenced by tablet_tool_handle_hardware_serial().
|
static |
Definition at line 6145 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, gwl_tablet_tool_frame_event_add(), GWL_TabletTool::has_xy, LOG, Motion, tablet_tool_handle_motion(), WL_SERIAL_NONE, x, GWL_TabletTool::xy, and y.
Referenced by tablet_tool_handle_motion().
|
static |
Definition at line 6161 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_TabletTool::data, float, gwl_tablet_tool_frame_event_add(), LOG, GHOST_TabletData::Pressure, Pressure, tablet_tool_handle_pressure(), and WL_SERIAL_NONE.
Referenced by tablet_tool_handle_pressure().
|
static |
Definition at line 6065 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GHOST_WindowWayland::cursor_shape_refresh(), GWL_Seat::cursor_source_serial, GWL_TabletTool::data, GWL_Seat::data_source_serial, ghost_wl_surface_own_with_null_check(), ghost_wl_surface_user_data(), gwl_seat_state_pointer_surface_window_set(), LOG, GHOST_TabletData::Pressure, GWL_TabletTool::proximity, GWL_TabletTool::seat, GHOST_SystemWayland::seat_active_set(), GWL_SeatStatePointer::serial, GWL_TabletTool::serial, GWL_Seat::system, GWL_Seat::tablet, tablet_tool_handle_proximity_in(), GWL_SeatStatePointer::wl, wl_surface, GHOST_TabletData::Xtilt, and GHOST_TabletData::Ytilt.
Referenced by tablet_tool_handle_proximity_in().
|
static |
Definition at line 6110 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, GWL_TabletTool::proximity, GWL_TabletTool::serial, and tablet_tool_handle_proximity_out().
Referenced by tablet_tool_handle_proximity_out().
|
static |
Definition at line 6027 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_CursorShape::device, LOG, GWL_TabletTool::seat, GWL_TabletTool::shape, tablet_tool_handle_removed(), GWL_TabletTool::wl, and GWL_Seat::wp.
Referenced by tablet_tool_handle_removed().
|
static |
Definition at line 6203 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, degrees(), LOG, and tablet_tool_handle_rotation().
Referenced by tablet_tool_handle_rotation().
|
static |
Definition at line 6210 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, position, and tablet_tool_handle_slider().
Referenced by tablet_tool_handle_slider().
|
static |
Definition at line 6183 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_TabletTool::data, float, gwl_tablet_tool_frame_event_add(), LOG, tablet_tool_handle_tilt(), Tilt, UNPACK2, WL_SERIAL_NONE, GHOST_TabletData::Xtilt, and GHOST_TabletData::Ytilt.
Referenced by tablet_tool_handle_tilt().
|
static |
Definition at line 5983 of file GHOST_SystemWayland.cc.
References GHOST_TabletData::Active, CLOG_DEBUG, GWL_TabletTool::data, LOG, tablet_tool_handle_type(), and tablet_tool_map_type().
Referenced by tablet_tool_handle_type().
|
static |
Definition at line 6135 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, gwl_tablet_tool_frame_event_add(), LOG, Stylus0_Up, tablet_tool_handle_up(), and WL_SERIAL_NONE.
Referenced by tablet_tool_handle_up().
|
static |
Definition at line 6216 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GWL_TabletTool::frame_pending, gwl_tablet_tool_frame_event_add(), LOG, tablet_tool_handle_wheel(), Wheel, and WL_SERIAL_NONE.
Referenced by tablet_tool_handle_wheel().
|
static |
Definition at line 2494 of file GHOST_SystemWayland.cc.
References GHOST_kTabletModeEraser, GHOST_kTabletModeStylus, GHOST_PRINT, and tablet_tool_map_type().
Referenced by tablet_tool_handle_type(), and tablet_tool_map_type().
|
static |
Definition at line 5926 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, GWL_Seat::touch, touch_seat_handle_cancel(), GWL_Seat::touch_state, GWL_SeatStatePointer::wl, and wl_surface.
Referenced by touch_seat_handle_cancel().
|
static |
Definition at line 5671 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, GHOST_WindowWayland::cursor_shape_refresh(), GWL_Seat::cursor_source_serial, ghost_wl_surface_own_with_null_check(), ghost_wl_surface_user_data(), gwl_seat_state_pointer_surface_window_set(), LOG, GHOST_SystemWayland::ms_from_input_time(), GWL_SeatStatePointer::serial, GWL_Seat::system, GWL_Seat::touch, touch_seat_handle_down(), GWL_Seat::touch_state, GWL_SeatStatePointer::wl, wl_surface, x, GWL_SeatStatePointer::xy, and y.
Referenced by touch_seat_handle_down().
|
static |
Definition at line 5821 of file GHOST_SystemWayland.cc.
References ARRAY_SIZE(), GWL_SeatStatePointer::buttons, CLOG_DEBUG, GHOST_ASSERT, GHOST_kButtonMaskLeft, GHOST_kEventButtonDown, GHOST_kEventButtonUp, GHOST_kEventCursorMove, GHOST_TABLET_DATA_NONE, ghost_wl_surface_user_data(), LOG, GHOST_SystemWayland::pushEvent_maybe_pending(), GHOST_Buttons::set(), GWL_Seat::system, GWL_Seat::touch, touch_seat_handle_frame(), GWL_Seat::touch_state, UNPACK2, GHOST_SystemWayland::use_window_frame_csd_get(), GWL_SeatStatePointer::wl, WL_FIXED_TO_INT_FOR_WINDOW_V2, WL_SERIAL_NONE, wl_surface, and GWL_SeatStatePointer::xy.
Referenced by touch_seat_handle_frame().
|
static |
Definition at line 5753 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, GHOST_SystemWayland::ms_from_input_time(), GWL_Seat::system, GWL_Seat::touch, touch_seat_handle_motion(), GWL_Seat::touch_state, x, GWL_SeatStatePointer::xy, and y.
Referenced by touch_seat_handle_motion().
|
static |
Definition at line 5954 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and touch_seat_handle_orientation().
Referenced by touch_seat_handle_orientation().
|
static |
Definition at line 5945 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and touch_seat_handle_shape().
Referenced by touch_seat_handle_shape().
|
static |
Definition at line 5735 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, GHOST_SystemWayland::ms_from_input_time(), GWL_Seat::system, touch_seat_handle_up(), and GWL_Seat::touch_state.
Referenced by touch_seat_handle_up().
|
static |
Definition at line 4684 of file GHOST_SystemWayland.cc.
References GWL_SeatStatePointer::buffer_scale, cursor_shape_refresh_for_pointer(), GWL_Cursor::custom_cursor_scale, gwl_seat_cursor_buffer_scale_calc(), output, GWL_SeatStatePointer::outputs, scale(), and update_cursor_scale().
Referenced by cursor_surface_handle_enter(), cursor_surface_handle_leave(), GHOST_SystemWayland::output_scale_update(), and update_cursor_scale().
|
static |
Definition at line 7802 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and xdg_output_handle_description().
Referenced by xdg_output_handle_description().
|
static |
Definition at line 7784 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, output, output_handle_done(), and xdg_output_handle_done().
Referenced by xdg_output_handle_done().
|
static |
Definition at line 7737 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, output, x, xdg_output_handle_logical_position(), and y.
Referenced by xdg_output_handle_logical_position().
|
static |
Definition at line 7750 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, FRACTIONAL_DENOMINATOR, GHOST_PRINT, LOG, output, use_gnome_confine_hack, and xdg_output_handle_logical_size().
Referenced by xdg_output_handle_logical_size().
|
static |
Definition at line 7795 of file GHOST_SystemWayland.cc.
References CLOG_DEBUG, LOG, and xdg_output_handle_name().
Referenced by xdg_output_handle_name().
|
static |
Definition at line 8586 of file GHOST_SystemWayland.cc.
References xdg_toplevel_icon_manager_handle_done().
Referenced by xdg_toplevel_icon_manager_handle_done().
|
static |
Definition at line 8575 of file GHOST_SystemWayland.cc.
References size(), GWL_Display::xdg, and xdg_toplevel_icon_manager_handle_icon_size().
Referenced by xdg_toplevel_icon_manager_handle_icon_size().
|
static |
Definition at line 6800 of file GHOST_SystemWayland.cc.
References CLOG_WARN, LOG, state, GHOST_TEventKeyData::utf8_buf, and xkb_compose_state_feed_and_get_utf8().
Referenced by gwl_seat_key_repeat_timer_fn(), keyboard_handle_key(), and xkb_compose_state_feed_and_get_utf8().
|
static |
Pick a fall-back layout when the active layout produces a key-symbol not recognized by xkb_map_gkey (e.g. Cyrillic), see: #120892. Returns #XKB_LAYOUT_INVALID when no configured layout could help.
In practice this means the user needs to have at least one keyboard layout available that maps characters A-Z (English any Latin alphabet layout).
Definition at line 2398 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, GHOST_kKeyUnknown, xkb_keymap_get_fallback_layout(), and xkb_map_gkey().
Referenced by gwl_seat_key_layout_active_state_update_mask(), and xkb_keymap_get_fallback_layout().
|
static |
If sym maps to a known GHOST_TKey, return it. Otherwise try the same key-code in layout_fallback and return its key-symbol if it maps to a known GHOST_TKey; otherwise return sym unchanged. See: #120892.
Definition at line 2447 of file GHOST_SystemWayland.cc.
References GHOST_ASSERT, GHOST_kKeyUnknown, xkb_keymap_get_one_sym_with_fallback(), and xkb_map_gkey().
Referenced by xkb_keymap_get_one_sym_with_fallback(), xkb_state_key_get_one_sym_with_fallback(), and xkb_state_key_get_one_sym_without_modifiers().
|
static |
Definition at line 2240 of file GHOST_SystemWayland.cc.
References GHOST_kKeyAccentGrave, GHOST_kKeyApp, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyCapsLock, GHOST_kKeyClear, GHOST_kKeyComma, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF1, GHOST_kKeyGrLess, GHOST_kKeyHome, GHOST_kKeyInsert, GHOST_kKeyLeftAlt, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyLeftControl, GHOST_kKeyLeftHyper, GHOST_kKeyLeftOS, GHOST_kKeyLeftShift, GHOST_kKeyLinefeed, GHOST_kKeyMediaFirst, GHOST_kKeyMediaLast, GHOST_kKeyMediaPlay, GHOST_kKeyMediaStop, GHOST_kKeyMinus, GHOST_kKeyNumLock, GHOST_kKeyNumpad0, GHOST_kKeyNumpadAsterisk, GHOST_kKeyNumpadEnter, GHOST_kKeyNumpadMinus, GHOST_kKeyNumpadPeriod, GHOST_kKeyNumpadPlus, GHOST_kKeyNumpadSlash, GHOST_kKeyPause, GHOST_kKeyPeriod, GHOST_kKeyPlus, GHOST_kKeyPrintScreen, GHOST_kKeyQuote, GHOST_kKeyRightAlt, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeyRightControl, GHOST_kKeyRightHyper, GHOST_kKeyRightOS, GHOST_kKeyRightShift, GHOST_kKeyScrollLock, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyTab, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, GHOST_kKeyUpPage, GXMAP, and xkb_map_gkey().
Referenced by xkb_keymap_get_fallback_layout(), xkb_keymap_get_one_sym_with_fallback(), xkb_map_gkey(), and xkb_map_gkey_or_scan_code().
|
static |
Map the keys using the users keyboard layout, if that fails fall back to physical locations. This is needed so users with keyboard layouts that don't expose GHOST_kKeyAccentGrave (typically the key under escape) in the layout can still use this key in keyboard shortcuts.
| key | The key's scan-code, compatible with values in linux/input-event-codes.h. |
Definition at line 2357 of file GHOST_SystemWayland.cc.
References GHOST_kKeyAccentGrave, GHOST_kKeyGrLess, GHOST_kKeyUnknown, GHOST_PRINT, KEY_102ND, KEY_GRAVE, xkb_map_gkey(), and xkb_map_gkey_or_scan_code().
Referenced by keyboard_handle_enter(), keyboard_handle_key(), and xkb_map_gkey_or_scan_code().
|
static |
#xkb_state_key_get_one_sym with xkb_keymap_get_one_sym_with_fallback applied to the result.
Definition at line 2472 of file GHOST_SystemWayland.cc.
References state, xkb_keymap_get_one_sym_with_fallback(), and xkb_state_key_get_one_sym_with_fallback().
Referenced by keyboard_handle_enter(), and xkb_state_key_get_one_sym_with_fallback().
|
static |
A version of #xkb_state_key_get_one_sym which returns the key without any modifiers pressed. Needed because GHOST_TKey uses these values as key-codes.
Definition at line 6749 of file GHOST_SystemWayland.cc.
References EVDEV_OFFSET, GHOST_ASSERT, KEY_0, KEY_1, xkb_keymap_get_one_sym_with_fallback(), and xkb_state_key_get_one_sym_without_modifiers().
Referenced by keyboard_handle_key(), and xkb_state_key_get_one_sym_without_modifiers().
|
static |
Definition at line 7993 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wp_color_manager_add().
|
static |
Definition at line 4650 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::cursor_shape_custom_set().
|
static |
Definition at line 4774 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_capability_pointer_enable(), and tablet_seat_handle_tool_added().
|
static |
Definition at line 4617 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wl_seat_update().
|
static |
Definition at line 4339 of file GHOST_SystemWayland.cc.
Referenced by data_device_handle_data_offer().
|
static |
Definition at line 4289 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::putClipboardImage(), and system_clipboard_put().
|
static |
Definition at line 2515 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::GHOST_SystemWayland().
|
constexpr |
From XKB internals, use for converting a scan-code from WAYLAND to a #xkb_keycode_t. Ideally this wouldn't need a local define.
Definition at line 470 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_key_layout_active_state_update_mask(), keyboard_handle_enter(), keyboard_handle_key(), and xkb_state_key_get_one_sym_without_modifiers().
|
constexpr |
Default size for pending event vector.
Definition at line 156 of file GHOST_SystemWayland.cc.
Referenced by gwl_display_event_thread_create(), and GHOST_SystemWayland::processEvents().
|
static |
Definition at line 384 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::getModifierKeys(), and keyboard_handle_keymap().
|
static |
Definition at line 10862 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::xdg_app_id_get().
|
staticconstexpr |
Definition at line 9692 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::getClipboardImage(), GHOST_SystemWayland::hasClipboardImage(), and GHOST_SystemWayland::putClipboardImage().
|
static |
Definition at line 2550 of file GHOST_SystemWayland.cc.
Referenced by data_device_handle_drop(), and data_device_handle_enter().
|
static |
Definition at line 2556 of file GHOST_SystemWayland.cc.
Referenced by dnd_events().
|
static |
Definition at line 2562 of file GHOST_SystemWayland.cc.
Referenced by system_clipboard_put(), and system_clipboard_put_primary_selection().
|
staticconstexpr |
Definition at line 2546 of file GHOST_SystemWayland.cc.
Referenced by data_device_handle_drop(), and system_clipboard_text_mime_type().
|
staticconstexpr |
Definition at line 2548 of file GHOST_SystemWayland.cc.
Referenced by data_device_handle_drop(), GHOST_SystemWayland::getClipboardImage(), and GHOST_SystemWayland::hasClipboardImage().
|
staticconstexpr |
Definition at line 2547 of file GHOST_SystemWayland.cc.
Referenced by data_device_handle_drop(), and system_clipboard_text_mime_type().
|
static |
Definition at line 10714 of file GHOST_SystemWayland.cc.
Referenced by ghost_wl_output_own(), and ghost_wl_output_tag().
|
static |
Definition at line 10716 of file GHOST_SystemWayland.cc.
Referenced by ghost_wl_surface_own_cursor_pointer(), and ghost_wl_surface_tag_cursor_pointer().
|
static |
Definition at line 10717 of file GHOST_SystemWayland.cc.
Referenced by ghost_wl_surface_own_cursor_tablet(), and ghost_wl_surface_tag_cursor_tablet().
|
static |
Definition at line 10715 of file GHOST_SystemWayland.cc.
Referenced by ghost_wl_surface_own(), and ghost_wl_surface_tag().
|
static |
Definition at line 813 of file GHOST_SystemWayland.cc.
Referenced by pointer_handle_frame().
|
static |
Map interfaces to initialization functions.
In general fundamental, low level objects such as the compositor and shared memory should be declared earlier and other interfaces that may use them should be declared later.
Definition at line 8737 of file GHOST_SystemWayland.cc.
Referenced by global_handle_add(), global_handle_remove(), gwl_registry_handler_from_interface_slot(), gwl_registry_handler_interface_slot_from_string(), and gwl_registry_handler_interface_slot_max().
|
static |
Definition at line 559 of file GHOST_SystemWayland.cc.
Referenced by tablet_tool_handle_frame().
|
constexpr |
Definition at line 557 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 106 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::getCapabilities(), and gwl_registry_wl_seat_add().
|
static |
Definition at line 7100 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_capability_keyboard_enable().
|
static |
Definition at line 111 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4634 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4662 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4353 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4306 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4111 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 6544 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 3410 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::getModifierKeys().
|
static |
Definition at line 7825 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4792 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 7146 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 7117 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 7199 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 8030 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 4035 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 7464 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 6491 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 5980 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 5637 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 7734 of file GHOST_SystemWayland.cc.
|
static |
Definition at line 8009 of file GHOST_SystemWayland.cc.
|
constexpr |
Definition at line 374 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::getModifierKeys(), and keyboard_handle_keymap().
|
static |
Definition at line 7926 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wl_output_add().
|
static |
Definition at line 5362 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_capability_pointer_enable().
|
static |
Definition at line 7186 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wl_seat_update().
|
static |
Definition at line 7134 of file GHOST_SystemWayland.cc.
Referenced by primary_selection_device_handle_data_offer().
|
static |
Definition at line 7239 of file GHOST_SystemWayland.cc.
Referenced by system_clipboard_put_primary_selection().
|
static |
Definition at line 8981 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::GHOST_SystemWayland().
|
static |
Definition at line 4099 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::window_cursor_grab_set().
|
static |
Definition at line 7721 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wl_seat_add().
|
static |
Definition at line 8018 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_xdg_wm_base_add().
|
staticconstexpr |
Number of smooth steps for a discrete step (matches X11 for touch-pads).
Definition at line 881 of file GHOST_SystemWayland.cc.
Referenced by pointer_handle_frame().
|
static |
Definition at line 6530 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wl_seat_update().
|
static |
Definition at line 6461 of file GHOST_SystemWayland.cc.
Referenced by tablet_seat_handle_tool_added().
|
static |
Definition at line 5962 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_capability_touch_enable().
|
static |
Always use software confine (not just in GNOME). Useful for developing with compositors that don't need this workaround.
Definition at line 185 of file GHOST_SystemWayland.cc.
Referenced by setCursorGrab_use_software_confine(), and xdg_output_handle_logical_size().
|
static |
Definition at line 220 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), and pointer_handle_motion().
|
static |
Definition at line 195 of file GHOST_SystemWayland.cc.
Referenced by GHOST_SystemWayland::GHOST_SystemWayland(), and gwl_seat_cursor_buffer_show().
|
constexpr |
Definition at line 270 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_xdg_decoration_manager_remove(), and gwl_registry_xdg_wm_base_remove().
|
constexpr |
Definition at line 272 of file GHOST_SystemWayland.cc.
Referenced by pointer_handle_axis(), pointer_handle_axis_discrete(), pointer_handle_axis_value120(), pointer_handle_motion(), tablet_tool_handle_frame(), tablet_tool_handle_motion(), tablet_tool_handle_pressure(), tablet_tool_handle_tilt(), tablet_tool_handle_up(), tablet_tool_handle_wheel(), and touch_seat_handle_frame().
|
static |
Definition at line 7809 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_wl_output_update().
|
static |
Definition at line 8591 of file GHOST_SystemWayland.cc.
Referenced by gwl_registry_xdg_toplevel_icon_manager_add().