mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-06 13:29:48 -05:00
First attempt at selection support
This commit is contained in:
parent
4cca349349
commit
ae6c8a6d73
5 changed files with 242 additions and 6 deletions
|
|
@ -682,6 +682,10 @@ notify_button(struct wl_input_device *device,
|
|||
if (state && device->grab == NULL) {
|
||||
wlsc_surface_raise(surface);
|
||||
|
||||
if (wd->selection)
|
||||
wlsc_selection_set_focus(wd->selection,
|
||||
&surface->surface, time);
|
||||
|
||||
wl_input_device_start_grab(device,
|
||||
&device->motion_grab,
|
||||
button, time);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue