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

SDL_DROPFILE event doesn't work #661

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

SDL_DROPFILE event doesn't work #661

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2012-09-03 14:31:45 +0000, wrote:

Created attachment 943
The code I have used to test SDL_DROPFILE

Hello,
I have tried to use SDL_DROPFILE, but even with

SDL_EventState(SDL_DROPFILE, SDL_ENABLE);

the SDL_DROPFILE event is not issued when I try to drop any kind of file on the window.
I have latest SDL, compiled one week ago.
I am running Archlinux x86_64 with xserver 1.12.4 and Xfce 4.10. Ask me if you need more information.

On 2012-09-04 14:24:47 +0000, Philipp Wiesemann wrote:

Dropping files seems currently only implemented for Cocoa. You can check this by searching for SDL_SendDropFile in the SDL source code itself.

On 2012-09-05 06:52:26 +0000, wrote:

(In reply to comment # 1)

Dropping files seems currently only implemented for Cocoa. You can check this
by searching for SDL_SendDropFile in the SDL source code itself.

Thank you.

On 2012-09-30 05:56:09 +0000, Philipp Wiesemann wrote:

Created attachment 962
patch for dropfile support on Microsoft Windows

I attached a patch which tries to implement the dropfile support for Microsoft Windows. If applied SDL_DROPFILE events should be sent for single or multiple files which are dropped on window.

The handling on Windows side is always activated (cursor will change and so on) because there is no connection between SDL_EventState() and the window setup. I assumed this additional overhead would be small and can be ignored.

On 2012-09-30 11:11:25 +0000, Sam Lantinga wrote:

Thanks Philipp, your patch is applied:
http://hg.libsdl.org/SDL/rev/62d0193a7a02

On 2012-09-30 11:17:19 +0000, Sam Lantinga wrote:

FYI, for anyone who has time to take a crack at the X11 DnD protocol, here's a good example of it's use:
http://www.edwardrosten.com/code/dist/x_clipboard-1.1/paste.cc

On 2013-07-12 22:15:25 +0000, Ryan C. Gordon wrote:

(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.0, Priority 2.

This means we're in the final stretch for an official SDL 2.0.0 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.0 release, and generally be organized about what we're aiming to ship.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.

On 2015-02-10 19:56:59 +0000, Philipp Wiesemann wrote:

It was implemented for X11 in March 2013:
https://hg.libsdl.org/SDL/rev/ccc0d3207639

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

No branches or pull requests

1 participant