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
5b65b9b8
Commit
5b65b9b8
authored
Dec 19, 2017
by
Emmanuel Gil Peyrot
Committed by
linkmauve
Feb 25, 2018
Browse files
Prevent a crash when giving focus to a non-GLFWwindow surface
parent
552e40a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wl_init.c
View file @
5b65b9b8
...
...
@@ -54,6 +54,8 @@ static void pointerHandleEnter(void* data,
return
;
_GLFWwindow
*
window
=
wl_surface_get_user_data
(
surface
);
if
(
!
window
)
return
;
_glfw
.
wl
.
pointerSerial
=
serial
;
_glfw
.
wl
.
pointerFocus
=
window
;
...
...
@@ -280,6 +282,8 @@ static void keyboardHandleEnter(void* data,
return
;
_GLFWwindow
*
window
=
wl_surface_get_user_data
(
surface
);
if
(
!
window
)
return
;
_glfw
.
wl
.
keyboardFocus
=
window
;
_glfwInputWindowFocus
(
window
,
GLFW_TRUE
);
...
...
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