Luflosi
bc61a81d7a
GLFW: X11: Fix joystick detection before joystick init
...
From upstream: https://github.com/glfw/glfw/commit/c01acc267ad7f5e016d905276ba38917a1fa64bb .
2020-07-23 23:57:03 +02:00
Luflosi
78efefcea1
Revert "Linux: Fix slow startup on some systems caused by GLFW searching for joysticks. Since kitty does not use joysticks, disable joystick support."
...
This reverts commit ab960ea12d .
2020-07-23 23:56:21 +02:00
Luflosi
805921d6a3
GLFW: Move management of shared state to shared code
...
From upstream: https://github.com/glfw/glfw/commit/6d2003d07a3e502050d51b04c8b9aeb37840f4e3 .
2020-07-16 23:54:16 +02:00
Luflosi
d7cd6edaa5
GLFW: X11: Include X Shape extension headers
...
From upstream: https://github.com/glfw/glfw/commit/68e4261d73295cc280ee3d060d421e0ace5d8d11 .
2020-07-16 23:50:26 +02:00
Luflosi
6a472bd6da
GLFW: X11: Fix disabling of GLFW_MOUSE_PASSTHROUGH
...
From upstream: https://github.com/glfw/glfw/commit/e81d38125660b94bb48a362a58f162c38a230d37 .
2020-07-16 23:24:48 +02:00
Luflosi
d0c6ce9fd7
GLFW: Add support for mouse input transparency
...
From upstream: https://github.com/glfw/glfw/commit/d285a9fdeb5e7f4688ebbd8f8fa8f101b01b5bea .
2020-07-16 22:25:12 +02:00
Luflosi
356e950122
X11: Fix cursor hover query retry behavior
...
From upstream: https://github.com/glfw/glfw/commit/49dbcfcb8c5a0f16fc914a114c8d5cfc1a5f97c8 .
2020-07-11 18:59:28 +02:00
Luflosi
431d013d32
X11: Fix race in window hovered query
...
From upstream: https://github.com/glfw/glfw/commit/ceb20c7f97994106db17cc66bd8abad331bc355e .
2020-07-11 18:18:33 +02:00
Luflosi
973d98457f
EGL: Add support for EGL_ANGLE_platform_angle
...
From upstream: https://github.com/glfw/glfw/commit/0dea8a4441828311af4c31de8ba798ba330c4755 .
2020-06-30 00:34:32 +02:00
Luflosi
c39e9e9c61
EGL: Add support for EGL_EXT_platform_base
...
From upstream: https://github.com/glfw/glfw/commit/aec9fae8f34079561d408c8599e7ac08a7013041 .
2020-06-26 12:39:17 +02:00
Luflosi
d7a7509da6
EGL: Replace native handle macros with functions
...
From upstream: https://github.com/glfw/glfw/commit/d7f7b0e1b59d1fd53c68b4a6beb025af5d9786e6 .
2020-06-26 12:17:13 +02:00
Kovid Goyal
fbd0e8e26a
X11: Improve handling of multiple keyboards
...
Now pressing a modifier key in one keyboard and a normal key in another works. Fixes #2362
Don't rebuild keymaps on new keyboard events that only change geometry. Fixes #2787
Better handling of multiple keyboards with incompatible layouts (this is for free from the above fixes). Fixes #2726
2020-06-24 12:05:30 +05:30
Kovid Goyal
c7c14f184c
X11: Recompile keymaps on XkbNewKeyboardNotify events
...
Hopefully fixes #2726
2020-06-05 22:11:15 +05:30
Luflosi
767da68239
Reduce difference to GLFW upstream
...
Only whitespace, formatting and comments were changed. This does not alter any functionality.
2020-06-02 11:45:08 +02:00
Luflosi
55ad228166
Rename raw input to raw mouse motion, cleanup
...
From upstream: https://github.com/glfw/glfw/commit/1155c83013d0f8b86d5a56193708dc00d6c53553 .
2020-05-24 21:57:29 +02:00
Luflosi
48fb051253
Add GLFW_RAW_INPUT and glfwRawInputSupported
...
From upstream: https://github.com/glfw/glfw/commit/9e29f556fd78196dfc81aeb73657888fc0a6d68d .
2020-05-24 20:49:52 +02:00
Luflosi
9da0ba52db
X11: Clarify code flow for Clang static analysis
...
From upstream: https://github.com/glfw/glfw/commit/ef5220d6b10174d0f7cce965475e34527afcfbcf .
2020-05-22 23:32:12 +02:00
Kovid Goyal
2fc6f3b542
Merge changes from upstream
...
https://github.com/glfw/glfw/commit/e65de2941c056ee5833b4dab3db36b297b53aa14
2020-05-01 14:57:55 +05:30
Kovid Goyal
aa9c3cd634
Report modifier key state when sending wheel events to the terminal program
2020-04-29 20:02:55 +05:30
Kovid Goyal
601cf01222
Fix #2581
2020-04-24 19:24:11 +05:30
Kovid Goyal
759a15ccbb
X11: Handle invalid data being sent with drag events by some applications
...
Fixes #2505
2020-04-02 21:01:19 +05:30
Kovid Goyal
2458c3a7c6
Implement drag and drop of text/plain for Wayland as well
2020-03-19 13:28:21 +05:30
Kovid Goyal
e827e6fa21
X11: Allow drag and drop of text/plain in addition to text/uri-list
...
Fixes #2441
2020-03-18 22:37:23 +05:30
Luflosi
f8ae048d60
X11: Fix setting the clipboard string to itself
...
From upstream: https://github.com/glfw/glfw/commit/0c27ed1d0ef36672f0ef28d86bf8e108cc6e379d .
2020-02-17 01:12:52 +01:00
Kovid Goyal
b235f411b0
X11: Fix arrow mouse cursor using right pointing instead of the default left pointing arrow
...
Fixes #2341
2020-02-06 21:11:09 +05:30
Kovid Goyal
748ca81d4b
Wayland: Fix a freeze in rare circumstances when having multiple OS Windows
...
Fixes #2307
Fixes #1722
2020-01-23 15:07:22 +05:30
Luflosi
ed9f9db1b0
X11: Fix parent window handle initialization
...
From upstream: https://github.com/glfw/glfw/commit/9372ba95faabd1bb45280d201d6ccdae77bf872e .
2020-01-15 13:19:33 +01:00
Luflosi
74bed658e1
X11: Fix no window position events during resize
...
From upstream: https://github.com/glfw/glfw/commit/fe57e3c2921a1901390534e1e51053df70b5644b .
2020-01-15 13:19:32 +01:00
Luflosi
053de5763a
X11: Fix BadMatch focusing a window on non-EWMH WM
...
From upstream: https://github.com/glfw/glfw/commit/aa5e31356178de43d42f43f48914a62c25033f4b .
2020-01-08 19:50:17 +01:00
Kovid Goyal
321771b150
Merge branch 'resize-by-increments' of https://github.com/aes/kitty
2020-01-07 10:44:55 +05:30
Luflosi
b9a08eacb0
X11: Cleanup
...
From upstream: https://github.com/glfw/glfw/commit/8149a5fc00e63ff1e94228f338f1a27de374c68b .
2020-01-03 02:37:19 +01:00
Luflosi
4a3686c16c
X11: Cleanup
...
From upstream: https://github.com/glfw/glfw/commit/73a8ebb691813ccdc1531c1bd916c352ac0b7574 .
2019-12-19 12:38:56 +01:00
Luflosi
ca2eda2c5b
X11: Cleanup
...
From upstream: https://github.com/glfw/glfw/commit/4e70c95aa3bcb666320e17f2097f33d18a7fc225 .
2019-12-19 12:35:44 +01:00
Luflosi
0981828493
X11: Fix updating GLFW_FLOATING on a hidden window
...
From upstream: https://github.com/glfw/glfw/commit/9db156421f038e5a269a63d59e509f4fb1e2392b .
2019-12-19 12:31:31 +01:00
Luflosi
79532a315c
X11: Fix invalid read when clearing GLFW_FLOATING
...
From upstream: https://github.com/glfw/glfw/commit/0b652a44d2afe593d6eca8a0d586c20555a0497c .
2019-12-19 12:27:36 +01:00
Luflosi
e40616a0db
X11: Fix missing checks for EWMH attention atoms
...
From upstream: https://github.com/glfw/glfw/commit/9b6d68ec70da775c4e2bf6481f86117cf9d9f551 .
2019-12-19 12:25:09 +01:00
Luflosi
5eff3897de
X11: Fix maximization of hidden windows
...
From upstream: https://github.com/glfw/glfw/commit/4837b78ffe48aa9fab7a9657347b77cba104979a .
2019-12-19 12:20:58 +01:00
Anders Eurenius
4619259e26
Implement resize by increment
2019-12-09 08:33:32 +01:00
Kovid Goyal
82e88b54c7
X11: Fix decoration enabling after window creation
...
From upstream: https://github.com/glfw/glfw/commit/5fc4c01302b0729fd9f39e8c504e28cf7347153c
2019-10-31 09:04:45 +05:30
Benoit de Chezelles
d8fc23c38f
remove outdated 'fixme'
2019-10-16 02:41:26 +02:00
Benoit de Chezelles
7f2b98fad7
Rename all uses of 'scancode' to 'native_key' where relevant
2019-10-16 02:25:20 +02:00
Benoit de Chezelles
2b6dde2ac5
Wish: rename scancode → native_key in glfw codebase
2019-10-16 02:00:24 +02:00
Luflosi
a8f6615380
Fix broken paste on X11
...
Fixes https://github.com/kovidgoyal/kitty/issues/2008 .
2019-09-29 02:48:09 +02:00
Kovid Goyal
0d68b7078c
Check for float conversion issues on build
...
Useful to catch any errors left over from the migration of times from
double to int64_t
2019-09-27 19:47:25 +05:30
Luflosi
f3b9ff5f9f
Use datatype monotonic_t instead of double to keep track of time
...
The time is stored in a signed 64 bit integer with nanosecond accuracy. This eliminates the possibility of floating-point inaccuracies.
`monotonic_t` can currently hold values large enough to work correctly for more than 200 years into the future.
Using a typedef instead of directly using `int64_t` everywhere will also allow easily changing the datatype in the future should the need arise for more precise or bigger time values.
2019-09-25 17:43:11 +02:00
Luflosi
6cc720a350
Fix typos
...
Inspired by https://github.com/glfw/glfw/pull/1549/commits/4d3ee554b31e734a7c341d4aa5e47d85306f7d74 .
Found using `codespell`.
2019-08-26 12:31:15 +02:00
Luflosi
28bb123be8
Update the GLFW version number from 3.3 to 3.4
...
Closes https://github.com/kovidgoyal/kitty/issues/1884 .
From https://github.com/glfw/glfw/commit/a337c568486025d22443535b7c047a563bc34373 .
2019-08-02 11:00:16 -05:00
Luflosi
489f3e6c9d
Add C dialect reminders to each glfw source file
...
Reduces the difference to upstream.
From https://github.com/glfw/glfw/commit/56aad76b164be741af21688ea3832093c2069cef .
2019-07-20 21:07:27 -05:00
Kovid Goyal
51fdb8200a
X11: Fix focus events not being filtered
...
From upstream: https://github.com/glfw/glfw/commit/c6b95e3b07b9c20d9adae2ddebf69706540180de
2019-07-20 19:11:00 +05:30
Luflosi
bdc4558a43
Update GLFW copyright years
...
Reduces the difference to upstream.
From https://github.com/glfw/glfw/commit/ab118b2529a8da3e6b5f847b80ee86bb8c6bf6bb .
2019-07-20 00:30:13 -05:00