Commit Graph
971 Commits
Author SHA1 Message Date
Kovid Goyal c4e89d9d0c macOS: Consolidate compatibility macros for old SDKs in one place 2019-03-28 12:37:05 +05:30
Kovid Goyal ecf2c86787 Wayland: Abort on fatal display errors instead of looping forever 2019-03-22 08:53:10 +05:30
Kovid Goyal fcb26e5dc7 Cocoa: User performSelectorOnMainLoop for render frames as well which means render frames work during modal loops 2019-03-21 16:51:01 +05:30
Kovid Goyal 0dc6ac26c3 Cocoa: user performSelectorOnMainThread instead of postEvent for the tick callback
performSelectorOnMainThread runs in more loop run modes which means that
the tick callback will behave more like it does on other platforms,
during window resizes and other modal event loops.
2019-03-21 15:55:43 +05:30
Kovid Goyal 48303bac75 Use "arrow" as the arrow cursor on Linux
Different themes preferentiallyuse left_prt or right_ptr, so use arrow
instead
2019-03-21 13:22:13 +05:30
Kovid Goyal 5ab8a665be GLFW: Add more standard cursor shapes
Also use an enum for the cursor shapes
2019-03-21 13:06:13 +05:30
Kovid Goyal 733158a2de Better error reporting when failing to load cursor 2019-03-21 10:38:26 +05:30
Kovid Goyal a2e47d2d0e EGL: Warn if non-blocking swap buffers is not available 2019-03-21 09:46:46 +05:30
Kovid Goyal bfb97a6e6f Wayland: use correct name for hand cursor 2019-03-21 09:24:51 +05:30
Kovid Goyal 106dc2b03b Wayland: Load cursor theme at init even if no mouse pointer is currently present 2019-03-20 15:56:34 +05:30
Kovid Goyal 7d9d096fbf Rationalize change reporting after configure event on Wayland
Fixes #1482 (I hope)
2019-03-19 15:02:11 +05:30
Kovid Goyal c129dd9331 Wayland: Ignore invalid scale values from compositor 2019-03-19 14:30:43 +05:30
Kovid Goyal 5c75ac0a96 GLFW Wayland backend: Dont fire resize events for Wayland configure events that dont change the window size. Fixes #1473 2019-03-17 15:07:32 +05:30
Kovid Goyal e9e4ac13ee Fix #1472 2019-03-16 07:37:36 +05:30
Kovid Goyal d3cee832ce Wayland: Dont try to focus window on create/show since it is not allowed anyway 2019-03-07 18:14:12 +05:30
Kovid Goyal 7ab63525c7 Dont use a global autorelease variable
Use function local @autorelease blocks instead
2019-03-06 09:34:55 +05:30
Kovid Goyal a1c49a0f7f Cocoa: Disable shadow for transparent framebuffer
From upstream: https://github.com/glfw/glfw/commit/9883cb64f0d55770bf09d2a79f044ba2049ea3e2
2019-03-06 09:12:16 +05:30
Kovid Goyal 4c4c6ab0e6 Various fixes for monitor work area retrieval from upstream 2019-03-06 09:08:08 +05:30
Kovid Goyal 2e0d39b512 Remove windows glfw backend as it is unused 2019-03-06 08:47:45 +05:30
Kovid Goyal 0899019518 Add glfwGetMonitorWorkarea
From upstream: https://github.com/glfw/glfw/commit/be295ccbea6a9b1cfdbe0dc700fe04d9be202879
2019-03-06 08:47:01 +05:30
Kovid Goyal db16996181 Fix Coverity Scan false positive
From upstream: https://github.com/glfw/glfw/commit/c20754c4a65784f46519397cee285018670d2cfb
2019-03-06 08:40:02 +05:30
Kovid Goyal aa2b21456f Round refresh rate instead of truncating
From upstream: https://github.com/glfw/glfw/commit/621ece63c8d31ae0dcf2196a3abde19ce8569984
2019-03-06 08:36:59 +05:30
Kovid Goyal 3bd1ca0ac3 Avoid using timing related hacks to detect the end of a live resize on macOS
Since cocoa provides start/end notifications for live resizing, rely on
those instead.
2019-03-04 19:52:46 +05:30
Kovid Goyal f0a2c34eca Port cocoa backed to use glfw mainloop 2019-03-04 19:52:46 +05:30
Kovid Goyal 9f35b9281b Avoid needing to continuously add/remove timers 2019-03-04 19:52:46 +05:30
Kovid Goyal 7624578c21 Fix X11/Wayland addTimer returning incorrect timer ids 2019-03-04 19:52:45 +05:30
Kovid Goyal d4b477ad78 Share main loop implementation between wayland and X11 2019-03-04 19:52:45 +05:30
Kovid Goyal bef9490fa8 Switch to using the GLFW main loop 2019-03-04 19:52:45 +05:30
Kovid Goyal d593ccba2f Add a loop tick callback 2019-03-04 19:52:45 +05:30
Kovid Goyal 1902d8bb19 Explicitly handle the empty events on X11 2019-03-04 19:52:45 +05:30
Kovid Goyal da507dfd19 Infrastructure for moving the run loop into GLFW
This is needed on Cocoa, where Apple expects to be in control of the run
loop.
2019-03-04 19:52:44 +05:30
Kovid Goyal a1e9b854e3 Move cocoa custom even dispatching into the application object
This allows it to work even with the cocoa run loop
2019-02-25 15:51:39 +05:30
Luflosi f38b27e923 Add check for NULL after malloc() 2019-02-24 14:48:54 +01:00
Kovid Goyal cb8116e2af Fix leak of a few bytes of memory after every update notification
Fixes #1411
2019-02-24 10:19:19 +05:30
Luflosi a653c17e8a Fix function returning the wrong type 2019-02-22 15:13:13 +01:00
Kovid Goyal 4629ef627f GLFW: Add support for render frames on Cocoa (CVDisplayLink)
Allows vsync to work again since Apple broke OpenGL swap intervals on
Mojave
2019-02-20 15:08:07 +05:30
Kovid Goyal 702613915b Revert "macOS: Fix v-sync to monitor refresh rate no longer working under Mojave."
This reverts commit 104e213934.

Fixes #1393
2019-02-19 14:43:36 +05:30
Kovid Goyal dcb2d95f9a GLFW: Add support for window occluded notifications on macOS
Based on: https://github.com/glfw/glfw/pull/1123
2019-02-18 10:03:21 +05:30
Kovid Goyal 104e213934 macOS: Fix v-sync to monitor refresh rate no longer working under Mojave.
Mojave broke the technique GLFW used to use for v-sync. Changed to use
CVDisplayLink, fix comes from: https://github.com/glfw/glfw/pull/1417
2019-02-17 11:39:49 +05:30
Kovid Goyal fe3a432845 Documentation for window frames on Wayland 2019-02-17 10:38:48 +05:30
Kovid Goyal 423f8e59cc Wayland: Fix auto-iconify on kwin_wayland
Upstream: https://github.com/glfw/glfw/commit/45bd991ea981048e874637e6f9d9ab1488f56550
2019-02-17 10:35:39 +05:30
Kovid Goyal 1c468b2931 Wayland: Only auto-iconify fullscreen windows
Upstream: https://github.com/glfw/glfw/commit/edf0a0717453511a6a35ddf473d9bb66bebdfa6f
2019-02-17 10:31:17 +05:30
Kovid Goyal 85faad5ec7 Wayland: use SHM_ANON on FreeBSD
Upstream: https://github.com/glfw/glfw/commit/36ce73bbfdb1f80a010d64333a115e096f7233b8
2019-02-17 10:30:02 +05:30
Kovid Goyal 869152750c X11: Fix system cursor used for GLFW_HAND_CURSOR
From upstream: https://github.com/glfw/glfw/commit/2a27eb95e42ddc880fa1fdb18872d2c892bd36c1
2019-02-17 10:21:15 +05:30
Kovid Goyal 23482e3cf4 macOS: Allow assigning only the left or right :kbd:Option key to work as the :kbd:Alt key. See :opt:macos_option_as_alt for details
Fixes #1022
2019-02-14 20:39:32 +05:30
Kovid Goyal b40ca5800d macOS: Fix using multi-key sequences to input text ignoring the first few key presses if the sequence is aborted
Fixes #1311
2019-02-14 15:10:13 +05:30
Kovid Goyal 3b25081353 Print out current text when ignoring dead keys 2019-02-14 14:56:06 +05:30
Kovid Goyal 274dd2f3fe Cleanup
From upstream: https://github.com/glfw/glfw/commit/90e22947c60b0c1fa47cf1496790ce1942e4a5d8
2019-02-03 20:17:28 +05:30
Kovid Goyal fb5dbc811b Cocoa: Fix handling of analog joystick buttons
From upstream: https://github.com/glfw/glfw/commit/463ef7eb71268f57790fdb67f26d328b45d3346e
2019-02-03 20:16:47 +05:30
Kovid Goyal c31c32f921 Cocoa: Add missing IOHID page and usages
From upstream: https://github.com/glfw/glfw/commit/51ca41dd9fdf98bc9d38810f84ad4cb218ecd88a
2019-02-03 20:15:33 +05:30