Siavash Eliasi
bb1d917c2f
Improve docs scaling on mobile and small screens
...
Closes #1757 .
2020-09-02 21:50:57 +02:00
Camilla Löwy
59196f9ad8
Make old debug context hint/attrib name searchable
2020-09-02 21:27:43 +02:00
Camilla Löwy
9d7897f961
Support interprocedural optimization override
...
This policy applies the CMAKE_INTERPROCEDURAL_OPTIMIZATION override to
the GLFW target.
Fixes #1753 .
2020-09-02 21:27:43 +02:00
Camilla Löwy
b3a79103a6
Move Wayland build CI to focal
...
This finally allows us to drop the Wayland workarounds for CI.
Thanks Travis CI!
2020-09-02 21:24:53 +02:00
Camilla Löwy
b9dfce0070
Fix formatting in transition guide
2020-09-02 17:41:38 +02:00
Camilla Löwy
7765451d0f
Formatting
2020-08-23 18:33:57 +02:00
Camilla Löwy
cd0dc76c7c
Null: Fix out parameters not being set
...
It turns out platform functions are sometimes called directly instead of
going through the public wrapper.
2020-08-19 19:31:55 +02:00
Camilla Löwy
da26eefc61
Update changelog
2020-08-13 15:14:59 +02:00
Luflosi
b488c3f87f
Make _glfwPlatformInitJoysticks() return the correct type in null_joystick
...
This code was introduced in 782e6b6cef
.
Closes #1745 .
2020-08-08 22:51:50 +02:00
Camilla Löwy
05dd2fa298
Win32: Disable fb transparency when it is broken
...
On Windows 7, when GLFW framebuffer transparency and the DWM are enabled
but DWM transparency is disabled (i.e. when the Transparency setting is
disabled under Personalization > Color), the contents of the framebuffer
is combined with the last frame using additive blending instead of
replacing the previous contents.
This commit limits GLFW framebuffer transparency on Windows 7 to when
DWM transparency is enabled, removing the previous workaround of setting
a layered window color key that led to rendering artifacts.
Fixes #1512 .
2020-07-29 15:21:45 +02:00
Camilla Löwy
a2674a9034
Cocoa: Fix potential leak of CFNumber object
...
Spotted by Clang static analysis.
2020-07-23 22:27:40 +02:00
Luflosi
0cc13ceafc
Return NULL instead of GLFW_FALSE where appropriate
...
Related to 782e6b6cef
.
Closes #1738 .
2020-07-23 22:13:11 +02:00
Camilla Löwy
c01acc267a
X11: Fix joystick detection before joystick init
...
Spotted by @Luflosi.
2020-07-23 21:14:36 +02:00
Camilla Löwy
e0f7ce402b
Documentation fix
...
"Joystick token" is not used anywhere else in the documentation.
2020-07-21 18:06:13 +02:00
Camilla Löwy
f771d41292
Cleanup
...
Moving functions to their respective sections. Related to delayed
joystick Initialization.
2020-07-21 17:54:07 +02:00
Camilla Löwy
782e6b6cef
Make joystick platform code init on demand
...
This makes joystick support initialize the first time a joystick
function is called, including those gamepad functions that are layered
on top of joystick functions.
Related to #1284 .
Related to #1646 .
2020-07-21 17:38:56 +02:00
Doug Binks
375fcdeadb
Added GLFW_NO_API check to glfwCreateUserContext and error documentation.
2020-07-16 15:20:25 +01:00
Doug Binks
1d647668af
EGL user context code simplification
2020-07-16 14:02:32 +01:00
Doug Binks
cd68bac78d
Initial user context documentation
2020-07-16 11:59:23 +01:00
Doug Binks
1cb8ab8dc6
Make user context non current when destroyed
2020-07-16 11:59:11 +01:00
Camilla Löwy
f760b124ca
Wayland: Fix scroll offsets being inverted
...
Scrolling offsets were inverted compared to X11 and Win32.
Fixes #1463 .
2020-07-15 23:16:01 +02:00
Camilla Löwy
5f60c22cfa
Wayland: Fix partial framebuffer size retrieval
2020-07-15 21:56:52 +02:00
Doug Binks
87ddca831a
Removed unused EGL defines.
2020-07-15 19:49:35 +01:00
Doug Binks
2f2e7f041a
Simplified fallback pbuffer surface path.
2020-07-15 19:40:00 +01:00
Camilla Löwy
5c92cd9f52
Make windows test a tolerable example
2020-07-15 19:22:30 +02:00
Camilla Löwy
686e18fd72
Remove window opacity test
...
It has been superceded by the window property test.
2020-07-15 19:08:09 +02:00
Camilla Löwy
3207fc7120
Add window property test
2020-07-15 19:08:04 +02:00
Camilla Löwy
74b9f309a9
Update Nuklear to 4.01.3
2020-07-15 18:02:38 +02:00
Camilla Löwy
a122d91303
Documentation work for GLFW_MOUSE_PASSTHROUGH
...
Related to #1568 .
2020-07-15 18:02:38 +02:00
Camilla Löwy
dfeacee000
Move mouse passthrough before window showing
...
Related to #1568 .
2020-07-15 18:02:38 +02:00
Camilla Löwy
1095a43708
Remove no-op call at window creation
...
Related to #1568 .
2020-07-15 18:02:38 +02:00
Camilla Löwy
6d2003d07a
Move management of shared state to shared code
...
Platform code may not modify shared state.
Related to #1568 .
2020-07-15 18:02:38 +02:00
Camilla Löwy
7da3e52c86
Win32: Fix GLFW_MOUSE_PASSTHROUGH dropping events
...
Returning HTTRANSPARENT from WM_NCHITTEST does cause the window to be
transparent for some hit-testing APIs but does not make it pass mouse
input through to whatever window is below it.
For that to work on modern Windows, the window needs to be both layered
and extended-window-style-transparent.
Additional logic changes to ensure mouse input passthrough, framebuffer
transparency and window opacity are mindful of one another when
modifying WS_EX_LAYERED.
Related to #1568 .
2020-07-15 18:00:43 +02:00
Camilla Löwy
68e4261d73
X11: Include X Shape extension headers
...
Related to #1568 .
2020-07-15 18:00:00 +02:00
Camilla Löwy
e81d381256
X11: Fix disabling of GLFW_MOUSE_PASSTHROUGH
...
The client clip region was left in place when mouse passthrough was
disabled, leading to missing mouse input if the window grew beyond it.
Related to #1568 .
2020-07-15 18:00:00 +02:00
Rokas Kupstys
d285a9fdeb
Add support for mouse input transparency
...
This adds the GLFW_MOUSE_PASSTHROUGH window hint and attribute for
controlling whether mouse input passes through the window to whatever
window is behind it.
Fixes #1236 .
Closes #1568 .
2020-07-15 17:59:55 +02:00
Doug Binks
e55a552eee
User context EGL fixes.
2020-07-15 14:31:05 +01:00
Doug Binks
5f52f2a7f8
Fix for ELG wrong surface passed
2020-07-15 13:23:38 +01:00
Doug Binks
3de9ed6453
Fixed EGL glfwMakeUserContextCurrent - requires different surface
2020-07-15 13:21:02 +01:00
Doug Binks
d01ad1a78d
Improved usercontext.c test
2020-07-15 13:19:47 +01:00
Doug Binks
f2806aa9ab
Added glfwGetCurrentUserContext
2020-07-15 13:19:33 +01:00
Doug Binks
6539d101f3
Added TLS for current user context and simplified code
2020-07-15 13:19:14 +01:00
Doug Binks
a1a1b77150
Added _GLFW_REQUIRE* to user context functions.
2020-07-15 11:19:18 +01:00
Doug Binks
4caca8b20c
glfwMakeUserContextCurrent now calls glfwMakeContextCurrent(NULL) to ensure TLS set.
2020-07-15 11:18:58 +01:00
Doug Binks
f2b86a25b3
Cocoa and NSGL Implementation
2020-07-14 19:10:31 +01:00
Doug Binks
dd854e47ba
Formatting
2020-07-14 12:38:18 +01:00
Doug Binks
931ba89aad
User context null platform and OSMESA implementation.
2020-07-14 11:41:42 +01:00
Doug Binks
51f11929f3
User context Wayland and EGL implementations
2020-07-13 19:05:36 +01:00
Camilla Löwy
6c031af245
Null: Fix typos in workarea retrieval
2020-07-13 19:43:13 +02:00
Doug Binks
5e94092263
Refactor user context implementation to use the standard GLFW platform / context approach
2020-07-13 18:06:48 +01:00