Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
c792268d
Commit
c792268d
authored
Jul 12, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented X11 system window manager info for SDL 1.3. It's simple. Really.
parent
18f003c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
SDL_syswm.h
include/SDL_syswm.h
+0
-18
SDL_x11window.c
src/video/x11/SDL_x11window.c
+8
-2
No files found.
include/SDL_syswm.h
View file @
c792268d
...
...
@@ -106,24 +106,6 @@ struct SDL_SysWMinfo
{
Display
*
display
;
/**< The X11 display */
Window
window
;
/**< The X11 display window */
/**
* These locking functions should be called around
* any X11 functions using the display variable.
* They lock the event thread, so should not be
* called around event functions or from event filters.
*/
/*@{*/
void
(
*
lock_func
)
(
void
);
void
(
*
unlock_func
)
(
void
);
/*@}*/
/**
* Introduced in SDL 1.0.2.
*/
/*@{*/
Window
fswindow
;
/**< The X11 fullscreen window */
Window
wmwindow
;
/**< The X11 managed input window */
/*@}*/
}
x11
;
}
info
;
};
...
...
src/video/x11/SDL_x11window.c
View file @
c792268d
...
...
@@ -1014,8 +1014,14 @@ X11_DestroyWindow(_THIS, SDL_Window * window)
SDL_bool
X11_GetWindowWMInfo
(
_THIS
,
SDL_Window
*
window
,
SDL_SysWMinfo
*
info
)
{
if
(
info
->
version
.
major
<=
SDL_MAJOR_VERSION
)
{
/* FIXME! */
SDL_WindowData
*
data
=
(
SDL_WindowData
*
)
window
->
driverdata
;
Display
*
display
=
data
->
videodata
->
display
;
if
(
info
->
version
.
major
==
SDL_MAJOR_VERSION
&&
info
->
version
.
minor
==
SDL_MINOR_VERSION
)
{
info
->
subsystem
=
SDL_SYSWM_X11
;
info
->
info
.
x11
.
display
=
display
;
info
->
info
.
x11
.
window
=
data
->
xwindow
;
return
SDL_TRUE
;
}
else
{
SDL_SetError
(
"Application not compiled with SDL %d.%d
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment