Skip to content

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Nov 12, 2025

From the commit message:

We don't want to consume events let alone grab the actor
before we actually are sure that we will handle this drag.
This will improve situations where multiple gestures
can be started from the same position most notably
in the multitasking view drag and drop of window
clones and (once the new touchbackend is merged) swipe
left and right for switching workspaces.
This will also allow to use a separate click action instead
of having to implement clicking in the dnd action as well.

This will not cause any change in behavior right now because touch egg is grabbing events directly from the hardware but it will improve the behavior once our own touchscreen backend is merged and it will make things like one finger swipe up to close the window and still supporting drag and drop possible.

There is no reason to do this.
We don't want to consume events let alone grab the actor
before we actually are sure that we will handle this drag.
This will improve situations where multiple gestures
can be started from the same position most notably
in the multitasking view drag and drop of window
clones and (once the new touchbackend is merged) swipe
left and right for switching workspaces.
This will also allow to use a separate click action instead
of having to implement clicking in the dnd action as well.
@leolost2605 leolost2605 force-pushed the leolost/drag-drop-action-dont-consume branch from 6dbfbd1 to 6c1b00e Compare November 12, 2025 12:35
@leolost2605 leolost2605 requested a review from a team November 12, 2025 12:39
Comment on lines 318 to +319
private bool on_event (Clutter.Event event) {
assert (dragging);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private bool on_event (Clutter.Event event) {
assert (dragging);
private bool on_event (Clutter.Event event) requires (dragging) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants