Camilla Löwy
8149a5fc00
X11: Cleanup
...
We can use C99 now and also we will need the event mask below.
ago%!(EXTRA string=6 years)
Luflosi
74a46dfa0c
Use the correct type in a for loop
...
The `sizeof()` operator has the type `size_t`, so the `for` loop
iterating over it should use the same type.
Closes #1614 .
ago%!(EXTRA string=6 years)
Camilla Löwy
4ec7daf3e9
Cocoa: Replace display link with IOKit query
...
This removes the final dependency on CoreVideo, using a display link to
get the refresh rate of monitors where Core Graphics report a refresh
rate of zero. Instead we now query the I/O registry directly, similarly
to what the display link does at creation.
Thanks to @OneSadCookie for pointers to this solution.
ago%!(EXTRA string=6 years)
Camilla Löwy
c3ca88055f
NSGL: Simulate vsync for occluded windows
...
This only supports a swap interval of zero or one, as that is all NSGL
supports.
ago%!(EXTRA string=6 years)
Camilla Löwy
54e8e0b092
NSGL: Remove problematic swap interval workaround
...
Fixes #1483 .
ago%!(EXTRA string=6 years)
Camilla Löwy
b4a8eb9b19
Cocoa: Only create per-monitor display link once
...
The display link query is not specific to any particular display mode
and so only needs to be done once.
The next step is to replace the display link altogether by querying
IOKit directly, which is what the display link does.
ago%!(EXTRA string=6 years)
Camilla Löwy
28773a069e
Cocoa: Fix undeclared selector warnings
ago%!(EXTRA string=6 years)
Camilla Löwy
73a8ebb691
X11: Cleanup
...
This is technically valid but misleading and may inspire future bugs
like the one fixed by 0b652a44d2
.
ago%!(EXTRA string=6 years)
Camilla Löwy
4e70c95aa3
X11: Cleanup
...
The window state action is not an atom.
ago%!(EXTRA string=6 years)
Camilla Löwy
9db156421f
X11: Fix updating GLFW_FLOATING on a hidden window
ago%!(EXTRA string=6 years)
Camilla Löwy
0b652a44d2
X11: Fix invalid read when clearing GLFW_FLOATING
ago%!(EXTRA string=6 years)
Camilla Löwy
9b6d68ec70
X11: Fix missing checks for EWMH attention atoms
ago%!(EXTRA string=6 years)
Camilla Löwy
4837b78ffe
X11: Fix maximization of hidden windows
...
This fixes glfwMaximizeWindow having no effect on hidden windows by
manually appending the maximization states to the EWMH state property.
ago%!(EXTRA string=6 years)
Camilla Löwy
bc3be40f21
Enable strict C99 for non-VS compilers
ago%!(EXTRA string=6 years)
Camilla Löwy
da3f20d860
Win32: Add missing include for wcscmp
ago%!(EXTRA string=6 years)
Camilla Löwy
fb0028c766
Win32: Enable Unicode mode for all compilers
ago%!(EXTRA string=6 years)
Camilla Löwy
994c3b4e48
Cocoa: Remove stale GCC workaround
ago%!(EXTRA string=6 years)
Camilla Löwy
18307467b4
Gather CMake setup of configuration header
ago%!(EXTRA string=6 years)
Camilla Löwy
49c5d837b4
Replace CMake threads variable with modern target
ago%!(EXTRA string=6 years)
Camilla Löwy
8a5fd0c5a4
Replace ad-hoc CMake code with DEFINE_SYMBOL
...
This target property does what we were doing manually.
ago%!(EXTRA string=6 years)
Camilla Löwy
a5ed740d9d
Fix use of CMake 3.13 command target_link_options
ago%!(EXTRA string=6 years)
Camilla Löwy
a264d32987
Replace CMake list variables with target_sources
ago%!(EXTRA string=6 years)
Camilla Löwy
081484ed34
Fix POSIX conformance issues for clock_gettime
...
CLOCK_MONOTONIC should not be used as a feature macro. The POSIX
feature macros are provided by unistd.h. CLOCK_MONOTONIC is provided by
time.h. CLOCK_MONOTONIC requires _POSIX_C_SOURCE >= 199309L on some
systems.
ago%!(EXTRA string=6 years)
Camilla Löwy
506a6aafde
Formatting
ago%!(EXTRA string=6 years)
Camilla Löwy
a875a536b7
Cocoa: Fix duplicate conversion of title string
ago%!(EXTRA string=6 years)
Camilla Löwy
2551829f75
Win32: Add VERSIONINFO resource to GLFW DLL
...
This will let people see the API version in the Explorer property box.
ago%!(EXTRA string=6 years)
Camilla Löwy
7e03bce138
Fix typo
ago%!(EXTRA string=6 years)
Luflosi
ac30ef3e0c
Fix typo
...
Fixes #1601 .
ago%!(EXTRA string=6 years)
Camilla Löwy
a43f545677
Add dependency name hints to CMake error messages
...
Fixes #1605 .
ago%!(EXTRA string=6 years)
Camilla Löwy
59055d585f
Update minimum required CMake version to 3.1
ago%!(EXTRA string=6 years)
Camilla Löwy
8a1f4940fc
Remove reference to non-existent CMake variable
ago%!(EXTRA string=6 years)
Camilla Löwy
5f4a6f689a
Gather all macOS specific CMake properties
ago%!(EXTRA string=6 years)
Camilla Löwy
c016b26852
Remove non-GUI binaries from GUI-only setup
ago%!(EXTRA string=6 years)
Camilla Löwy
db76abb63c
Make target-specific define target-specific
ago%!(EXTRA string=6 years)
Camilla Löwy
c194193797
Replace CMake generator expression with variable
...
Generator expressions are amazing but best used in moderation.
ago%!(EXTRA string=6 years)
Camilla Löwy
9dc365f192
Merge GCC/Clang specific CMake blocks
ago%!(EXTRA string=6 years)
Camilla Löwy
c81def70be
Remove unneccessary example target property
...
Bundle icon file copying is performed by MACOSX_PACKAGE_LOCATION.
ago%!(EXTRA string=6 years)
Camilla Löwy
197193ac0b
Fix source list for Objective-C fix
ago%!(EXTRA string=6 years)
Camilla Löwy
135d87aa3c
Remove inclusion of X11 extension header paths
...
They should be found in X11/extensions on every platform.
ago%!(EXTRA string=6 years)
Camilla Löwy
2fb336268f
Shorten name of Info.plist template file
...
Our template file is not simply a copy of the file included in CMake and
so should not be named as if it was.
ago%!(EXTRA string=6 years)
Camilla Löwy
9486ec0c02
Fix source list for -Wdeclaration-after-statement
...
The context creation files were not included on platforms other than
Win32.
ago%!(EXTRA string=6 years)
Camilla Löwy
dff6253ca7
Add installation of HTML documentation
ago%!(EXTRA string=6 years)
Camilla Löwy
bc7b19cbd1
Remove tab character
ago%!(EXTRA string=6 years)
Camilla Löwy
ce9d124243
Remove command-line options from GUI-only test
ago%!(EXTRA string=6 years)
Camilla Löwy
f6d44cedfd
Trust CMake to do the right thing for static libs
...
CMake understands what private library dependencies for a static library
means and handles it correctly.
ago%!(EXTRA string=6 years)
Camilla Löwy
d74c18117d
Remove dependency on platform header paths
...
The tests and examples should not need these paths.
ago%!(EXTRA string=6 years)
Camilla Löwy
92c70b2a83
Rename CMake variable for GUI-only programs
...
Hopefully this is less ambiguous.
ago%!(EXTRA string=6 years)
Camilla Löwy
7dd14a4b20
Fix .gitignore entries for VS with CMake
ago%!(EXTRA string=6 years)
Camilla Löwy
fa60269245
NSGL: Fix disabling of Retina resolution
...
It appears the default is now YES.
Fixes #1442 .
ago%!(EXTRA string=6 years)
Camilla Löwy
6e6805000a
Cocoa: Fix pre-window-creation event processing
...
Polling the event queue before NSApp had been allowed to finish
launching, in our case by starting our self-terminating run loop,
triggered an assertion inside NSApplication.
This fix, which makes all event processing functions capable of starting
it, makes that assertion less likely.
A more Cocoa-friendly fix would be to finish launching NSApp during
glfwInit and let people annoyed by the menu bar disabled it with
GLFW_COCOA_MENUBAR. That may not be suitable for 3.3-stable, though.
Fixes #1543 .
ago%!(EXTRA string=6 years)