Luflosi
ac30ef3e0c
Fix typo
...
Fixes #1601 .
2019-12-11 21:02:01 +01:00
Camilla Löwy
a43f545677
Add dependency name hints to CMake error messages
...
Fixes #1605 .
2019-12-10 10:56:39 +01:00
Camilla Löwy
59055d585f
Update minimum required CMake version to 3.1
2019-12-09 23:48:26 +01:00
Camilla Löwy
8a1f4940fc
Remove reference to non-existent CMake variable
2019-12-09 23:48:26 +01:00
Camilla Löwy
5f4a6f689a
Gather all macOS specific CMake properties
2019-12-09 23:48:26 +01:00
Camilla Löwy
c016b26852
Remove non-GUI binaries from GUI-only setup
2019-12-09 23:48:26 +01:00
Camilla Löwy
db76abb63c
Make target-specific define target-specific
2019-12-09 23:48:26 +01:00
Camilla Löwy
c194193797
Replace CMake generator expression with variable
...
Generator expressions are amazing but best used in moderation.
2019-12-09 23:35:51 +01:00
Camilla Löwy
9dc365f192
Merge GCC/Clang specific CMake blocks
2019-12-09 23:35:51 +01:00
Camilla Löwy
c81def70be
Remove unneccessary example target property
...
Bundle icon file copying is performed by MACOSX_PACKAGE_LOCATION.
2019-12-09 23:35:51 +01:00
Camilla Löwy
197193ac0b
Fix source list for Objective-C fix
2019-12-09 23:35:51 +01:00
Camilla Löwy
135d87aa3c
Remove inclusion of X11 extension header paths
...
They should be found in X11/extensions on every platform.
2019-12-09 23:35:50 +01:00
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.
2019-12-09 23:35:50 +01:00
Camilla Löwy
9486ec0c02
Fix source list for -Wdeclaration-after-statement
...
The context creation files were not included on platforms other than
Win32.
2019-12-09 23:35:50 +01:00
Camilla Löwy
dff6253ca7
Add installation of HTML documentation
2019-12-09 23:35:50 +01:00
Camilla Löwy
bc7b19cbd1
Remove tab character
2019-12-09 23:35:50 +01:00
Camilla Löwy
ce9d124243
Remove command-line options from GUI-only test
2019-12-09 23:35:50 +01:00
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.
2019-12-09 23:35:40 +01:00
Camilla Löwy
d74c18117d
Remove dependency on platform header paths
...
The tests and examples should not need these paths.
2019-12-09 23:33:37 +01:00
Camilla Löwy
92c70b2a83
Rename CMake variable for GUI-only programs
...
Hopefully this is less ambiguous.
2019-12-09 23:33:37 +01:00
Camilla Löwy
7dd14a4b20
Fix .gitignore entries for VS with CMake
2019-12-09 23:33:37 +01:00
Camilla Löwy
fa60269245
NSGL: Fix disabling of Retina resolution
...
It appears the default is now YES.
Fixes #1442 .
2019-12-09 22:25:59 +01:00
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 .
2019-12-09 22:25:59 +01:00
Camilla Löwy
b3544ca43e
Cocoa: Update outdated comment
2019-12-09 18:46:31 +01:00
Camilla Löwy
382943f2b0
Add Xcode section to .gitignore file
2019-12-09 18:46:31 +01:00
Emmanuel Gil Peyrot
ef6189f348
Wayland: Unset the cursor name on border exit
...
It would previously conserve the last name it had before leaving the
border, sometimes desynchronising with what it should have been.
2019-12-08 21:58:11 +01:00
Camilla Löwy
df4bda44fc
Wayland: Fix pointing hand cursor shape
...
Related to #1432 .
(cherry picked from commit 80fde12fda )
2019-12-03 17:19:14 +01:00
Emmanuel Gil Peyrot
50218fbf7e
Wayland: Don’t update cursor position in the frame
...
That way the application only sees the cursor moving when it is inside
of its area, it won’t go back to the top or left side when trying to
resize the window or just hovering the fallback decorations.
(cherry picked from commit a80788c17f )
2019-12-03 17:17:36 +01:00
Emmanuel Gil Peyrot
3a2c0aaa27
Wayland: Don’t reload the cursor on every pointer motion
...
Previously, any pointer motion in the window decorations when using the
fallback implementation would obtain the wl_cursor again, and do the
attach danse for no benefit.
This will ultimately allow animated cursors to not reset to the first
frame on motion, once these will be implemented.
(cherry picked from commit a9f674e719 )
2019-12-03 17:17:33 +01:00
Camilla Löwy
7dbdd2e6a5
Add more standard cursors
...
This adds the standard cursors for diagonal and omnidirectional
resize/move and operation-not-allowed. It also adds new (better?) names
for the horizontal and vertical resize/move and pointing hand cursors.
References:
- https://developer.apple.com/documentation/appkit/nscursor
- https://stackoverflow.com/questions/10733228/
- https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setsystemcursor
- https://freedesktop.org/wiki/Specifications/cursor-spec/
- https://tronche.com/gui/x/xlib/appendix/b/
Related to #427 .
2019-11-28 22:24:00 +01:00
Camilla Löwy
80fde12fda
Wayland: Fix pointing hand cursor shape
...
Related to #1432 .
2019-11-25 18:55:50 +01:00
Emmanuel Gil Peyrot
a80788c17f
Wayland: Don’t update cursor position in the frame
...
That way the application only sees the cursor moving when it is inside
of its area, it won’t go back to the top or left side when trying to
resize the window or just hovering the fallback decorations.
2019-11-21 13:53:08 +01:00
Emmanuel Gil Peyrot
a9f674e719
Wayland: Don’t reload the cursor on every pointer motion
...
Previously, any pointer motion in the window decorations when using the
fallback implementation would obtain the wl_cursor again, and do the
attach danse for no benefit.
This will ultimately allow animated cursors to not reset to the first
frame on motion, once these will be implemented.
2019-11-21 13:52:37 +01:00
Camilla Löwy
b5d4f24f74
Move CMake uninstall template file to CMake subdir
2019-11-14 21:49:14 +01:00
Camilla Löwy
2bac7ee8da
Update .gitignore file
...
This adds missing entries for Ninja and the unavoidable clutter of the
modern Doxygen CMake module.
(cherry picked from commit d861d7bffe )
2019-11-14 21:34:40 +01:00
Camilla Löwy
4116db14fd
Cleanup .gitignore file somewhat
...
(cherry picked from commit c42d8f3e5b )
2019-11-14 21:34:35 +01:00
Camilla Löwy
e3c83f684f
Add initial CODEOWNERS file
...
(cherry picked from commit 50a6270e55 )
2019-11-14 21:34:31 +01:00
Camilla Löwy
0ecc84182c
Add initial GH support file
...
(cherry picked from commit b804379463 )
2019-11-14 21:34:27 +01:00
Camilla Löwy
b4cc6101ed
Add initial .mailmap file
...
(cherry picked from commit 359758bb53 )
2019-11-14 21:34:10 +01:00
Camilla Löwy
7c33fb22fd
X11: Assume 96 DPI if RandR monitor size is zero
...
This falls back to calculating the monitor physical size from the
current resolution and the default X11 DPI when the physical size
returned by RandR is zero.
(cherry picked from commit e96dc5d219 )
2019-11-14 21:34:04 +01:00
Camilla Löwy
52b77030e4
Cocoa: Fix full screen window iconification
...
Iconification (miniaturization) of undecorated windows stopped working
unless the window has the NSWindowStyleMaskMiniaturizable style.
(cherry picked from commit 2c519709be )
2019-11-14 21:34:01 +01:00
Camilla Löwy
e662492169
Cocoa: Cleanup
...
Readability fix, does not affect generated code.
(cherry picked from commit bd452016be )
2019-11-14 21:33:56 +01:00
Camilla Löwy
b3c2023ebc
Cocoa: Fix multiple methods warning
...
This fixes a warning due to us using bare ids and
NSCollectionLayoutAnchor having a message with the same name.
(cherry picked from commit bac15f9449 )
2019-11-14 21:33:52 +01:00
Camilla Löwy
129a5ccb19
Cocoa: Process events after window destruction
...
On macOS a destroyed window remained on screen until the next time
events were processed. This makes the behavior more consistent with
other platforms.
Fixes #1412 .
(cherry picked from commit c819f27ce3 )
2019-11-14 21:33:48 +01:00
Camilla Löwy
25af31528c
Cocoa: Add comments for Cocoa symbol macros
...
(cherry picked from commit 94cb0347ab )
2019-11-14 21:33:43 +01:00
Camilla Löwy
5ea34d62bf
Cleanup
...
(cherry picked from commit 953a1c3f8b )
2019-11-14 21:33:36 +01:00
Guillaume Racicot
7a10e6439c
Set C standard at 99 for all example targets
...
Closes #1593 .
(cherry picked from commit 70a3104c49 )
2019-11-14 21:33:34 +01:00
Guillaume Racicot
8c46a3e9f9
Set C standard at 99 for all test targets
...
Related to #1593 .
(cherry picked from commit bc5523e994 )
2019-11-14 21:33:31 +01:00
Camilla Löwy
82effcb7ba
Make events test output only UTF-8 in C locale
...
(cherry picked from commit 20e522cdf4 )
2019-11-14 21:32:37 +01:00
thewoz
11db404fa1
Add canonical build directory to .gitignore
...
Closes #1595 .
(cherry picked from commit c5f1ca3e41 )
2019-11-14 21:30:17 +01:00