1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2025-08-05 20:28:50 -04:00
glfw/src
Camilla Löwy 0d599026d0 Cocoa: Fix clearing of unrelated window style bits
Whenever GLFW changed the window style mask, a new mask was created
from scratch based on the attributes set on the GLFW window object.
This caused us to potentially clear unrelated window style bits.

This was always wrong but became a critical issue when Cocoa began
throwing an exception if an application cleared the
NSWindowStyleMaskFullScreen while the window is in macOS fullscreen.

This commit reworks all style mask editing so it only changes the
relevant bits, preserving all others.

This is only a narrow bug fix to prevent crashes, intended for the
stable branch.  Our interaction with macOS fullscreen is still very
poor.  The next step after this is a set of patches that improve the
interaction between the current API and macOS fullscreen.

Fixes #1886
Fixes #2110
2022-07-07 23:47:48 +02:00
..
CMakeLists.txt Share X11 fd polling logic with Wayland 2022-03-03 22:23:57 +01:00
cocoa_init.m Cocoa: Fix EGL and OSMesa not being unloaded 2022-04-28 21:14:11 +02:00
cocoa_joystick.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
cocoa_joystick.m Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
cocoa_monitor.m Cocoa: Fix AirPlay causing harmless init error 2022-03-18 00:45:12 +01:00
cocoa_platform.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
cocoa_time.c Make timer init part of platform API 2021-10-12 12:54:36 +02:00
cocoa_time.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
cocoa_window.m Cocoa: Fix clearing of unrelated window style bits 2022-07-07 23:47:48 +02:00
context.c Fix glfwMakeContextCurrent using uninitialized TLS 2022-04-21 15:56:01 +02:00
egl_context.c X11: Fix sonames for loaded libraries on NetBSD 2022-03-04 00:00:59 +01:00
glfw.rc.in Win32: Add VERSIONINFO resource to GLFW DLL 2019-12-11 21:02:08 +01:00
glx_context.c X11: Fix sonames for loaded libraries on NetBSD 2022-03-04 00:00:59 +01:00
init.c Move URI list parsing to shared code 2022-04-03 20:09:39 +02:00
input.c Add basic assertions for event API arguments 2022-06-08 22:14:38 +02:00
internal.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
linux_joystick.c Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
linux_joystick.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
mappings.h Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
mappings.h.in Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
monitor.c Add basic assertions for event API arguments 2022-06-08 22:14:38 +02:00
nsgl_context.m Formatting 2022-03-02 19:38:41 +01:00
null_init.c Add runtime platform selection 2021-10-13 21:47:11 +02:00
null_joystick.c Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
null_joystick.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
null_monitor.c Add runtime platform selection 2021-10-13 21:47:11 +02:00
null_platform.h Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
null_window.c Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
osmesa_context.c X11: Fix sonames for loaded libraries on NetBSD 2022-03-04 00:00:59 +01:00
platform.c Gather Null specific platform selection logic 2021-11-25 23:24:39 +01:00
platform.h Simplify struct stitching for sync primitives 2022-04-28 21:54:25 +02:00
posix_module.c Make dynamic module loading part of platform API 2021-10-12 12:54:36 +02:00
posix_poll.c POSIX: Fix undeclared function warning on Cygwin 2022-03-04 13:37:38 +01:00
posix_poll.h Share X11 fd polling logic with Wayland 2022-03-03 22:23:57 +01:00
posix_thread.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
posix_thread.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
posix_time.c Make timer init part of platform API 2021-10-12 12:54:36 +02:00
posix_time.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
vulkan.c X11: Fix sonames for loaded libraries on NetBSD 2022-03-04 00:00:59 +01:00
wgl_context.c Formatting 2022-03-02 19:38:41 +01:00
win32_init.c Win32: Simplify window class handling 2022-06-09 18:39:37 +02:00
win32_joystick.c Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
win32_joystick.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
win32_module.c Make dynamic module loading part of platform API 2021-10-12 12:54:36 +02:00
win32_monitor.c Win32: Fix calls to encoding compatibility macros 2022-03-10 19:31:28 +01:00
win32_platform.h Win32: Simplify window class handling 2022-06-09 18:39:37 +02:00
win32_thread.c Win32: Make thread functions backend independent 2021-10-12 12:54:36 +02:00
win32_thread.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
win32_time.c Win32: Remove timeGetTime fallback for timer 2021-10-12 12:54:37 +02:00
win32_time.h Add runtime platform selection 2021-10-13 21:47:11 +02:00
win32_window.c Win32: Simplify window class handling 2022-06-09 18:39:37 +02:00
window.c Add basic assertions for event API arguments 2022-06-08 22:14:38 +02:00
wl_init.c Wayland: Cleanup 2022-06-21 16:00:33 +02:00
wl_monitor.c Wayland: Fix reporting of monitor scale changes 2022-06-21 20:46:06 +02:00
wl_platform.h Wayland: Use enum type to store enum value 2022-06-21 21:49:06 +02:00
wl_window.c Wayland: Do not decorate fullscreen windows 2022-06-21 21:50:51 +02:00
x11_init.c X11: Fix previous error handler not being restored 2022-06-08 22:14:38 +02:00
x11_monitor.c Add runtime platform selection 2021-10-13 21:47:11 +02:00
x11_platform.h X11: Fix previous error handler not being restored 2022-06-08 22:14:38 +02:00
x11_window.c Fix return type of functions returning bool values 2022-06-08 22:14:38 +02:00
xkb_unicode.c Clean up internal Unicode code point handling 2021-12-31 13:27:22 +01:00
xkb_unicode.h Clean up internal Unicode code point handling 2021-12-31 13:27:22 +01:00