mirror of
https://github.com/labwc/labwc.git
synced 2026-02-12 04:27:57 -05:00
cursor: Restore drag icon after the move to scene-graph
Also move everything DnD related to src/dnd.c
This commit is contained in:
parent
3e1a800c14
commit
deb658b672
6 changed files with 241 additions and 55 deletions
27
include/dnd.h
Normal file
27
include/dnd.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef __LAB_DND_H
|
||||
#define __LAB_DND_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct seat;
|
||||
struct wlr_drag_icon;
|
||||
struct wlr_scene_tree;
|
||||
|
||||
struct drag_icon {
|
||||
struct wlr_scene_tree *icon_tree;
|
||||
struct wlr_drag_icon *icon;
|
||||
struct {
|
||||
struct wl_listener map;
|
||||
struct wl_listener commit;
|
||||
struct wl_listener unmap;
|
||||
struct wl_listener destroy;
|
||||
} events;
|
||||
};
|
||||
|
||||
void dnd_init(struct seat *seat);
|
||||
void dnd_icons_show(struct seat *seat, bool show);
|
||||
void dnd_icons_move(struct seat *seat, double x, double y);
|
||||
void dnd_finish(struct seat *seat);
|
||||
|
||||
#endif /* __LAB_DND_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue