decompose wl_backend.c: extract wl_grabs.c

This commit is contained in:
Window Maker 2026-06-02 14:25:01 +02:00
parent e19562a07c
commit 9f69f7930d
3 changed files with 25 additions and 19 deletions

View File

@ -181,7 +181,8 @@ wmaker_SOURCES += \
backend/wayland/wl_xdisplay.c \
backend/wayland/wl_stubs.c \
backend/wayland/wl_clipboard.c \
backend/wayland/wl_dnd.c
backend/wayland/wl_dnd.c \
backend/wayland/wl_grabs.c
endif
if USE_NESTED_FUNC

View File

@ -3588,24 +3588,6 @@ wm_dock_app_remove(WNativeWindow id)
/* ------------------------------------------------------------------ */
/* Frame buffer (pixman + wlr_scene_buffer) */
/* ------------------------------------------------------------------ */
/* Key / button grabs */
/* ------------------------------------------------------------------ */
void
wl_key_grab(WNativeWindow win, unsigned int keycode,
unsigned int modifier, int owner_events)
{ (void)win; (void)keycode; (void)modifier; (void)owner_events; }
void wl_key_ungrab_all(WNativeWindow win) { (void)win; }
void
wl_button_grab(WNativeWindow win, unsigned int button,
unsigned int modifier, unsigned int event_mask,
int owner_events)
{ (void)win; (void)button; (void)modifier; (void)event_mask; (void)owner_events; }
void wl_button_ungrab_all(WNativeWindow win) { (void)win; }
/* ------------------------------------------------------------------ */
/* Phase 14: pointer input event handlers */

View File

@ -0,0 +1,23 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "wl_types.h"
/* ------------------------------------------------------------------ */
/* Key / button grabs */
/* ------------------------------------------------------------------ */
void
wl_key_grab(WNativeWindow win, unsigned int keycode,
unsigned int modifier, int owner_events)
{ (void)win; (void)keycode; (void)modifier; (void)owner_events; }
void wl_key_ungrab_all(WNativeWindow win) { (void)win; }
void
wl_button_grab(WNativeWindow win, unsigned int button,
unsigned int modifier, unsigned int event_mask,
int owner_events)
{ (void)win; (void)button; (void)modifier; (void)event_mask; (void)owner_events; }
void wl_button_ungrab_all(WNativeWindow win) { (void)win; }