Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pirvi-public
glfw
Commits
a199efae
Commit
a199efae
authored
Dec 03, 2017
by
Emmanuel Gil Peyrot
Committed by
linkmauve
Jan 29, 2018
Browse files
Wayland: Emit an error when wl_shell is absent or unusable
parent
14ad79f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wl_window.c
View file @
a199efae
...
...
@@ -236,10 +236,21 @@ static GLFWbool createSurface(_GLFWwindow* window,
static
GLFWbool
createShellSurface
(
_GLFWwindow
*
window
)
{
if
(
!
_glfw
.
wl
.
shell
)
{
_glfwInputError
(
GLFW_PLATFORM_ERROR
,
"Wayland: wl_shell protocol not available"
);
return
GLFW_FALSE
;
}
window
->
wl
.
shellSurface
=
wl_shell_get_shell_surface
(
_glfw
.
wl
.
shell
,
window
->
wl
.
surface
);
if
(
!
window
->
wl
.
shellSurface
)
{
_glfwInputError
(
GLFW_PLATFORM_ERROR
,
"Wayland: Shell surface creation failed"
);
return
GLFW_FALSE
;
}
wl_shell_surface_add_listener
(
window
->
wl
.
shellSurface
,
&
shellSurfaceListener
,
...
...
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