Doug Binks
222ac78a44
Cocoa: Add work area NULL checks and fix size
...
Related to #1322 .
2019-03-05 16:10:59 +01:00
Doug Binks
bea4818030
X11: Add NULL checks in work area retrieval
...
Related to #1322 .
2019-03-05 16:10:59 +01:00
Doug Binks
e6d22346f9
Fix copypaste error in glfwGetMonitorWorkarea
...
Related to #1322 .
2019-03-05 16:10:59 +01:00
Doug Binks
f7733c7b4f
Win32: Add missing out parameter NULL checks
...
This fixes _glfwPlatformGetMonitorWorkarea not checking if its out
parameters were NULL.
Related to #1322 .
2019-03-05 16:10:59 +01:00
Doug Binks
5c752355cb
Win32: Fix and simplify work area retrieval
...
Related to #1322 .
2019-03-05 16:10:59 +01:00
Felipe Ferreira da Silva
be295ccbea
Add glfwGetMonitorWorkarea
...
This function retrieves the work area rectangle of the specified
monitor.
Related to #920 .
Closes #989 .
2019-03-05 16:10:59 +01:00
Camilla Löwy
c20754c4a6
Fix Coverity Scan false positive
2019-03-04 18:52:56 +01:00
Camilla Löwy
621ece63c8
Round refresh rate instead of truncating
...
Fixes #1441 .
2019-03-04 17:31:14 +01:00
Camilla Löwy
2fbb560eb7
Cocoa: Fix window creation blocking after re-init
...
Fixes #1439 .
2019-02-25 02:41:05 +01:00
Camilla Löwy
7c3aaf8065
Win32: Fix OCR_HAND macro missing on MinGW
...
Fixes #1438 .
2019-02-24 04:18:11 +01:00
Camilla Löwy
44af6bb936
Wayland: Implement raw mouse motion control
...
Related to #1400 .
Related to #1401 .
2019-02-22 14:52:02 +01:00
Camilla Löwy
1155c83013
Rename raw input to raw mouse motion, cleanup
...
This renames 'raw input' to 'raw mouse motion' as there are other kinds
of raw input. The update path is restructured to avoid reinitializing
all of disabled cursor mode. Modification of shared state is moved out
into shared code. Raw mouse motion is disabled by default for
compatibility.
Related to #1401 .
2019-02-22 13:04:11 +01:00
Nathan Poirier
9e29f556fd
Add GLFW_RAW_INPUT and glfwRawInputSupported
...
This adds runtime per-window control of whether accelerated or raw mouse
motion is provided when the cursor is disabled.
Fixes #1400 .
Closes #1401 .
2019-02-22 13:04:11 +01:00
Emmanuel Gil Peyrot
5f9cbd0ebc
Wayland: keyboard repeat rate is given in Hz
...
It was currently interpreted as ms, which is obviously wrong.
Thanks to https://github.com/Smithay/client-toolkit/pull/62 for making
me notice this issue.
2019-02-20 15:56:04 +01:00
Camilla Löwy
ec3784f3d7
WGL: Unify query error handling
2019-02-17 18:34:56 +01:00
Camilla Löwy
782f7fe0c7
WGL: Fix leak on format attrib query failure
...
This was found by Coverity Scan.
2019-02-17 18:34:56 +01:00
Emmanuel Gil Peyrot
45bd991ea9
Wayland: Fix auto-iconify on kwin_wayland
...
We now keep track of the fullscreen and activated state and only iconify
if we were previously fullscreen and now we are either not fullscreen or
not activated anymore.
This is the proper way to do it, compared to the previous hack where we
didn’t iconify only if it was the first configure event received.
2019-02-15 18:12:09 +01:00
Emmanuel Gil Peyrot
edf0a07174
Wayland: Only auto-iconify fullscreen windows
...
Thanks to kwin for exposing a bug here!
2019-02-15 17:03:37 +01:00
Greg V
36ce73bbfd
Wayland: use SHM_ANON on FreeBSD
...
This works like memfd on Linux.
2019-02-15 15:45:25 +01:00
Camilla Löwy
1d95acdf56
Cocoa: Fix detection of Clang
2019-02-14 00:19:45 +01:00
schraf
2e70950c0f
Fix quoting of CMAKE_C_COMPILER_ID
...
I was getting an error in this cmake file when using 3.10.2 on linux.
Here was the error message I was getting:
[cmake] CMake Error at external/glfw/src/CMakeLists.txt:82 (if):
[cmake] if given arguments:
[cmake]
[cmake] "STREQUAL" "GNU" "OR" "STREQUAL" "Clang"
[cmake]
[cmake] Unknown arguments specified
Adding the quotes around the cmake variables seems to do the trick. That
was also done with the STREQUAL condition earlier on line 66.
Closes #1411 .
2019-02-14 00:19:45 +01:00
Camilla Löwy
2a27eb95e4
X11: Fix system cursor used for GLFW_HAND_CURSOR
...
Fixes #1432 .
2019-02-14 00:04:39 +01:00
Camilla Löwy
e2fa82ffbb
Cleanup
...
Related to #1431 .
2019-02-13 23:21:05 +01:00
Max Risuhin
cf79f06257
Win32: Fix standard cursors not being DPI aware
...
Closes #1431 .
2019-02-11 19:19:06 +01:00
Camilla Löwy
90e22947c6
Cleanup
2019-01-31 01:58:04 +01:00
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 .
2019-01-31 01:54:49 +01:00
Camilla Löwy
51ca41dd9f
Cocoa: Add missing IOHID page and usages
...
Related to #1385 .
2019-01-31 01:53:55 +01:00
Camilla Löwy
530b37f4db
Cocoa: Disable automatic tabbing for GLFW windows
...
Related to #1250 .
2019-01-31 00:20:24 +01:00
Camilla Löwy
78e6a0063d
X11: Fix EWMH state update for hidden windows
...
The EWMH window state code assumed the window was mapped.
Fixes #1358 .
2019-01-31 00:02:16 +01:00
Camilla Löwy
b41cd34143
Cleanup
2019-01-25 12:46:46 +01:00
Camilla Löwy
d5ab3e919a
Cleanup
...
Replace client area with content area.
2019-01-25 12:46:46 +01:00
iamCaveLamp
a46104ee69
Removed duplicates of centerCursor function
2019-01-22 20:17:35 +01:00
Camilla Löwy
3d748cf530
Cleanup
...
Related to #1381 .
2019-01-17 00:12:59 +01:00
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 .
2019-01-17 00:12:59 +01:00
Camilla Löwy
2053f3ed22
Cleanup
2019-01-17 00:11:17 +01:00
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 .
2019-01-15 19:28:17 +01:00
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 .
2019-01-11 01:05:00 +01:00
Camilla Löwy
9a9568212c
Cocoa: Move slightly towards modern Objective-C
2019-01-10 23:20:56 +01:00
Camilla Löwy
72c3908e14
X11: Fix glfwSetWindowMonitor not flushing buffer
2019-01-02 21:55:30 +01:00
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.
2019-01-02 21:55:30 +01:00
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 .
2018-12-26 15:22:20 +01:00
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 .
2018-12-26 15:00:39 +01:00
Vallentin
e29882523e
Fix typos
...
Closes #1402 .
2018-12-26 15:00:39 +01:00
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 .
2018-12-26 15:00:39 +01:00
Camilla Löwy
52c7a4fc7f
Fix glfwGetGammaRamp error handling
...
This makes glfwGetGammaRamp return NULL on platform error as specified.
Related to #1387 .
2018-12-26 15:00:39 +01:00
Camilla Löwy
3201eedc34
Cleanup
...
We have a usable fminf now.
2018-12-26 14:59:51 +01:00
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 .
2018-12-26 14:50:22 +01:00
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 .
2018-12-26 14:48:40 +01:00
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.
2018-12-26 14:45:40 +01:00
Camilla Löwy
a59315ed6a
Win32: Fix joystick element info memory leak
...
The array was freed on failure but not on success.
Fixes #1396 .
2018-12-26 14:43:33 +01:00