We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2326 - Improve Performance in SDL_x11events.c file.
Summary: Improve Performance in SDL_x11events.c file.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-24 06:28 UTC by Nitz
Modified: 2014-02-21 11:39 UTC (History)
3 users (show)

See Also:


Attachments
patch for SDL_x11events.c and SDL_x11video.h file (1.39 KB, patch)
2014-02-21 03:01 UTC, Nitz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nitz 2013-12-24 06:28:43 UTC
In SDL_x11events.c file, SDL_x11video.h header include twice
Even Include guards are used to protect any kind of error but
still this should be removed as it is creating confusion.

In SDL_x11events.c file the are two functions declaration :
int SDL_GetNumTouch(void);
void SDL_dbus_screensaver_tickle(_THIS);

SDL_GetNumTouch function definition is not in SDL only declaration happen
So SDL_GetNumTouch declaration should be removed from SDL_x11events.c file.

SDL_dbus_screensaver_tickle function declaration is in SDL_x11events.c file
but it would be better if this declaration get move to SDL_x11video.h file.

Thanks...
Comment 1 Gabriel Jacobo 2014-02-20 20:18:01 UTC
If you can provide these changes in patch form I'll review and incorporate them.
Comment 2 Nitz 2014-02-21 03:01:41 UTC
Created attachment 1569 [details]
patch for SDL_x11events.c and SDL_x11video.h file
Comment 3 Gabriel Jacobo 2014-02-21 11:39:15 UTC
https://hg.libsdl.org/SDL/rev/437c4e5961e0

BTW, what you attached is not a patch :)