Camilla Löwy
d10463ac91
Win32: Fix extra resize event during mode switch
...
The switch to full screen is now done with a single call to
SetWindowPos.
ago%!(EXTRA string=7 years)
Camilla Löwy
cfb5cb8805
Add comment
ago%!(EXTRA string=7 years)
Camilla Löwy
1d75b205cb
Cleanup
...
Allow window creation despite video mode setting failure.
Video mode setting failure is ignored the rest of the time and the
desired video mode has never been a hard constraint anyway.
ago%!(EXTRA string=7 years)
Ahmad Fatoum
f940a97500
Linux: Add support for kernels < v2.6.39
...
Broke build for me on CentOS-6, which sports a 2.6.32 kernel:
http://www.cpantesters.org/cpan/report/d956d128-0339-11e8-b0d1-b6c4abd39192
CentOS-6 is supported till 2020-11-30.
Closes #1196 .
ago%!(EXTRA string=7 years)
Camilla Löwy
c29e4455bb
Move more context logic out of glfwCreateWindow
ago%!(EXTRA string=7 years)
Camilla Löwy
9bfa499d94
Formatting
ago%!(EXTRA string=7 years)
Camilla Löwy
53b193a161
Wayland: Fix uninitialized variable warning
...
Related to #1143 .
Fixes #1197 .
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
f5d3954568
Stop checking for resizing
...
Fixes #1197
ago%!(EXTRA string=7 years)
Camilla Löwy
ae53cd29ef
Improve context function error descriptions
...
Fixes #1193 .
ago%!(EXTRA string=7 years)
Camilla Löwy
a678665c49
Cleanup
ago%!(EXTRA string=7 years)
Corentin Wallez
8a8eefa0d8
Fail Vulkan surface creation if window has context
...
OpenGL / OpenGL ES cannot share presentation on a window with Vulkan.
This adds an error to `glfwCreateWindowSurface` when it is called on a
window without the GLFW_CLIENT_API hint set to GLFW_NO_API. This
prevents undefined bahevior and hard to debug crashes.
Fixes #1194 .
Closes #1205 .
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
525ad7bfb8
Close the libwayland-cursor handle after destroying the cursor theme
...
Fixes a segfault on glfwTerminate().
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
eb7c9994bf
Prevent auto-iconify from firing on window creation
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
f2617a671f
Add a roundtrip after creating the xdg-surface
...
The specification says we must not attach a buffer until we’ve received
a configure event.
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
4778d02c67
Ignore _glfwPlatformShowWindow when already visible
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
f710db6504
Ignore configure events of 0×0px
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
0e759c9422
Don’t set min/max size on GLFW_DONT_CARE
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
ae44a28125
Wayland: Add an alternate surface role using xdg-shell
...
This protocol matches desktops much better than the deprecated
wl_shell, fixing a bunch of race conditions, removing undefined
behaviour, adding missing features, and generally providing a much more
user-friendly experience.
Since most compositors don’t support it yet, the wl_shell_surface role
is kept as fallback for now.
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
14856e8b60
Wayland: Bind, listen and destroy xdg_wm_base
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
73567ae5be
Wayland: Add xdg-shell to the platform
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
0d5f7a9eab
Wayland: Add xdg-shell to the build system
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
a199efae44
Wayland: Emit an error when wl_shell is absent or unusable
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
440e7e36f3
Fix typography of error messages
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
407a3e2860
Load libwayland-cursor at runtime
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
5fbf4ddde8
Load libwayland-egl at runtime
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
6e69f63ffa
Use the _glfw_dlopen/dlsym/dlclose define
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
eb732457ea
Prevent a race between surface destruction and focus
...
The Wayland protocol is asynchronous, by the time we destroy a surface,
the compositor may have sent a wl_keyboard::enter or wl_pointer::enter
events which now point to no surface, yet we receive it after.
To prevent this race, we can just ignore any enter event targetting a
NULL surface.
Fixes #1150 .
ago%!(EXTRA string=7 years)
Camilla Löwy
973bf29622
Remove use of non-standard function strdup
...
Related to #873 .
ago%!(EXTRA string=7 years)
Camilla Löwy
bb3ab87a18
Remove unmaintained internal Doxygen docs
...
The useful bits have been transformed to function definition comments.
The style guide stub has been added to the regular docs build.
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
6c421f131d
Wayland: Implement scale callback
...
Closes #1181 .
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
93186e4999
Wayland: Fix glfwTerminate segfault on failed init
...
Closes #1172 .
ago%!(EXTRA string=7 years)
ocornut
20b12204af
Win32: Fix GLFW_FOCUSED hint being ignored
...
The window was activated by _glfwPlatformShowWindow, causing the
GLFW_FOCUSED window hint to be ignored when set to false.
Fixes #1179 .
Closes #1180 .
ago%!(EXTRA string=7 years)
Camilla Löwy
ee9dffcd66
Add GLFW_HOVERED for polling cursor hover state
...
This window attribute corresponds to the cursor enter/leave callback.
Fixes #1166 .
ago%!(EXTRA string=7 years)
Camilla Löwy
370eac3c48
Add glfwSetWindowContentScaleCallback
...
Related to #677 .
Related to #1115 .
ago%!(EXTRA string=7 years)
Camilla Löwy
1034b6e0db
Move context management out of glfwCreateWindow
...
Related to #25 .
ago%!(EXTRA string=7 years)
przemekmirek
9f91bd6ea9
Win32: Fix HDEVNOTIFY handle leak
...
Closes #1170 .
ago%!(EXTRA string=7 years)
Emmanuel Gil Peyrot
10c18f8124
Use quotes consistently for wayland-protocols
ago%!(EXTRA string=8 years)
Camilla Löwy
7c2c7858c6
Add monitor and joystick user pointers
ago%!(EXTRA string=8 years)
Camilla Löwy
9da2285b14
Cocoa: Make frame autosave hint a string
ago%!(EXTRA string=8 years)
Camilla Löwy
6158801aeb
Change glfwInitHintString to glfwWindowHintString
...
Fixes #1139 .
ago%!(EXTRA string=8 years)
Emmanuel Gil Peyrot
c3cba58a71
Remove trailing whitespace
ago%!(EXTRA string=8 years)
Camilla Löwy
ce4672d74b
Make glfwSetGamma use powf instead of pow
...
Related to #1125 .
ago%!(EXTRA string=8 years)
Camilla Löwy
8dab9f6ab1
Wayland: Clarify assertion
...
Related to #1143 .
ago%!(EXTRA string=8 years)
Camilla Löwy
682f1cf203
Fix wrong element array for hat to axis
ago%!(EXTRA string=8 years)
Camilla Löwy
0e8c4ea7ce
Add lock key modifier bits input mode
...
This adds the GLFW_MOD_CAPS_LOCK and GLFW_MOD_NUM_LOCK modifier bits.
Set the GLFW_LOCK_KEY_MODS input mode to enable these for all callbacks
that receive modifier bits.
Fixes #946 .
ago%!(EXTRA string=8 years)
Camilla Löwy
fd72eb917e
Mir: Fix modifier bit translation
ago%!(EXTRA string=8 years)
Camilla Löwy
638c4b604e
Cleanup
ago%!(EXTRA string=8 years)
Camilla Löwy
c2858e9ed7
Verify gamepad mapping indices match hardware
ago%!(EXTRA string=8 years)
Camilla Löwy
7c87948eaf
Win32: Fix accidentally working bit tests
...
Good grief.
ago%!(EXTRA string=8 years)
Camilla Löwy
30489c5aa1
X11: Expose zero monitor for functional headless
...
Fixes #1147 .
ago%!(EXTRA string=8 years)