Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag Enter & Drag Exit #10435

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Drag Enter & Drag Exit #10435

wants to merge 4 commits into from

Conversation

NeeEoo
Copy link

@NeeEoo NeeEoo commented Jul 31, 2024

Provides Drag Enter and Drag Exit events for files being dragged
I'm opening this as a draft until Windows support is added

Description

This adds the events:
SDL_EVENT_DRAG_ENTER
SDL_EVENT_DRAG_EXIT

The current supported platforms are:
Linux X11
Linux Wayland (TODO: testing needed)
MacOS

Planned platforms:
Windows (Requires #10415)

There are currently no errors on building for any platform when running it through Github Workflows

This code was originally coded for SDL2 so some style updates to the code might need to be done.

@Dragon-Baroque
Copy link
Contributor

draggingExited returns void not NSDragOperation.

@@ -1346,7 +1346,7 @@ static void X11_DispatchEvent(SDL_VideoDevice *_this, XEvent *xevent)
data->xdnd_req = X11_PickTargetFromAtoms(display, xevent->xclient.data.l[2], xevent->xclient.data.l[3], xevent->xclient.data.l[4]);
}
}
else if (xevent.xclient.message_type == videodata->XdndLeave) {

This comment was marked as off-topic.

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