Camilla Löwy
463ef7eb71
Cocoa: Fix handling of analog joystick buttons
...
The reported state was not clamped to [0,1], i.e. GLFW_RELEASE and
GLFW_PRESS.
Fixes #1385 .
ago%!(EXTRA string=6 years)
Camilla Löwy
51ca41dd9f
Cocoa: Add missing IOHID page and usages
...
Related to #1385 .
ago%!(EXTRA string=6 years)
Camilla Löwy
530b37f4db
Cocoa: Disable automatic tabbing for GLFW windows
...
Related to #1250 .
ago%!(EXTRA string=6 years)
Camilla Löwy
78e6a0063d
X11: Fix EWMH state update for hidden windows
...
The EWMH window state code assumed the window was mapped.
Fixes #1358 .
ago%!(EXTRA string=6 years)
Camilla Löwy
b41cd34143
Cleanup
ago%!(EXTRA string=6 years)
Camilla Löwy
d5ab3e919a
Cleanup
...
Replace client area with content area.
ago%!(EXTRA string=6 years)
iamCaveLamp
a46104ee69
Removed duplicates of centerCursor function
ago%!(EXTRA string=6 years)
Camilla Löwy
3d748cf530
Cleanup
...
Related to #1381 .
ago%!(EXTRA string=6 years)
Doug Binks
babafc13db
WGL: Add array-based call to wglGetPixelFormatAttribivARB
...
This improves performance of pixel format enumeration and helps the very
poor performance reported on a small number of machines.
Closes #1381 .
ago%!(EXTRA string=6 years)
Camilla Löwy
2053f3ed22
Cleanup
ago%!(EXTRA string=6 years)
Camilla Löwy
55b1a16f90
Remove window requirement for all event functions
...
This lets an application wait for non-window events without needing to
create a window.
Fixes #1317 .
ago%!(EXTRA string=6 years)
Camilla Löwy
ea7eb2ddab
Cocoa: Move app delegate and menu creation to init
...
The application delegate needs to be set at init to receive monitor
events before window creation. Menu creation is moved to
applicationWillFinishLaunching: to play nicer with other toolkits in the
same process.
Related to #1317 .
ago%!(EXTRA string=6 years)
Camilla Löwy
9a9568212c
Cocoa: Move slightly towards modern Objective-C
ago%!(EXTRA string=6 years)
Camilla Löwy
72c3908e14
X11: Fix glfwSetWindowMonitor not flushing buffer
ago%!(EXTRA string=7 years)
Camilla Löwy
cde0aaaab1
X11: Fix glfwSetWindowMonitor not updating hints
...
This makes glfwSetWindowMonitor update the WM_NORMAL_HINTS when resizing
non-user-resizable windowed mode windows.
ago%!(EXTRA string=7 years)
Camilla Löwy
1635fe2826
Cleanup
...
Put the non-client painting related message cases with the client ones
so that they can be happy together.
Related to #1383 .
ago%!(EXTRA string=7 years)
Aaron Loucks
9ac9d7b85a
Win32: Disable non-client painting if undecorated
...
Fixes an issue where a small title bar and window caption
buttons were being painted after restoring a minimized
undecorated window.
Closes #1383 .
ago%!(EXTRA string=7 years)
Vallentin
e29882523e
Fix typos
...
Closes #1402 .
ago%!(EXTRA string=7 years)
Camilla Löwy
3531c320af
Fix glfwSetGamma generating ramps of invalid sizes
...
This makes glfwSetGamma generate a gamma ramp of the same size as the
monitor's current ramp, which will avoid failure on non-256 entry
monitors on X11 and avoid ramp interpolation on macOS.
Closes #1387 .
Fixes #1388 .
ago%!(EXTRA string=7 years)
Camilla Löwy
52c7a4fc7f
Fix glfwGetGammaRamp error handling
...
This makes glfwGetGammaRamp return NULL on platform error as specified.
Related to #1387 .
ago%!(EXTRA string=7 years)
Camilla Löwy
3201eedc34
Cleanup
...
We have a usable fminf now.
ago%!(EXTRA string=7 years)
Alexander Monakov
064dfaa549
Wayland: Remove gamma-related TODOs
...
Commit 9c513346ad
("Gamma will never be
supported on Wayland") made it clear that it cannot be implemented, so
this removes the TODO markers and rewords the error messages.
Related to #1387 .
ago%!(EXTRA string=7 years)
Camilla Löwy
751c6f9a27
Fix assertions for glfwSetGamma value
...
The NaN assert was implicit in the other ones. The lower bound assert
incorrectly allowed a value of zero.
Related to #1387 .
ago%!(EXTRA string=7 years)
Camilla Löwy
8c611fd5d0
Win32: Fix build on older versions of Visual C++
...
Older versions did not provide fmin or fmax. This adds internal
versions of fminf and fmaxf that should not be confused with
standards compliant implementations.
ago%!(EXTRA string=7 years)
Camilla Löwy
a59315ed6a
Win32: Fix joystick element info memory leak
...
The array was freed on failure but not on success.
Fixes #1396 .
ago%!(EXTRA string=7 years)
Keith Bauer
c4903d9267
Cocoa: Fix half of all key events for Caps Lock
...
This adds reporting of those Caps Lock key events that cause the lock
state to change.
The full fix involving IOHID is being worked on in #1368 .
Related to #1368 .
Closes #1373 .
ago%!(EXTRA string=7 years)
Andrew Belt
cc621765e5
Cocoa: Accept focusing mouse click as input
...
This makes the behavior on macOS consistent with other platforms.
Fixes #1209 .
Closes #1386 .
ago%!(EXTRA string=7 years)
Camilla Löwy
17a15a20f2
Cocoa: Move to modern Objective-C literals
ago%!(EXTRA string=7 years)
Camilla Löwy
c3ed70a4b7
Cocoa: Add NSApplicationDelegate protocol
ago%!(EXTRA string=7 years)
Camilla Löwy
88c5edb409
Cocoa: Remove subclassing of NSApplication
...
This removes the GLFW NSApplication subclass as a step towards better
coexistence with other libraries that touch Cocoa.
This moves application object creation to platform init to allow event
processing before window creation.
Related to #1317 .
ago%!(EXTRA string=7 years)
Rolf Eike Beer
f9923e9095
Use GNUInstallDirs for install destinations
...
This has the advantage that the user may override e.g. the include
location, and the correct libdir (lib, lib64, lib/something) is
automatically determined.
Closes #1367 .
ago%!(EXTRA string=7 years)
Camilla Löwy
f680001b95
Cocoa: Remove superfluous compatibility macro
ago%!(EXTRA string=7 years)
Camilla Löwy
18145a7f3d
Cocoa: Use NSURLs for drag and drop
...
Fixes #1377 .
ago%!(EXTRA string=7 years)
Dominique Martinet
62993d9391
x11 window: update cursor position on enter event
...
click events would have an incorrect position after changing workspace,
if the mouse didn't move in between.
(Another example where this matters is a new window, if it appears under
the cursor, clicking would lead the application to think the user clicked
at 0,0)
ago%!(EXTRA string=7 years)
MrVallentin
85fd5aa6c4
Use HTTPS when possible
ago%!(EXTRA string=7 years)
meditator
d9466050d9
X11: Fix missing check for NET_WM_STATE
...
Closes #1356 .
ago%!(EXTRA string=7 years)
Camilla Löwy
5595fa3ae6
Cocoa: Fix OpenGL rendering not being displayed
...
Fix based on information provided by @rcgordon .
Fixes #1334 .
Closes #1346 .
ago%!(EXTRA string=7 years)
Camilla Löwy
6dfc12a439
Cocoa: Fix some macOS 10.14 deprecation warnings
ago%!(EXTRA string=7 years)
Camilla Löwy
031a8f9583
Cocoa: Cleanup
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
c08abffc50
Wayland: Implement clipboard copy
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
8b54e28c4e
Wayland: Implement clipboard paste
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
3c4b9a7eef
Wayland: Add boilerplate for clipboard handling
ago%!(EXTRA string=7 years)
Ricardo Vieira
92b3fd02e5
wayland: save serial from all input sources
ago%!(EXTRA string=7 years)
Camilla Löwy
0b3677c2b1
X11: Clarify comment
ago%!(EXTRA string=7 years)
Camilla Löwy
e779280802
Win32: Fix invalid calls to GetDpiForWindow
...
The check for Windows 10 Anniversary Edition or later was not always
performed before calling GetDpiForWindow.
Fixes #1335 .
Closes #1363 .
ago%!(EXTRA string=7 years)
Camilla Löwy
1725d1c4f5
Win32: Fix build on early Windows 10 SDKs
...
Related to #1320 .
ago%!(EXTRA string=7 years)
Camilla Löwy
6bd264244a
WGL: Cleanup
ago%!(EXTRA string=7 years)
emersion
5afcd0981b
wayland: add support for XCURSOR_THEME and XCURSOR_SIZE
...
These can be set by the compositor or the user to configure the
xcursor theme and size.
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
cc805c0963
Mir: Remove this experimental backend
...
As of the release of Mir 1.0, libmirclient has been deprecated[1] and
its developers recommend clients using it to switch to Wayland. This
patch removes support for libmirclient and instruct users to use the
experimental Wayland backend instead.
[1] https://discourse.ubuntu.com/t/mir-news-28th-september-2018/8184
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
e75af5f531
Linux: Include the null byte in joystick path
...
This potential bug was found thanks to gcc 8’s -Wstringop-truncation
warning.
ago%!(EXTRA string=7 years)