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
bf09dba9
Commit
bf09dba9
authored
Oct 26, 2017
by
Camilla Löwy
Browse files
Cleanup
parent
16bf8721
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/cocoa_window.m
View file @
bf09dba9
...
...
@@ -1375,7 +1375,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
if
(
window
->
monitor
)
releaseMonitor
(
window
);
_glfwInputWindowMonitor
Change
(
window
,
monitor
);
_glfwInputWindowMonitor
(
window
,
monitor
);
// HACK: Allow the state cached in Cocoa to catch up to reality
// TODO: Solve this in a less terrible way
...
...
src/internal.h
View file @
bf09dba9
...
...
@@ -779,7 +779,7 @@ void _glfwInputWindowCloseRequest(_GLFWwindow* window);
* @param[in] monitor The new desired monitor, or `NULL`.
* @ingroup event
*/
void
_glfwInputWindowMonitor
Change
(
_GLFWwindow
*
window
,
_GLFWmonitor
*
monitor
);
void
_glfwInputWindowMonitor
(
_GLFWwindow
*
window
,
_GLFWmonitor
*
monitor
);
/*! @brief Notifies shared code of a physical key event.
* @param[in] window The window that received the event.
...
...
src/win32_window.c
View file @
bf09dba9
...
...
@@ -1477,7 +1477,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
if
(
window
->
monitor
)
releaseMonitor
(
window
);
_glfwInputWindowMonitor
Change
(
window
,
monitor
);
_glfwInputWindowMonitor
(
window
,
monitor
);
if
(
monitor
)
{
...
...
src/window.c
View file @
bf09dba9
...
...
@@ -108,7 +108,7 @@ void _glfwInputWindowCloseRequest(_GLFWwindow* window)
window
->
callbacks
.
close
((
GLFWwindow
*
)
window
);
}
void
_glfwInputWindowMonitor
Change
(
_GLFWwindow
*
window
,
_GLFWmonitor
*
monitor
)
void
_glfwInputWindowMonitor
(
_GLFWwindow
*
window
,
_GLFWmonitor
*
monitor
)
{
window
->
monitor
=
monitor
;
}
...
...
src/wl_window.c
View file @
bf09dba9
...
...
@@ -642,7 +642,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
{
wl_shell_surface_set_toplevel
(
window
->
wl
.
shellSurface
);
}
_glfwInputWindowMonitor
Change
(
window
,
monitor
);
_glfwInputWindowMonitor
(
window
,
monitor
);
}
int
_glfwPlatformWindowFocused
(
_GLFWwindow
*
window
)
...
...
src/x11_window.c
View file @
bf09dba9
...
...
@@ -2377,7 +2377,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
if
(
window
->
monitor
)
releaseMonitor
(
window
);
_glfwInputWindowMonitor
Change
(
window
,
monitor
);
_glfwInputWindowMonitor
(
window
,
monitor
);
updateNormalHints
(
window
,
width
,
height
);
updateWindowMode
(
window
);
...
...
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