macOS: Workaround for switching from fullscreen to windowed mode with the titlebar hidden causing window resizing to not work.
Fixes #711
This commit is contained in:
parent
db5aa36f44
commit
3ee22e545e
@ -18,6 +18,9 @@ Changelog
|
||||
- macOS: Use a custom mouse cursor that shows up well on both light and dark backgrounds
|
||||
(:iss:`359`)
|
||||
|
||||
- macOS: Workaround for switching from fullscreen to windowed mode with the
|
||||
titlebar hidden causing window resizing to not work. (:iss:`711`)
|
||||
|
||||
- Fix triple-click to select line not working when the entire line is filled
|
||||
(:iss:`703`)
|
||||
|
||||
|
||||
@ -679,6 +679,9 @@ toggle_fullscreen(PYNOARG) {
|
||||
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
|
||||
if (w->before_fullscreen.is_set) glfwSetWindowMonitor(w->handle, NULL, w->before_fullscreen.x, w->before_fullscreen.y, w->before_fullscreen.w, w->before_fullscreen.h, mode->refreshRate);
|
||||
else glfwSetWindowMonitor(w->handle, NULL, 0, 0, 600, 400, mode->refreshRate);
|
||||
#ifdef __APPLE__
|
||||
if (glfwGetCocoaWindow) cocoa_make_window_resizable(glfwGetCocoaWindow(w->handle), OPT(macos_window_resizable));
|
||||
#endif
|
||||
Py_RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user