forked from dhewg/libsdl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.Fixed a memory leak inside XInput2 code
2.Replaced XKeycodeToKeysym with XkbKeycodeToKeysym since XKeycodeToKeysym is deprecated in newer X11 version 3.Rewrote testime.c since it was disabled after SDL_compat.c removal 4.Take into account common arguments also in testrelative.c
- Loading branch information
Showing
11 changed files
with
232 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,7 +265,11 @@ X11_DispatchEvent(_THIS) | |
if (videodata->key_layout[keycode] == SDL_SCANCODE_UNKNOWN) { | ||
int min_keycode, max_keycode; | ||
XDisplayKeycodes(display, &min_keycode, &max_keycode); | ||
#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM | ||
keysym = XkbKeycodeToKeysym(display, keycode, 0, 0); | ||
#else | ||
keysym = XKeycodeToKeysym(display, keycode, 0); | ||
#endif | ||
fprintf(stderr, | ||
"The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <[email protected]> X11 KeyCode %d (%d), X11 KeySym 0x%lX (%s).\n", | ||
keycode, keycode - min_keycode, keysym, | ||
|
@@ -563,7 +567,7 @@ X11_PumpEvents(_THIS) | |
XResetScreenSaver(data->display); | ||
data->screensaver_activity = now; | ||
} | ||
} | ||
} | ||
|
||
/* Keep processing pending events */ | ||
while (X11_Pending(data->display)) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,6 +210,7 @@ X11_InitXinput2Multitouch(_THIS) { | |
} | ||
} | ||
} | ||
XIFreeDeviceInfo(info); | ||
#endif | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.