FreeRDP
Loading...
Searching...
No Matches
sdl_x11.hpp
1
19#pragma once
20
21#include <SDL3/SDL.h>
22
23#include <vector>
24
25/* Native X11 helpers for RAIL client. */
26
27/* Check if an X11 compositing manager is active. */
28[[nodiscard]] bool sdl_x11_has_compositor();
29
30/* Start native interactive window move/resize via _NET_WM_MOVERESIZE. */
31bool sdl_x11_begin_move_size(SDL_Window* window, int netDirection);
32
33/* Restack windows to top-to-bottom order via _NET_RESTACK_WINDOW. */
34bool sdl_x11_restack_windows(const std::vector<SDL_Window*>& topToBottom);
35
36/* Set _GTK_FRAME_EXTENTS on window. */
37bool sdl_x11_set_frame_extents(SDL_Window* window, int left, int right, int top, int bottom);
38
39/* Set X11 bit gravity on window. */
40bool sdl_x11_set_bit_gravity(SDL_Window* window, int gravity);
41
42/* Send synthetic ButtonRelease if WM grab consumed physical release. */
43bool sdl_x11_send_left_button_release(SDL_Window* window);