diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-12-16 17:17:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 17:17:31 +0000 |
| commit | 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch) | |
| tree | 64e78342cf08e5f9ad87bd5f6ea36233133be7bb /src/helpers/XWaylandStubs.hpp | |
| parent | 7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff) | |
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to 'src/helpers/XWaylandStubs.hpp')
| -rw-r--r-- | src/helpers/XWaylandStubs.hpp | 145 |
1 files changed, 76 insertions, 69 deletions
diff --git a/src/helpers/XWaylandStubs.hpp b/src/helpers/XWaylandStubs.hpp index 97147f76..256709c7 100644 --- a/src/helpers/XWaylandStubs.hpp +++ b/src/helpers/XWaylandStubs.hpp @@ -28,68 +28,69 @@ typedef struct { } xcb_size_hints_t; typedef unsigned int xcb_window_t; -typedef enum xcb_stack_mode_t { - XCB_STACK_MODE_ABOVE = 0, - XCB_STACK_MODE_BELOW = 1, - XCB_STACK_MODE_TOP_IF = 2, +typedef enum xcb_stack_mode_t +{ + XCB_STACK_MODE_ABOVE = 0, + XCB_STACK_MODE_BELOW = 1, + XCB_STACK_MODE_TOP_IF = 2, XCB_STACK_MODE_BOTTOM_IF = 3, - XCB_STACK_MODE_OPPOSITE = 4 + XCB_STACK_MODE_OPPOSITE = 4 } xcb_stack_mode_t; struct wlr_xwayland { - struct wlr_xwayland_server *server; - struct wlr_xwm *xwm; - struct wlr_xwayland_cursor *cursor; + struct wlr_xwayland_server* server; + struct wlr_xwm* xwm; + struct wlr_xwayland_cursor* cursor; - const char *display_name; + const char* display_name; - struct wl_display *wl_display; - struct wlr_compositor *compositor; - struct wlr_seat *seat; + struct wl_display* wl_display; + struct wlr_compositor* compositor; + struct wlr_seat* seat; - void *data; + void* data; }; struct wlr_xwayland_surface { - xcb_window_t window_id; - struct wlr_xwm *xwm; - uint32_t surface_id; - - struct wl_list link; - struct wl_list stack_link; - struct wl_list unpaired_link; - - struct wlr_surface *surface; - int16_t x, y; - uint16_t width, height; - uint16_t saved_width, saved_height; - bool override_redirect; - bool mapped; - - char *title; - char *_class; - char *instance; - char *role; - char *startup_id; - pid_t pid; - bool has_utf8_title; - - struct wl_list children; // wlr_xwayland_surface::parent_link - struct wlr_xwayland_surface *parent; - struct wl_list parent_link; // wlr_xwayland_surface::children - - xcb_atom_t *window_type; - size_t window_type_len; - - xcb_atom_t *protocols; - size_t protocols_len; - - uint32_t decorations; - xcb_icccm_wm_hints_t *hints; - xcb_size_hints_t *size_hints; - - bool pinging; - struct wl_event_source *ping_timer; + xcb_window_t window_id; + struct wlr_xwm* xwm; + uint32_t surface_id; + + struct wl_list link; + struct wl_list stack_link; + struct wl_list unpaired_link; + + struct wlr_surface* surface; + int16_t x, y; + uint16_t width, height; + uint16_t saved_width, saved_height; + bool override_redirect; + bool mapped; + + char* title; + char* _class; + char* instance; + char* role; + char* startup_id; + pid_t pid; + bool has_utf8_title; + + struct wl_list children; // wlr_xwayland_surface::parent_link + struct wlr_xwayland_surface* parent; + struct wl_list parent_link; // wlr_xwayland_surface::children + + xcb_atom_t* window_type; + size_t window_type_len; + + xcb_atom_t* protocols; + size_t protocols_len; + + uint32_t decorations; + xcb_icccm_wm_hints_t* hints; + xcb_size_hints_t* size_hints; + + bool pinging; + struct wl_event_source* ping_timer; // _NET_WM_STATE bool modal; @@ -127,35 +128,41 @@ struct wlr_xwayland_surface { }; struct wlr_xwayland_surface_configure_event { - struct wlr_xwayland_surface *surface; - int16_t x, y; - uint16_t width, height; - uint16_t mask; // xcb_config_window_t + struct wlr_xwayland_surface* surface; + int16_t x, y; + uint16_t width, height; + uint16_t mask; // xcb_config_window_t }; struct wlr_xwayland_minimize_event { - struct wlr_xwayland_surface *surface; - bool minimize; + struct wlr_xwayland_surface* surface; + bool minimize; }; -inline void wlr_xwayland_destroy(wlr_xwayland*) { } +inline void wlr_xwayland_destroy(wlr_xwayland*) {} -inline void wlr_xwayland_surface_configure(wlr_xwayland_surface*, int, int, int, int) { } +inline void wlr_xwayland_surface_configure(wlr_xwayland_surface*, int, int, int, int) {} -inline bool wlr_surface_is_xwayland_surface(void*) { return false; } +inline bool wlr_surface_is_xwayland_surface(void*) { + return false; +} -inline void wlr_xwayland_surface_activate(wlr_xwayland_surface*, bool) { } +inline void wlr_xwayland_surface_activate(wlr_xwayland_surface*, bool) {} -inline void wlr_xwayland_surface_restack(wlr_xwayland_surface*, int, xcb_stack_mode_t) { } +inline void wlr_xwayland_surface_restack(wlr_xwayland_surface*, int, xcb_stack_mode_t) {} -inline wlr_xwayland_surface* wlr_xwayland_surface_from_wlr_surface(void*) { return nullptr; } +inline wlr_xwayland_surface* wlr_xwayland_surface_from_wlr_surface(void*) { + return nullptr; +} -inline void wlr_xwayland_surface_close(wlr_xwayland_surface*) { } +inline void wlr_xwayland_surface_close(wlr_xwayland_surface*) {} -inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) { } +inline void wlr_xwayland_surface_set_fullscreen(wlr_xwayland_surface*, bool) {} -inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface *, bool) { } +inline void wlr_xwayland_surface_set_minimized(wlr_xwayland_surface*, bool) {} -inline bool wlr_backend_is_x11(void*) { return false; } +inline bool wlr_backend_is_x11(void*) { + return false; +} -inline void wlr_x11_output_create(void*) { }
\ No newline at end of file +inline void wlr_x11_output_create(void*) {}
\ No newline at end of file |
