Emmanuel Gil Peyrot
0c4ca85149
Fix _glfwPlatformSetWindowMonitor to correctly destroy/recreate decorations
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
c9d691e65e
Fix window size calculation when wp_viewporter isn’t supported
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
60e82ba472
Handle scaling factor (hidpi) correctly
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
f51c219b1c
Handle maximized size correctly
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
31cea7fa24
Remove decorations when fullscreen
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
58b21d336c
Factorise moving to fullscreen
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
5e5bc14468
Fix documentation about window decorations
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
8ed91e8a77
Only create decorations if wp_viewporter is supported
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
4e31dc5e6e
Make it possible to toggle window decorations
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
1f8ec20b55
Correctly destroy subsurfaces on window destroy
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
4a42364a19
Return correct values for frame size
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
9f7ec6b094
Implement window decorations
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
9dc18a62a6
Rename wl_pointer to pointer
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
5b65b9b860
Prevent a crash when giving focus to a non-GLFWwindow surface
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
552e40a4be
Add wl_subcompositor support
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
79e16baca3
Add wp_viewporter support
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
9a7656364e
Split shm buffer creation out of _glfwPlatformCreateCursor
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
2de3605b4c
Make createAnonymousFile static
2018-02-25 16:54:44 +01:00
Emmanuel Gil Peyrot
d6b9d00ceb
Wayland: Handle monitor removal
2018-02-24 22:18:39 +01:00
Emmanuel Gil Peyrot
f67b610dd4
Wayland: Handle repeats which missed a timer
2018-02-24 21:06:25 +01:00
Emmanuel Gil Peyrot
608f055c72
Wayland: Open the timerfd with cloexec
2018-02-24 21:06:25 +01:00
Emmanuel Gil Peyrot
84d10b32c3
Wayland: Ask xkbcommon whether to repeat a key
2018-02-24 21:06:25 +01:00
Emmanuel Gil Peyrot
8bc0c5c2c0
Wayland: dlsym() xkb_keymap_key_repeats
2018-02-24 21:06:25 +01:00
Emmanuel Gil Peyrot
97bf16e5b6
Wayland: Check for wayland protocol version
...
wl_keyboard version 4 is more recent than the libwayland available in
Ubuntu 14.04.
2018-02-24 21:06:25 +01:00
Emmanuel Gil Peyrot
90f5edc0b8
Wayland: Use a timerfd for key repeat
2018-02-24 21:06:25 +01:00
Emmanuel Gil Peyrot
c14a35e21e
Wayland: Obtain keyboard repeat_info
...
This had to bump the seat version, we now may get the seat name but we
don’t do anything with it.
2018-02-24 21:06:25 +01:00
Camilla Löwy
f4cd470bcb
Move to modern mappings database with modifiers
2018-02-13 18:57:56 +01:00
Camilla Löwy
3c9011030f
Cleanup
2018-02-13 18:33:31 +01:00
Camilla Löwy
2040309d0c
Add support for gamepad mapping input modifiers
...
This adds support for the + and - and ~ input modifiers for joystick
axes. It also changes how joystick axes are translated to buttons to
more closely match SDL 2.0.7.
Output modifiers are still not supported but have not yet been seen in
the wild.
2018-02-13 18:30:07 +01:00
Camilla Löwy
58cc4b2c5c
Move full screen cursor centering to shared code
2018-02-07 16:47:00 +01:00
Camilla Löwy
b020467192
Documentation work
2018-02-07 16:46:59 +01:00
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.
2018-02-07 16:46:59 +01:00
Camilla Löwy
cfb5cb8805
Add comment
2018-02-07 16:46:58 +01:00
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.
2018-02-07 16:46:58 +01:00
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 .
2018-02-07 16:46:58 +01:00
Camilla Löwy
ff6a8891d4
Make remaining tests set viewport in render loop
2018-02-07 16:46:51 +01:00
Camilla Löwy
c29e4455bb
Move more context logic out of glfwCreateWindow
2018-02-06 13:10:41 +01:00
Camilla Löwy
9bfa499d94
Formatting
2018-02-06 13:10:41 +01:00
Camilla Löwy
53b193a161
Wayland: Fix uninitialized variable warning
...
Related to #1143 .
Fixes #1197 .
2018-02-06 13:10:41 +01:00
Emmanuel Gil Peyrot
e98102162f
Fix -Werror in Travis, env gets overriden
...
Prevents #1197 from happening again.
2018-02-06 12:57:39 +01:00
Emmanuel Gil Peyrot
f5d3954568
Stop checking for resizing
...
Fixes #1197
2018-02-06 12:57:17 +01:00
Camilla Löwy
ae53cd29ef
Improve context function error descriptions
...
Fixes #1193 .
2018-01-30 19:28:37 +01:00
Camilla Löwy
a678665c49
Cleanup
2018-01-30 19:28:37 +01:00
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 .
2018-01-30 19:25:17 +01:00
Emmanuel Gil Peyrot
525ad7bfb8
Close the libwayland-cursor handle after destroying the cursor theme
...
Fixes a segfault on glfwTerminate().
2018-01-29 04:55:55 +01:00
Emmanuel Gil Peyrot
eb7c9994bf
Prevent auto-iconify from firing on window creation
2018-01-29 03:59:47 +01:00
Emmanuel Gil Peyrot
94c7aa0d67
Bump wayland-protocols to 1.12
2018-01-29 03:59:47 +01:00
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.
2018-01-29 03:59:47 +01:00
Emmanuel Gil Peyrot
4778d02c67
Ignore _glfwPlatformShowWindow when already visible
2018-01-29 03:59:47 +01:00
Emmanuel Gil Peyrot
f710db6504
Ignore configure events of 0×0px
2018-01-29 03:59:47 +01:00