mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Merge branch 'fix-drag-icon-listener-abort' of https://github.com/ranicharradi/kitty
This commit is contained in:
commit
80ec1e36ea
1 changed files with 12 additions and 0 deletions
12
glfw/wl_window.c
vendored
12
glfw/wl_window.c
vendored
|
|
@ -3334,9 +3334,21 @@ drag_icon_surface_handle_enter(void *data UNUSED, struct wl_surface *surface UNU
|
|||
static void
|
||||
drag_icon_surface_handle_leave(void *data UNUSED, struct wl_surface *surface UNUSED, struct wl_output *output UNUSED) {}
|
||||
|
||||
#ifdef WL_SURFACE_PREFERRED_BUFFER_SCALE_SINCE_VERSION
|
||||
static void
|
||||
drag_icon_surface_handle_preferred_buffer_scale(void *data UNUSED, struct wl_surface *surface UNUSED, int32_t scale UNUSED) {}
|
||||
|
||||
static void
|
||||
drag_icon_surface_handle_preferred_buffer_transform(void *data UNUSED, struct wl_surface *surface UNUSED, uint32_t transform UNUSED) {}
|
||||
#endif
|
||||
|
||||
static const struct wl_surface_listener drag_icon_surface_listener = {
|
||||
.enter = drag_icon_surface_handle_enter,
|
||||
.leave = drag_icon_surface_handle_leave,
|
||||
#ifdef WL_SURFACE_PREFERRED_BUFFER_SCALE_SINCE_VERSION
|
||||
.preferred_buffer_scale = &drag_icon_surface_handle_preferred_buffer_scale,
|
||||
.preferred_buffer_transform = &drag_icon_surface_handle_preferred_buffer_transform,
|
||||
#endif
|
||||
};
|
||||
|
||||
#define dr _glfw.wl.drag.data_requests[i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue