Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pirvi-public
glfw
Commits
552e40a4
Commit
552e40a4
authored
Dec 19, 2017
by
Emmanuel Gil Peyrot
Committed by
linkmauve
Feb 25, 2018
Browse files
Add wl_subcompositor support
parent
79e16bac
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wl_init.c
View file @
552e40a4
...
...
@@ -527,6 +527,11 @@ static void registryHandleGlobal(void* data,
wl_registry_bind
(
registry
,
name
,
&
wl_compositor_interface
,
_glfw
.
wl
.
compositorVersion
);
}
else
if
(
strcmp
(
interface
,
"wl_subcompositor"
)
==
0
)
{
_glfw
.
wl
.
subcompositor
=
wl_registry_bind
(
registry
,
name
,
&
wl_subcompositor_interface
,
1
);
}
else
if
(
strcmp
(
interface
,
"wl_shm"
)
==
0
)
{
_glfw
.
wl
.
shm
=
...
...
src/wl_platform.h
View file @
552e40a4
...
...
@@ -192,6 +192,7 @@ typedef struct _GLFWlibraryWayland
struct
wl_display
*
display
;
struct
wl_registry
*
registry
;
struct
wl_compositor
*
compositor
;
struct
wl_subcompositor
*
subcompositor
;
struct
wl_shell
*
shell
;
struct
wl_shm
*
shm
;
struct
wl_seat
*
seat
;
...
...
Write
Preview
Supports
Markdown
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