Kovid Goyal
296f512bfb
Forgot you cant use sizeof on arrays passed as function parameters
2019-12-28 08:44:32 +05:30
Kovid Goyal
c8f20d0edf
Ensure key name is null terminated
2019-12-28 08:33:13 +05:30
Kovid Goyal
286f3630d7
Merge branch 'macos_fix_keyboard_shortcut_encoding' of https://github.com/Luflosi/kitty
2019-12-28 08:26:03 +05:30
Luflosi
38423505b1
Remove numpad keys from macOS keyboard shortcuts
...
See previous commit message for the reason.
2019-12-27 15:12:26 +01:00
Luflosi
9a3c621eb6
Fix macOS keyboard shortcut encoding
...
`glfwGetCocoaKeyEquivalent()` in `glfw/cocoa_window.m` expects the returned characters to be of type `unichar`, which won't work for all unicode characters because it is defined as `unsigned short` according to https://developer.apple.com/documentation/foundation/unichar?language=objc , which is only guaranteed to be at least 16 bits in size. The code calling this function also expects the encoding to be UTF-16.
When I added the various keys in https://github.com/kovidgoyal/kitty/pull/1928 , I missed these facts. This means, that `glfwGetCocoaKeyEquivalent()` will behave unexpectedly when called with any of the new-ish keys. Luckily this function is currently only used for determining the macOS shortcut for `new_os_window` but I plan on using it more in the future.
Some of the constants, e.g. `NSBackspaceCharacter` are UTF-16 constants, so we can't just use UTF-8 everywhere.
I fixed the problem by using either UTF-8 characters packed into a `uint32_t` or UTF-16 characters in a `unichar` and then converting them to a UTF-8 encoded char string.
`NSEventModifierFlagNumericPad` isn't guaranteed to fit in a `unichar`, which made this undefined behaviour. It also didn't work. I tried to make it work using `NSEventModifierFlagNumericPad` as a modifier instead, as can be seen in this commit, but couldn't get it to work either because the constants used are native key codes and not unicode characters. Therefore the numpad keys will be removed in the next commit.
2019-12-27 12:42:51 +01:00
Luflosi
46dd648380
Use the correct pointer type instead of void*
2019-12-25 11:51:40 +01:00
Luflosi
b2d428618c
Add circumflex (^) key
2019-12-22 18:41:07 +01:00
Luflosi
4a3686c16c
X11: Cleanup
...
From upstream: 73a8ebb691 .
2019-12-19 12:38:56 +01:00
Luflosi
ca2eda2c5b
X11: Cleanup
...
From upstream: 4e70c95aa3 .
2019-12-19 12:35:44 +01:00
Luflosi
0981828493
X11: Fix updating GLFW_FLOATING on a hidden window
...
From upstream: 9db156421f .
2019-12-19 12:31:31 +01:00
Luflosi
79532a315c
X11: Fix invalid read when clearing GLFW_FLOATING
...
From upstream: 0b652a44d2 .
2019-12-19 12:27:36 +01:00
Luflosi
e40616a0db
X11: Fix missing checks for EWMH attention atoms
...
From upstream: 9b6d68ec70 .
2019-12-19 12:25:09 +01:00
Luflosi
5eff3897de
X11: Fix maximization of hidden windows
...
From upstream: 4837b78ffe .
2019-12-19 12:20:58 +01:00
Kovid Goyal
2baa34beb8
Move a couple of functions to where they are actually needed
2019-12-19 16:43:51 +05:30
Kovid Goyal
87e2f7f86d
Missed a couple of macOS timer calls
2019-12-19 16:34:47 +05:30
Kovid Goyal
e142083d53
Remove unused code
...
Strip out the GLFW timer code, since we use our own kitty based
monotonic clock.
2019-12-19 16:27:25 +05:30
Luflosi
aec9c31bca
Formatting
...
From upstream: 506a6aafde .
2019-12-18 18:34:55 +01:00
Luflosi
ba201c4c92
Add curly braces
...
From upstream: 9486ec0c02 .
The upstream commit mainly changes some cmake stuff, which we don't use and only really adds curly braces to `egl_context.c` (and changes some formatting).
2019-12-18 18:12:48 +01:00
Luflosi
2804e1ff81
Cocoa: Update outdated comment
...
From upstream: b3544ca43e .
2019-12-18 15:41:31 +01:00
Kovid Goyal
ae27d36902
Fix previous merge
2019-12-18 18:42:59 +05:30
Luflosi
778474f436
Wayland: Unset the cursor shape on border exit
...
From upstream: ef6189f348 .
2019-12-18 14:01:29 +01:00
Kovid Goyal
b92f95b092
NSGL: Fix disabling of Retina resolution
...
From upstream: fa60269245
2019-12-15 20:54:21 +05:30
Anders Eurenius
4619259e26
Implement resize by increment
2019-12-09 08:33:32 +01:00
Kovid Goyal
7bf0afa621
Fix #2187
2019-12-08 22:37:47 +05:30
Luflosi
4fc733a9c8
Comment commented out code back in
...
This piece of code is not run when the `GLFW_COCOA_MENUBAR` init hint is set to `0`, which kitty does.
This reduces the difference to GLFW upstream a little.
2019-11-24 13:29:06 +01:00
Luflosi
e0edef6719
Change return type of two functions
...
`on_application_reopen()` and `intercept_cocoa_fullscreen()` both only have two possible return values and can therefore have a return type of `bool`.
2019-11-24 13:06:46 +01:00
Luflosi
f9fd39b8c1
Create macOS menu bar where GLFW creates it
...
GLFW creates the menu bar in the applicationWillFinishLaunching method, while kitty creates it in `create_os_window()`. This patch changes the behaviour to match GLFW.
In practice, without this change, there can be a short time where the menu bar is not fully populated.
2019-11-24 08:43:01 +01:00
Luflosi
c05cbed5b2
Reduce difference to GLFW upstream
2019-11-23 13:19:06 +01:00
Luflosi
468468ab9f
Wayland: Don’t update cursor position in the frame
...
From upstream: a80788c17f .
2019-11-22 12:38:56 +01:00
Luflosi
aed7a197c7
Wayland: Don’t reload the cursor on every pointer motion
...
From upstream: a9f674e719 .
2019-11-22 02:35:14 +01:00
Luflosi
d6072f6218
X11: Assume 96 DPI if RandR monitor size is zero
...
From upstream: e96dc5d219 .
2019-11-22 02:07:34 +01:00
Luflosi
89b07a1c6b
Cocoa: Fix full screen window iconification
...
From upstream: 2c519709be .
2019-11-22 01:56:55 +01:00
Luflosi
6feb906953
Cocoa: Cleanup
...
From upstream: bd452016be .
2019-11-21 18:30:03 +01:00
Luflosi
fae51d4e00
Cocoa: Add comments for Cocoa symbol macros
...
From upstream: 94cb0347ab .
2019-11-21 14:40:34 +01:00
Kovid Goyal
d8dd22048a
Wayland: Ensure that glfw window content scale and kitty window content scale are in sync after the window is placed on a monitor
2019-11-16 10:47:05 +05:30
Kovid Goyal
65fa7da24a
Wayland: Use the primary monitor scale for windows on creation
...
This is needed because on creation the window may not have been assigned
to any monitors, so we fallback to using the scale of the primary
monitor. Fixes #2133 . Fixes #2135
2019-11-16 10:00:41 +05:30
Luflosi
b42f4ac288
Restore proper error reporting functionality
...
In 841c907efc , the `%m` format specifier was replaced by `%%m`, which just prints `%m`. To keep the functionality of `%m` without using `%m`, the error string can be printed manually.
2019-11-05 00:42:29 +01:00
Kovid Goyal
61a77e19ef
X11: Fix content scale fallback value on KDE
...
From upstream: 75294462b3
2019-10-31 09:10:01 +05:30
Kovid Goyal
82e88b54c7
X11: Fix decoration enabling after window creation
...
From upstream: 5fc4c01302
2019-10-31 09:04:45 +05:30
Benoit de Chezelles
4d6472128c
Rename scancode to keycode for cocoa implementation
2019-10-17 20:41:48 +02:00
Benoit de Chezelles
28525766a5
Final changes before 'ready for review'
2019-10-16 02:47:14 +02:00
Benoit de Chezelles
d8fc23c38f
remove outdated 'fixme'
2019-10-16 02:41:26 +02:00
Benoit de Chezelles
8cae70fa36
Update doc
2019-10-16 02:36:55 +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
Benoit de Chezelles
0c254fa7c7
GLFWkeyevent: rename scancode → native_key
2019-10-16 02:00:24 +02:00
Luflosi
b6ee88056e
Minor grammar correction
2019-10-16 00:46:52 +02:00
Luflosi
81f31ca215
Reduce difference of glfw/glfw3.h to GLFW upstream
2019-10-15 15:37:35 +02:00
Luflosi
087376b44d
GLFW: Documentation work
...
From upstream: a43d1a4937 .
2019-10-15 14:37:41 +02:00
Luflosi
c117f36009
GLFW: Cleanup
...
From upstream: d5ab3e919a .
2019-10-15 14:25:46 +02:00
Luflosi
410165c14d
GLFW: Improve (?) reference documentation for callbacks
...
From upstream: 51bb76c7c3 .
2019-10-15 12:11:01 +02:00
Luflosi
63c4f64bf5
Reduce difference to GLFW upstream
...
From upstream: 773f4495f0 .
2019-10-12 15:19:44 +02:00
Luflosi
114b8cff93
Cleanup
...
From upstream: 62b7fe8311 .
2019-10-11 20:26:27 +02:00
Luflosi
506f2f7db7
Replace weird character with space
...
In 4c4c6ab0e6 you added a weird unicode character, which is apparently called an Object Replacement Character, instead of a space.
2019-10-09 18:32:49 +02:00
Kovid Goyal
f476c56f91
Drop support for the gtk_primary_selection wayland protocol
...
sway recently decided to start complaining when binding
wp_primary_selection_device_manager interface to gtk_primary_selection
name, which means we either have to maintain an in-tree version
of the gtk_primary_selection protocol or drop support for sway.
Sway has not quite annoyed me enough yet for the latter.
See #1977
2019-10-09 07:37:03 +05:30
Luflosi
7ddbb613fe
Cocoa: Fix window creation blocking after re-init
...
From 2fbb560eb7 .
2019-10-08 13:41:10 +02:00
Luflosi
1f8631cc99
Cocoa: Move app delegate and menu creation to init
...
From ea7eb2ddab .
2019-10-07 21:24:58 +02:00
Luflosi
5b008163af
Cocoa: Add NSApplicationDelegate protocol
...
From c3ed70a4b7 .
2019-10-06 16:58:06 +02:00
Kovid Goyal
4a8f9efe79
Wayland: Resume key repeat on focus gained if the previously repeated key is pressed
2019-09-30 18:47:43 +05:30
Kovid Goyal
19d36fbe69
Wayland: Fix key repeat not being stopped when focus leaves window. This is expected behavior on Wayland, apparently
...
Fixes #2014
2019-09-30 16:45:39 +05:30
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
97fe38fbbc
monotonic_start_time needs to be a global symbol, not local to each translation unit
2019-09-28 08:18:21 +05:30
Kovid Goyal
3378175450
Hopefully the last macOS float conversion fix
2019-09-27 20:14:05 +05:30
Kovid Goyal
46d49e18c0
More macOS float fixes
2019-09-27 20:07:09 +05:30
Kovid Goyal
f68339c571
float conversion fixes for macOS
2019-09-27 19:56:48 +05:30
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
Kovid Goyal
4ec1a8d9c3
Merge branch 'extract-glfw-key-event-data' of https://github.com/bew/kitty
2019-09-25 15:44:56 +05:30
Benoit de Chezelles
aadab38487
Fix compilation for macos
2019-09-24 22:03:55 +02:00
Benoit de Chezelles
53275c9137
Extract key event data to struct
2019-09-24 19:15:35 +02:00
Kovid Goyal
fb1c318a09
macOS: Fix a regression in the previous release that caused a crash when pressing a unprintable key, such as the POWER key
...
Fixes #1997
2019-09-24 16:07:52 +05:30
Kovid Goyal
fe807dd66f
Fix missing parameter name in docs
2019-09-22 19:39:22 +05:30
Luflosi
628e6cc87f
Mark unused parameters in glfw/null_*.c
...
kitty didn't compile on FreeBSD for me because of unused parameters in glfw/null_joystick.c, so I added the `UNUSED` attribute to them.
I also added `UNUSED` to the unused parameters in glfw/null_monitor.c and glfw/null_window.c as well even though they are probably not used.
2019-09-19 20:21:09 +02:00
Luflosi
e619eb9cbb
Add more keyboard keys
2019-09-08 12:32:19 +02:00
Luflosi
a65ee155c5
Indent lookup table in _glfwGetKeyName() to allow for longer keyboard key names
2019-09-08 12:32:19 +02:00
Luflosi
97e6978ed8
Order keyboard keys by their ASCII value
2019-09-08 12:32:19 +02:00
Luflosi
f05eefcc20
Allow adding keys with Unicode names on macOS
2019-09-08 12:32:19 +02:00
Kovid Goyal
c398d3d16e
Cocoa: Fix glfwSetWindowSize anchor point
...
This makes glfwSetWindowSize use the top-left corner as anchor point
instead of the bottom-left corner.
Upstream: 7f02898264
2019-09-08 09:16:07 +05:30
Kovid Goyal
9dbc54aad6
Fix comparison of video modes of equal area
...
This fixes the bug of video modes being discarded if they had
a different resolution but the same area as another mode.
Upstream: 2777f6a754
2019-09-08 09:12:39 +05:30
James McCoy
34350af61c
Only use linux_joystick.c on Linux
...
Rather than using null_joystick.c when _plat is a bsd, use
linux_joystick.c when _plat is a linux. This fixes a build issue with
other non-BSD, non-Linux platforms.
2019-09-03 23:02:16 -04:00
Luflosi
b3b830bb5f
Make adding more printable keys slightly easier
...
When adding keys after `GLFW_KEY_UNDERSCORE`, one now needs to change a `#define` right below the last printable key instead of changing it elsewhere in the code.
This commit now also marks `GLFW_KEY_PLUS` and `GLFW_KEY_UNDERSCORE` as printable characters.
2019-09-01 11:24:14 +02:00
Luflosi
0459dda5c2
Fix bool indentation
...
The wrong indentation was caused by the removal of GLFWbool in fe62700825 .
2019-08-30 15:32:20 +02:00
Luflosi
c0c7cfacc2
Fix NSLog() printing of unicode format strings
...
See https://stackoverflow.com/questions/720052/nslog-incorrect-encoding .
The `%s` format placeholder for `NSLog()` expects an encoding other than UTF-8, which leads to garbled Unicode characters when trying to print a UTF-8 encoded string.
```Objective-C
NSLog(@"Ä %s %@", "Ä", @("Ä"));
```
prints `Ä √Ñ Ä`.
As can be seen in the example above, the workaround is to convert the UTF-8 encoded C-string to an `NSString` object and print that instead.
`debug_key()` calls `NSLog()`.
2019-08-30 15:03:51 +02:00
Kovid Goyal
90a985b73a
Make format_text() more secure
2019-08-28 05:41:20 +05:30
Luflosi
902fc22670
Simplify GLFW compilation code
...
This commit removes the need for `is_macos` in `glfw/glfw.py` by moving a few lines of code. Instead of relying on the information that the compilation is or isn't happening on macOS, the code now does the right thing based on which `module` is being built.
This changes the order of the compilation flags slightly.
2019-08-26 16:47:19 +02:00
Luflosi
6cc720a350
Fix typos
...
Inspired by 4d3ee554b3 .
Found using `codespell`.
2019-08-26 12:31:15 +02:00
Luflosi
94d56d1a9e
Correct indentation for two _glfwInputError() messages
...
This commit changes the indentation of two error messages to match the indentation in the rest of the code.
2019-08-25 21:29:58 +02:00
Luflosi
06c2263657
macOS: implement drag and drop of text into kitty
...
Closes #1368 .
2019-08-24 01:29:33 +02:00
Luflosi
599be7ddc9
Don't add Apple Frameworks twice
...
These Frameworks are added again a couple lines below in the check for `module == 'cocoa'`.
2019-08-11 02:26:12 +02:00
Luflosi
28bb123be8
Update the GLFW version number from 3.3 to 3.4
...
Closes https://github.com/kovidgoyal/kitty/issues/1884 .
From a337c56848 .
2019-08-02 11:00:16 -05:00
Luflosi
5f855ce547
Use context managers to open files
...
Inspired by d50a6ddc1b .
2019-08-01 13:21:26 -05:00
Kovid Goyal
9cbb726566
Fix #1865
2019-07-30 06:20:54 +05:30
Kovid Goyal
d218900b57
Remove unused header
2019-07-29 09:45:02 +05:30
Kovid Goyal
cab949a939
Fix building with compilers that dont support __has_include
2019-07-29 09:44:05 +05:30
Luflosi
464a6c1441
Fix indentation of bool variables in glfw/egl_context.h
...
Caused by fe62700825 .
2019-07-28 00:23:17 -05:00
Luflosi
b8d2b76ee4
Reduce the difference of glfw to upstream
2019-07-28 00:10:50 -05:00
Luflosi
922bc62e0e
GLFW: Fix invalid ranges for gamepad axis sources
...
From 9420e6f0d0 .
2019-07-26 13:30:38 -05:00
Luflosi
61df266df7
Fix indentation of bool variables in glfw/internal.h
...
Caused by fe62700825 .
2019-07-26 11:45:32 -05:00
Luflosi
961b2c9b65
GLFW: Documentation work
...
From 3cf7645b96 .
2019-07-25 23:07:00 -05:00
Luflosi
cdbe2f13ca
Cocoa: Move slightly towards modern Objective-C
...
Inspired by 9a9568212c .
2019-07-25 17:14:32 -05:00
Kovid Goyal
d9f90ef077
Make qsort invocations type independent
2019-07-23 10:20:41 +05:30
Luflosi
c02ba03f39
Remove glfw/wgl_context.c and glfw/wgl_context.h
2019-07-21 15:03:39 -05:00
Luflosi
1590c59131
Fix assertion for glfwSetGamma value
...
From 751c6f9a27 .
2019-07-20 23:17:58 -05:00
Luflosi
489f3e6c9d
Add C dialect reminders to each glfw source file
...
Reduces the difference to upstream.
From 56aad76b16 .
2019-07-20 21:07:27 -05:00
Kovid Goyal
5fef4726a7
Cocoa: Fix file-local function not declared static
...
From upstream: 062a1c22b5
2019-07-20 19:12:21 +05:30
Kovid Goyal
51fdb8200a
X11: Fix focus events not being filtered
...
From upstream: c6b95e3b07
2019-07-20 19:11:00 +05:30
Kovid Goyal
fb0d98ead1
Add more debugs to Wayland handleEvents()
2019-07-20 14:48:28 +05:30
Kovid Goyal
4096caba64
Cancel read if dispatch_pending fails
2019-07-20 14:32:57 +05:30
Kovid Goyal
38f77144fa
Wayland: dont abort the event handler early if there are no pending events from the compositor. This ensures that the tick callback and other event sources are dispatched.
2019-07-20 14:09:09 +05:30
Kovid Goyal
b8041ce17f
Wayland: Fix infinite loop if the compositor dies
2019-07-20 13:55:38 +05:30
Luflosi
bdc4558a43
Update GLFW copyright years
...
Reduces the difference to upstream.
From ab118b2529 .
2019-07-20 00:30:13 -05:00
Kovid Goyal
1cb15dedac
Simplify the event loop code
...
Also reduce input latency by ignoring repaint_delay when
there is actual pending input.
Gets rid of request_tick_callback(). Now empty events
result in the tick callback being called so there is only a
single mechanism for waking up the main loop and getting
the tick callback called.
2019-07-18 15:51:54 +05:30
Kovid Goyal
f5cf6c1dcb
Also make the loop flags volatile
2019-07-17 19:55:19 +05:30
Kovid Goyal
89307727e7
Use atomic variables for main loop flags
2019-07-17 19:45:52 +05:30
Kovid Goyal
8244f7cd58
Linux: Only process global state when something interesting happens
...
This matches behavior on macOS. Had initially set the code to process
on every loop tick in an attmept to workaround the issue of the event
loop freezing on X11 until an X event is delivered. However, in light
of #1782 that workaround was incorrect anyway. Better to have similar
behavior across platforms. This also has the advantage of reducing CPU
consumption.
Also add a simple program to test event loop wakeups.
2019-07-15 21:30:00 +05:30
Kovid Goyal
eb30ba7722
Cocoa: Fix code to shutdown display link for inactive monitors
2019-07-11 22:34:28 +05:30
Kovid Goyal
f8418d68a6
Fully drain the wakeupfd
2019-07-09 18:49:46 +05:30
Kovid Goyal
c0000fb24e
Should use an unsigned int for eventfd
2019-07-09 18:42:17 +05:30
Kovid Goyal
c169f7ae83
Retry writing to wakeupfd on EAGAIN as well
2019-07-09 18:40:51 +05:30
Kovid Goyal
7e36489034
Dont call detect joysticks if support for them has been disabled
2019-07-08 11:18:00 +05:30
Kovid Goyal
d259b12ae7
Micro-optimization: Avoid repeated calls to XQLength
2019-07-08 11:05:04 +05:30
Kovid Goyal
e7173f8145
Linux: Fix a regression in 0.14.0 that caused the event loop to tick continuously, wasting CPU even when idle
...
Fixes #1782
2019-07-07 05:57:18 +05:30
Kovid Goyal
67f23664c9
Generate Wayland protocol definitions in parallel as well
2019-07-05 20:57:56 +05:30
Kovid Goyal
39f6071c68
macOS: Fix a deadlock with CVDisplayLink
...
I had added an optimization to not pass messages to
main thread every time the CVDisplayLink timer fired, unless
a render frame for that monitor was actually requested.
However, this optimization is impossible to implement wihtout a deadlock
since CVDisplayLink has its own internal lock that it does not expose.
So I guess macOS users with multiple monitors will simply have to take
the performance hit of useless wakeups sixty times a second for every
extra monitor.
Fixes #1779
2019-07-05 20:16:32 +05:30
Kovid Goyal
556992a117
Forgot to make the eventfd cloexec and non-blocking
2019-07-05 10:08:15 +05:30
Kovid Goyal
a41ef8d513
Abort if addWatch during initialization of poll data fails
2019-07-05 10:00:39 +05:30
Kovid Goyal
6d96a89328
Linux: Use the more efficient eventfd mechanism to wakeup the event loop
2019-07-05 09:54:24 +05:30
Kovid Goyal
0fb1481038
Move event loop wakeup code into backend_utils
2019-07-05 09:34:51 +05:30
Kovid Goyal
4b77530c65
Store a reference to the glfw window pointer in the NSWindow class as well
2019-07-04 09:56:59 +05:30
Kovid Goyal
c9a574a764
Cocoa: Ensure no callbacks are called on the view even if it is retained after being released
...
Fixes #1761 (I hope)
2019-07-04 09:03:13 +05:30
Luflosi
37aee7133d
Convert tabs to spaces
2019-07-03 20:28:40 +02:00
Kovid Goyal
f49f0d19f9
oops
2019-07-01 16:39:02 +05:30
Kovid Goyal
b9029f6c67
Remove unnecessary extra copy
2019-07-01 13:57:16 +05:30
Kovid Goyal
92496f42c9
Try a couple of different header files for the BTN_ includes
2019-07-01 10:48:35 +05:30
Kovid Goyal
841c907efc
Build glfw with all warnings enabled
2019-07-01 10:42:07 +05:30
Kovid Goyal
9bc288cd8e
...
2019-07-01 08:49:18 +05:30
Kovid Goyal
2ef0391b08
Convert some declarations to C99 style
...
From upstream: 0c6b505619
2019-07-01 08:32:47 +05:30
Kovid Goyal
6db768d1a3
Remove unneeded header
...
Fixes #1768
2019-07-01 06:07:55 +05:30
Kovid Goyal
9b080950a9
Cocoa: Cleanup
...
This makes the Cocoa _glfwPlatformSetWindowMonitor consistent with its
X11 and Win32 counterparts.
From upstream: 3262c29440
2019-07-01 05:59:32 +05:30
Kovid Goyal
3cd1fef4cb
X11: Clean up EWMH feature detection
...
From upstream: fad9896d38
2019-07-01 05:57:17 +05:30
Kovid Goyal
a491a801bf
X11: Let the language initialize XEvent structs
...
From upstream: 1f508530f0
2019-07-01 05:47:04 +05:30
Kovid Goyal
75d697fa97
Fix #1766
2019-06-30 16:07:45 +05:30
Kovid Goyal
8c9d2d3ca2
macOS: Reduce energy consumption when idle by shutting down Apple's display link thread after 30 second of inactivity
...
Fixes #1763
2019-06-29 14:21:47 +05:30
Kovid Goyal
86305fdeb3
Use CVDisplayLinkIsRunning() rather than tracking started state since the OS can apparently shutdown the thread on its own in some scenarios
2019-06-28 17:46:59 +05:30
Luflosi
8ffc841a3a
Reduce the difference of glfw/cocoa_* to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-21 15:53:26 +02:00
Luflosi
fb98aa650d
Reduce the difference of glfw to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-20 21:40:59 +02:00
Luflosi
f1c36aba83
Reduce the difference of glfw/null_* to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-12 20:45:21 +02:00
Luflosi
8be698681c
Reduce the difference of glfw/wl_* to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-12 14:55:56 +02:00
Luflosi
bada795320
Reduce the difference of glfw/x11_* to glfw upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-11 17:57:39 +02:00
Kovid Goyal
0fafc07db0
Fix #1702
2019-06-11 15:30:50 +05:30
Kovid Goyal
47acc9ff2f
Get rid of GLFW_(TRUE|FALSE)
2019-06-08 08:14:30 +05:30
Kovid Goyal
fe62700825
Get rid of GLFWbool
2019-06-08 08:12:42 +05:30
Luflosi
fbc4d3e1be
Remove extra spaces
2019-06-08 00:48:09 +02:00
Kovid Goyal
656916e0fa
Use remove_i_from_array in a few more places
...
Also simplify the REMOVER macro
2019-06-07 14:25:33 +05:30
Kovid Goyal
4a55eb9e7f
typo
2019-06-07 13:53:35 +05:30
Kovid Goyal
9c8cf04a80
Wayland: Don't insert the same monitor twice if the done event for an output is sent twice
2019-06-07 13:38:44 +05:30
Kovid Goyal
e846bc9308
Wayland: Fix crash when enabling disabling monitors on sway
...
When an output is unregistered, the corresponding monitor object should
be removed from every windows' monitor list
Proper fix for #1696
2019-06-07 12:40:02 +05:30
Kovid Goyal
3c7a71772c
Wrap memmove in glfw with a nice safe macro
2019-06-07 10:01:10 +05:30
Kovid Goyal
303711ab8d
Wayland: Detect SSD by querying compositor
...
Much more reliable than checking environment variables. Does
add ~1ms to startup time on Wayland.
2019-06-05 10:37:57 +05:30
Kovid Goyal
c509ecca52
Wayland: Fix resizing the window on a compositor that does not provide server side window decorations, such a GNOME or Weston not working correctly
...
See #1659
2019-06-04 19:40:00 +05:30
Kovid Goyal
e5d8eb7845
Micro-optimization
2019-06-04 19:28:46 +05:30
Kovid Goyal
8406d4a8f1
Forgot another print statement
...
Really should not code when I am busy :)
2019-06-02 20:23:56 +05:30
Kovid Goyal
e25b64ae15
...
2019-06-02 18:01:32 +05:30
Kovid Goyal
59205a4caf
macOS: Fix a regression in the previous release that broke using :kbd:ctrl+shift+tab
...
Fixes #1671
2019-06-02 17:36:16 +05:30
Kovid Goyal
f6f55aaa9a
NSGL: Remove enforcement of forward-compatible flag
...
Upstream commit:
0b01d850ed
2019-05-29 19:52:15 +05:30
Kovid Goyal
6f1aecab99
Remove pointless comment
...
Upstream commit
84ec99bb01
2019-05-29 19:50:22 +05:30
Kovid Goyal
f33205a490
Wayland: Fix maximizing the window on a compositor that does not provide server side window decorations, such a GNOME or Weston not working
...
Fixes #1662
2019-05-29 17:07:42 +05:30
Kovid Goyal
8193b2a44b
Use layout depenedent key check for strl+tab as well
2019-05-29 08:43:13 +05:30
Kovid Goyal
8e57fd93c6
macOS: Fix a regression that caused cmd+v to double up in the dvorak keyboard layout
...
Fixes #1652
2019-05-28 20:35:13 +05:30
Kovid Goyal
d262f43b5b
Log ARepeat property
2019-05-28 20:18:50 +05:30
Kovid Goyal
73224e7d95
One less line in the debug log
2019-05-28 20:04:21 +05:30
Kovid Goyal
abf9c4117d
macOS: Fix a regression that could cause rendering of a kitty window to occasionally freeze in certain situations, such as moving it between monitors or transitioning from/to fullscreen
...
Fixes #1641
2019-05-28 17:54:34 +05:30
Kovid Goyal
a51239c6ae
Add support for the underscore key found in some keyboard layouts
...
Fixes #1639
2019-05-24 17:59:50 +05:30
Luflosi
05f01525c3
Revert "macOS: Fix cocoa mouse y-coord off by one"
...
This reverts commit 8969206450 .
Fixes #1621 .
When committing b3f1acd400 , applying the glfw upstream patch 3c3981a4f0 for https://github.com/glfw/glfw/issues/1461 , this commit should have been reverted as it was just a quick fix for https://github.com/glfw/glfw/issues/1461 .
2019-05-21 19:31:57 +02:00
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
4fff84b4b9
Add void to all function declarations for functions that take no arguments
...
Micro-optimization for some architectures. Enforced via
-Wstrict-prototypes
2019-05-13 11:04:21 +05:30
Kovid Goyal
3e964163c0
Pass zero for fullscreen flags on non Cocoa platforms
2019-05-12 16:07:54 +05:30
Kovid Goyal
c95d3b19b3
X11 backend: Get rid of override redirect
...
Was used for hackish fullscreen, which we no longer support
2019-05-12 15:59:16 +05:30
Kovid Goyal
1fa9b8f102
X11: use the window manager's native full-screen implementation when making windows full-screen
...
This matches the behavior on Cocoa and Wayland.
Fixes #1605
2019-05-12 15:53:06 +05:30
Kovid Goyal
ad672fc9d6
Wayland: Remove wl_shell support
...
From upstream: 599fb3de34
2019-05-11 17:50:02 +05:30
Kovid Goyal
a0f298ddb0
...
2019-05-11 16:35:48 +05:30
Kovid Goyal
a3f9835b7b
X11 backend: Improve performance when handling consecutive XkbKeyMap events
...
Only recompile the keymap when actually needed, greatly improving
performance when the X server sends multiple consecutive key map events.
Fixes #1606
2019-05-11 13:39:05 +05:30
Kovid Goyal
268e5cef3b
Remove useless else
2019-05-03 13:37:57 +05:30
Kovid Goyal
f0c663d42d
macOS: Improve handling of IME extended input
...
Compose characters are now highlighted and the IME panel moves along with the text
Fixes #1586
Fixes #1461
2019-05-03 13:30:56 +05:30
BlahGeek
e36e44ab3a
macOS: do not pass input events while having marked text
...
fix chinese input method backspacing issue
macOS: Set pre-edit text for IME
macOS: implement glfwPlatformUpdateIMEState
set firstRectForCharacterRange correctly
macOS: update IME position on each input
macOS: use float instead of int for updateIMEState
minor fix
macOS: ignore marked text on deadkey
fixes german keyboard input
macOS: convert markedRect to screen coord
2019-05-03 13:27:06 +05:30
Kovid Goyal
408cd9cf9b
Wayland: Only print out window attention error once
2019-04-27 14:53:31 +05:30
Kovid Goyal
8b47e63136
Wayland backend: Dont roundtrip to the server just to wakeup the main loop
2019-04-27 14:52:15 +05:30
Kovid Goyal
379ec88776
Only use the tick callback mechanism on macOS
...
On Linux, just call the tick callback on every loop tick. This is much
simpler, and should fix the issue with screen updates sometimes getting
stuck waiting for an X11 event.
Note that this was what used to happen (global state being checked on
every loop tick) before the refactoring to use a GLFW event loop,
therefore there should be no performance regressions, though we
of course end up checking global state on every group of events on
Linux, instead of only when something of interest happens. I suspect, to
achieve the latter is going to require implementing a mutex/lock in the
main loop to avoid races, which doesn't seem worth it.
2019-04-27 14:40:09 +05:30
Kovid Goyal
a320e8bc25
When debuggin event loop display number of dispatched X11 events
2019-04-27 13:52:44 +05:30
Kovid Goyal
0987a536b1
Add extra logging to debug the event loop
...
This should make tracking down the root cause of the
event loop pauses on X11 easier. And the infrastructure
should come in handy in the future as well.
2019-04-24 16:16:40 +05:30
Kovid Goyal
b6267d4a8c
X11 backend: Get rid of server roundtrip just to wake up the event loop
2019-04-24 13:42:26 +05:30
Kovid Goyal
2df97e309b
X11 backend: Dispatch X11 events after XFlush
2019-04-24 06:25:00 +05:30
Kovid Goyal
ef86f8a20c
NSGL: Disable swap interval
...
Swap interval now uses CVDisplayLink.
From upstream: 28f118f4de
2019-04-18 10:14:29 +05:30
Kovid Goyal
b3f1acd400
Cocoa: Fix coordinate transformations
...
From upstream: 3c3981a4f0
2019-04-18 10:12:41 +05:30
Kovid Goyal
5c4462281e
Cocoa: Upstream fix for mouse hover detection
...
0e74265426
2019-04-18 09:58:09 +05:30
Kovid Goyal
8969206450
macOS: Fix cocoa mouse y-coord off by one
...
See https://github.com/glfw/glfw/issues/1461
2019-04-09 22:02:36 +05:30
Kovid Goyal
41318d763b
Fix missing context APIs in version strings
2019-04-09 10:06:10 +05:30
Kovid Goyal
8251b906b6
Add a listener for GPU changed events on macOS
...
Currently does nothing, but could potentially be used to fix:
https://github.com/kovidgoyal/kitty/issues/794
Will need someone with the hardware though to test
exactly what needs to be done to restore the custom cursor image.
2019-04-06 10:05:21 +05:30
Kovid Goyal
b10312e249
Upstream fixes for vulkan surface creation and the retina hint
...
e108c0de0d
980fc9b52f
2019-03-28 13:09:22 +05:30
Kovid Goyal
6f3a9d6d29
macOS: Remove check for pre-10.8 SDK
2019-03-28 12:42:14 +05:30
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: 9883cb64f0
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: be295ccbea
2019-03-06 08:47:01 +05:30
Kovid Goyal
db16996181
Fix Coverity Scan false positive
...
From upstream: c20754c4a6
2019-03-06 08:40:02 +05:30
Kovid Goyal
aa2b21456f
Round refresh rate instead of truncating
...
From upstream: 621ece63c8
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: 45bd991ea9
2019-02-17 10:35:39 +05:30
Kovid Goyal
1c468b2931
Wayland: Only auto-iconify fullscreen windows
...
Upstream: edf0a07174
2019-02-17 10:31:17 +05:30
Kovid Goyal
85faad5ec7
Wayland: use SHM_ANON on FreeBSD
...
Upstream: 36ce73bbfd
2019-02-17 10:30:02 +05:30
Kovid Goyal
869152750c
X11: Fix system cursor used for GLFW_HAND_CURSOR
...
From upstream: 2a27eb95e4
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: 90e22947c6
2019-02-03 20:17:28 +05:30
Kovid Goyal
fb5dbc811b
Cocoa: Fix handling of analog joystick buttons
...
From upstream: 463ef7eb71
2019-02-03 20:16:47 +05:30
Kovid Goyal
c31c32f921
Cocoa: Add missing IOHID page and usages
...
From upstream: 51ca41dd9f
2019-02-03 20:15:33 +05:30
Kovid Goyal
22b756753a
X11: Fix EWMH state update for hidden windows
...
From upstream: 78e6a0063d
2019-02-03 20:09:18 +05:30
Kovid Goyal
cb7eb48768
Cleanup
...
From upstream: d5ab3e919a
2019-02-03 20:04:54 +05:30
Kovid Goyal
22ed014123
Fix tabs being used for spaces in some source code files
2019-02-03 19:59:02 +05:30
Kovid Goyal
419b078104
Remove duplicate centerCursor function
...
From upstream: a46104ee69
2019-02-03 19:56:16 +05:30
Kovid Goyal
728dbbfff0
...
2019-02-03 19:41:19 +05:30
Kovid Goyal
7485269c37
Forgot to set timers/watches on session bus connection
2019-02-03 19:36:39 +05:30
Kovid Goyal
cffaa54a78
Forgot to dispatch events on the dbus session bus
2019-02-03 18:24:47 +05:30
Kovid Goyal
48d792bc19
...
2019-02-03 15:58:29 +05:30
Kovid Goyal
4c9a6ed56c
Set a default action name on the dbus notification
2019-02-03 13:53:26 +05:30
Kovid Goyal
1bf2864638
API to handle DBus user notification activation
2019-02-03 13:20:07 +05:30
Kovid Goyal
5957befaad
Build linux_notify.c
2019-02-03 10:28:03 +05:30
Kovid Goyal
17a16ccd21
Remove unused code
2019-02-03 10:25:38 +05:30
Kovid Goyal
9a2ff9e419
Use stdbool for glfw boolean types
2019-02-03 10:13:02 +05:30
Kovid Goyal
84caf787aa
macOS: Workaround for cocoa bug that could cause the mouse cursor to become hidden in other applications in rare circumstances
...
Use window focus gained/lost events instead of mouse enter/exit events
to hide/show the mouse cursor.
Fixes #1218
2019-02-03 08:58:16 +05:30
Luflosi
0e2a5c63c6
Convert some tabs to spaces
2019-02-02 22:08:32 +01:00
Kovid Goyal
670de085a3
Add API to GLFW for user notifications using DBus
2019-02-02 13:48:26 +05:30
Kovid Goyal
7ba98344b6
Cleanup commit from upstream
...
2053f3ed22
2019-01-20 14:56:40 +05:30
Kovid Goyal
c887df6ab4
GLFW upstream commit to allow waiting on events without a window
...
55b1a16f90
2019-01-20 14:55:36 +05:30
Kovid Goyal
32a0e28686
macOS: Fix :kbd:cmd+period key not working
...
Fixes #1318
2019-01-20 13:17:01 +05:30
Kovid Goyal
18c108ed03
macOS: Fix a regression that broke mapping of ctrl+tab
...
Fixes #1304
2019-01-14 10:53:31 +05:30
Kovid Goyal
24669fb6af
Port a couple of fixes from upstream
...
72c3908e14
cde0aaaab1
2019-01-11 14:20:26 +05:30
Kovid Goyal
8efbc479e1
Remove unused code
2019-01-09 10:13:43 +05:30
Kovid Goyal
2f677990b2
Fix glfwSetGamma generating ramps of invalid sizes
...
3531c320af
2018-12-28 08:19:17 +05:30
Kovid Goyal
da2e4c8503
...
2018-12-28 08:14:08 +05:30
Kovid Goyal
a1eb236616
Fix glfwGetGammaRamp error handling
...
751c6f9a27
2018-12-28 08:13:28 +05:30
Kovid Goyal
11186735c2
Couple of trivial commits from glfw upstream
...
064dfaa549
751c6f9a27
2018-12-28 08:06:26 +05:30
Luflosi
e47e2b2560
Move check for zero scroll distance to scroll_event()
2018-12-27 15:17:18 +01:00
Luflosi
7652065134
Add more momentum scroll phases
2018-12-27 15:12:57 +01:00
Kovid Goyal
fe67e3dde7
Cocoa: Remove subclassing of NSApplication
...
From upstream: 88c5edb409
2018-12-26 12:29:38 +05:30
Kovid Goyal
fc5e74e457
Report momentum scrolling status of scroll events on cocoa
2018-12-26 11:03:36 +05:30
Kovid Goyal
fdbd8df7b2
Add patch from upstream to report caps lock key presses on cocoa
...
c4903d9267
2018-12-26 10:01:02 +05:30
Kovid Goyal
246972b59f
Add a patch from upstream, altered to not change behavior
2018-12-26 09:58:12 +05:30
Kovid Goyal
6057296499
Cocoa: Move to modern Objective-C literals
2018-12-26 09:45:24 +05:30
Kovid Goyal
69e76d6eeb
Frogot to ad dplus key to _glfwGetKeyName
2018-12-17 21:16:57 +05:30
Kovid Goyal
3f2489b306
Linux: Handle keyboards with a "+" key
...
Adds a plus key to glfw so that it can be mapped as a shortcut. Fixes #1224
2018-12-13 09:56:30 +05:30
Dominique Martinet
d8a74e8a3c
glfw/x11_window/selection: timeout if no answer for two seconds
...
This prevents kitty to hang forever if a bad client does not give selection
2018-11-30 11:42:45 +09:00
bodqhrohro
4d3982c5cf
Fix memory leak on compose table creation
2018-11-23 19:04:09 +02:00
Kovid Goyal
b44345d78e
Ignore failures to update the NSGL layer
...
Fixes #1168
2018-11-22 18:25:22 +05:30
Kovid Goyal
39e6e91d69
Port new coca drag'n drop code from upstream
2018-11-20 10:24:55 +05:30
Kovid Goyal
aa7024b264
Bump required version of wayland protocols
2018-11-14 09:16:14 +05:30
Tarmack
a6900443d5
Wayland primary selection migrated to unstable protocol
...
This change is actually backwards compatible with the GTK implementation before.
2018-11-13 20:58:02 +01:00
Kovid Goyal
f5743f4610
Forgot to multiply xscale
2018-11-05 07:56:33 +05:30
Kovid Goyal
82f9aecacb
macOS: Fix touch scrolling sensitivity low on retina screens
...
Fixes #1112
2018-11-04 12:07:55 +05:30
Kovid Goyal
be6556c884
X11: Fix missing check for NET_WM_STATE
2018-11-04 10:20:38 +05:30
Kovid Goyal
7db6318806
Only warn about failure to primary select once
2018-10-31 09:09:46 +05:30
Tarmack
d519553581
Implement primary selection for Wayland
2018-10-31 09:03:22 +05:30
Kovid Goyal
e99b1be023
macOS: Ensure stored mouse position is correct when switching to a kitty window
...
Fixes #1103
2018-10-31 08:38:50 +05:30
Kovid Goyal
3ed9d9a069
Merge branch 'system_double_click_interval' of https://github.com/Luflosi/kitty
2018-10-28 11:18:43 +05:30
Kovid Goyal
31a0a9427e
...
2018-10-27 11:35:25 +05:30
Kovid Goyal
04f10ba570
Fix leak of Wayland callback structure when doing a copy
2018-10-27 11:34:54 +05:30
Kovid Goyal
34b7b2e4e8
Move to using upstream glfw fix for mojave initial render issue
2018-10-26 22:29:05 +05:30
Luflosi
09183772d3
Respect the default system double-click interval
2018-10-26 11:57:33 +02:00
Kovid Goyal
3e4eca5816
Wayland: Fix cursor being reset continuously
...
Should only do that if the cursor is actually supposed to be animated.
2018-10-26 11:23:34 +05:30
Kovid Goyal
30c6c4697f
Merge branch 'x11_enter' of https://github.com/martinetd/kitty
2018-10-26 10:26:10 +05:30
Kovid Goyal
174bd5c57f
Commit the wl_surface to ensure that we receive the frame event
2018-10-26 10:12:54 +05:30
Dominique Martinet
ec51a219a7
glfw x11: update cursor position on enter event
...
kitty would have an incorrect position when clicking after changing window
without moving (e.g. change workspace, create new kitty etc)
For new kitty window, initial position would be 0 and selection paste would
not work because of this
2018-10-26 13:19:12 +09:00
Kovid Goyal
cca2fb967c
Avoid malloc for frame callbacks
2018-10-26 08:49:17 +05:30
Kovid Goyal
5b547d9b06
Initial attempt at supporting Wayland frame events
...
Does not actually work because the wayland frame callback is not called
at all, fo rsome reason I cannot determine.
2018-10-26 07:42:57 +05:30
Kovid Goyal
8395076da5
Cocoa: Cleanup
...
From upstream
2018-10-25 10:32:17 +05:30
Kovid Goyal
407d19c2dc
Remove code to import/export from glfw
...
Since kitty now uses its own private fork, there is no point.
2018-10-24 14:18:01 +05:30
Kovid Goyal
ae9d049011
Better fix for initial window render failure on mojave
2018-10-23 09:04:12 +05:30
Kovid Goyal
3035d64127
Forgot to apply sendEvent micro-optimization to a couple more places
2018-10-23 08:00:20 +05:30
Kovid Goyal
70c9c058e2
Micro-optimization of cocoa event polling
2018-10-21 20:56:27 +05:30
Kovid Goyal
fca95af49b
macOS: Fix IME input for east asian languages
...
Fix #910
2018-10-21 20:27:03 +05:30
Kovid Goyal
c493583f25
macOS: Fix drag and drop of files not working on mojave
...
Fixes #1058
2018-10-11 18:36:24 +05:30
Kovid Goyal
b4afbe47b3
wayland: add support for XCURSOR_THEME and XCURSOR_SIZE
...
These can be set by the compositor or the user to configure the
xcursor theme and size.
2018-10-11 13:39:44 +05:30
Tarmack
c494759606
Divide a second over the key repeat Hz value for the timer value
2018-10-09 14:30:36 +02:00
Kovid Goyal
2102c48b87
Mir: Remove this experimental backend
...
As of the release of Mir 1.0, libmirclient has been deprecated[1] and
its developers recommend clients using it to switch to Wayland. This
patch removes support for libmirclient and instruct users to use the
experimental Wayland backend instead.
[1] https://discourse.ubuntu.com/t/mir-news-28th-september-2018/8184
2018-10-06 07:53:41 +05:30
Kovid Goyal
c498f4e8ab
Linux: Include the null byte in joystick path
...
This potential bug was found thanks to gcc 8’s -Wstringop-truncation
warning.
2018-10-06 07:49:59 +05:30
Kovid Goyal
05a0166ebd
Forgot some mojave substitutions
2018-10-03 22:03:49 +05:30
Kovid Goyal
0484365de6
More fixes for compiling on mojave
2018-10-03 21:50:39 +05:30
Kovid Goyal
cbab3b56de
Fixes for compilation on mojave, needs testing
2018-10-03 20:51:25 +05:30
Kovid Goyal
1fa66ca45d
Wayland: Rename handlers for more unicity
2018-10-03 12:30:48 +05:30
Kovid Goyal
13b10f691d
Wayland: Add support for xdg-decoration
...
This allows compositors which prefer to draw the decorations around
clients to do so, rather than letting GLFW draw its own decorations.
The appearance is thus entirely subject to the compositor used, but
should generally be better than the current solid colour decorations we
have, which we continue to use when the compositor doesn’t support this
protocol or tells us to draw the decorations ourselves.
2018-10-03 12:27:51 +05:30
Kovid Goyal
3fe7d91713
Add some needed includes
2018-10-03 11:06:01 +05:30
Kovid Goyal
98864091ff
Move memfd existence test to glfw.py
2018-10-03 11:02:51 +05:30
Kovid Goyal
7750a461aa
Fix compilation on systems that dont have the memfd_create syscall
2018-10-03 10:56:47 +05:30
Kovid Goyal
ac98b85157
Wayland: Use memfd_create() and seals if available
...
This allows the compositor to avoid having to setup and teardown a
SIGBUS signal handler whenever it needs to read from this surface, as it
knows we won’t be able to shrink the file and so doesn’t have to protect
against that.
Only enabled on Linux, since only Linux has memfd_create()
2018-10-03 09:47:04 +05:30
Kovid Goyal
21f6c6a5a8
Wayland: Check for buffer creation failure
...
This prevents unusable decoration objects from being created, and
invalid cursors from being returned to the user.
2018-10-02 11:30:13 +05:30
Kovid Goyal
b82e74f99a
Fix for kitty window not being rendered until moved/resized on macOS Mojave
...
Fixes #887
2018-09-26 19:43:04 +05:30
Dominique Martinet
897fd9486e
glfw/ibus input: use text from ime event instead of global
...
When a key is pressed, text is generated from xkb and attached to the
global key_event variable.
If another key is pressed before ibus replies, this text in global
variable would be overwritten before the processed reply comes in and
the wrong character would be input, as shown in logs with
--debug-keyboard:
Press scancode: 0x19 clean_sym: w composed_sym: w text: w mods: numlock glfw_key: 87 (W) xkb_key: 119 (w)
↳ to IBUS: keycode: 0x11 keysym: 0x77 (w) mods: numlock
Press scancode: 0x20 clean_sym: o composed_sym: o text: o mods: numlock glfw_key: 79 (O) xkb_key: 111 (o)
↳ to IBUS: keycode: 0x18 keysym: 0x6f (o) mods: numlockIBUS processed scancode: 0x19 release: 0 handled: 0
From IBUS: scancode: 0x19 name: w is_release: 0
↳ to application: glfw_keycode: 0x57 (W) keysym: 0x77 (w) action: PRESS mods: numlock text: o
on_key_input: glfw key: 87 native_code: 0x77 action: PRESS mods: 0x0 text: 'o' state: 0 sent text to child
IBUS processed scancode: 0x20 release: 0 handled: 0
From IBUS: scancode: 0x20 name: o is_release: 0
↳ to application: glfw_keycode: 0x4f (O) keysym: 0x6f (o) action: PRESS mods: numlock text: o
on_key_input: glfw key: 79 native_code: 0x6f action: PRESS mods: 0x0 text: 'o' state: 0 sent text to child
Since the whole event is memcpy'd we can just use the text from the
event attached to the reply instead.
2018-09-21 07:34:01 +09:00
Kovid Goyal
ec1f219850
macOS: Make full screening of kitty much faster by using the "traditional full screen" mode of cocoa, similar to iTerm and MacVim
...
Hopefully workaround a bug in glfw that causes crashes when unplugging
monitors with full screen windows.
Fixes #911
Fixes #898
2018-09-12 15:45:08 +05:30
Kovid Goyal
0195e7f841
Wayland: Add support for animated cursors
2018-09-10 11:54:22 +05:30
Kovid Goyal
141b8a1481
Update glfw from upstream
2018-09-10 09:51:06 +05:30
Kovid Goyal
0fa12a687d
Linux: Turn off IME unless the GLFW_IM_MODULE=ibus env var is set
2018-09-07 16:07:01 +05:30
Kovid Goyal
aa9de47da3
Support compose sequences with no symbol
...
Compose sequences can be defined without an associated symbol. To test for
completeness, we now also rely on XKB’s reported compose state.
Fixes #880 .
2018-09-06 14:53:16 +02:00
Kovid Goyal
33f0ac83c1
Wayland: Allow using the --class to set the app id
...
Fixes #862
2018-09-06 06:54:38 +05:30
Kovid Goyal
1949f3c3d5
Wayland fix self copy detection across multiple processes
2018-09-05 21:45:32 +05:30
Kovid Goyal
6a51ce5dc4
Wayland: Work on supporting drop of file paths
2018-09-05 21:41:47 +05:30
Kovid Goyal
c0c8e1ce5e
Fill up the rest of the v1 data_source listener struct
2018-09-05 20:04:38 +05:30
Kovid Goyal
6a3d6191bd
Implement the rest of the the data_offer listener callbacks
2018-09-05 19:58:55 +05:30
Kovid Goyal
b2aa07d29f
Wayland: Fix missing data source canceled listener
2018-09-05 19:37:55 +05:30
Kovid Goyal
c84fb68bf8
Wayland: fix copy/pasting into self
2018-09-05 19:23:42 +05:30
Kovid Goyal
128b9e1cd0
Wayland: Implement support for clipboard copy/paste
...
Fix #855
2018-09-05 17:54:26 +05:30
Kovid Goyal
ace052ee70
Move data device initialization into its own function
2018-09-05 07:51:15 +05:30
Kovid Goyal
547959c1ef
Linux: Fix numpad arrow keys not working when num lock is off
...
Fixes #857
2018-09-05 07:31:55 +05:30
Kovid Goyal
f3a1ee7b9f
Wayland backend: Add support for copy to clipboard
2018-09-04 22:22:43 +05:30
Kovid Goyal
f5cc2fd8ad
Update GLFW from upstream
2018-09-04 09:49:18 +05:30
Kovid Goyal
e630b76fac
Don't patch glfw when importing since the patch has moved upstream
2018-09-04 09:46:09 +05:30
Kovid Goyal
14f44e79f7
Remove debug printf
2018-08-31 07:56:21 +05:30
Kovid Goyal
ab960ea12d
Linux: Fix slow startup on some systems caused by GLFW searching for joysticks. Since kitty does not use joysticks, disable joystick support.
...
Fixes #830
2018-08-31 07:51:19 +05:30
Luflosi
1d91edfb00
dont -> don't
2018-08-29 03:18:25 +02:00
Kovid Goyal
ec9bb2302c
...
2018-08-24 11:03:30 +05:30
Kovid Goyal
009ef54de7
Implement high precision scrolling with the trackpad on platforms such as macOS and Wayland that implement it.
...
Fixes #819 . Note that I have no idea whether the code works well on
retina screens, might have to multiple the pixel count by the scale
factor on those screens?
2018-08-24 11:00:58 +05:30
Kovid Goyal
96c444d041
Workaround for bug in glfw causing crash when hotplugging monitors
...
Fixes #812
2018-08-21 12:52:16 +05:30
Kovid Goyal
ec1c72e9a3
Fix compiler warning
2018-08-20 10:55:49 +05:30
Kovid Goyal
f9b1f6be5c
Fix #809
2018-08-20 10:24:09 +05:30
Kovid Goyal
ecbe79e04f
Update glfw from upstream
2018-08-12 21:36:19 +05:30
Kovid Goyal
a143faaf05
macOS: Fix control+tab key combination not working
...
Fixes #801
2018-08-11 07:18:24 +05:30
Kovid Goyal
1f90238b18
If malloc fails remove timer from queue
2018-08-09 08:52:22 +05:30
Kovid Goyal
89b636376e
Possible fix for #784
2018-08-09 08:26:25 +05:30
Kovid Goyal
ddd8209c45
Fix crash when pressing enter while using IBUS
2018-08-06 10:35:46 +05:30
Kovid Goyal
d964146f8c
Use ctermid() instead of hardcoding /dev/tty
2018-08-04 20:58:01 +05:30
Kovid Goyal
ab7f3310c4
Dont crash if XRRGetCrtcInfo() returns NULL
2018-08-03 16:17:25 +05:30
Kovid Goyal
9af3081f45
The focus_follows_mouse option now also works across top-level kitty OS windows
...
Fixes #772
2018-07-30 21:26:20 +05:30
Kovid Goyal
cb289125ab
Use _GNU_SOURCE instead of POSIX_SOURCE for fileno()
...
Maybe that will work with FreeBSD
2018-07-29 21:43:02 +05:30
Kovid Goyal
3d1e604a6c
Make the glfw strdup implementation more efficient
2018-07-29 12:21:56 +05:30
Kovid Goyal
1ca49b9380
Fix #761
2018-07-29 12:15:21 +05:30
Kovid Goyal
ed934a0206
Fix #758
2018-07-29 11:07:36 +05:30
Kovid Goyal
97401f843a
Sigh. Apparently _XOPEN_SOURCE is needed on older linux systems for fileno()
2018-07-28 23:54:23 +05:30
Kovid Goyal
02635d506e
Dont use _XOPEN_SOURCE when building
...
Apparently it has exactly opposite semantics for glibc and whatever libcs
are used on BSD. What a clusterfuck.
2018-07-28 22:56:18 +05:30
Kovid Goyal
bd4831e2ee
Some explicit includes needed for FreeBSD
2018-07-26 19:50:38 +05:30
Kovid Goyal
1486af8770
More debug output when using --debug-keyboard
2018-07-26 08:41:16 +05:30
Kovid Goyal
55556aaac4
Ensure queued display events are dispatched when polling/waiting for events
2018-07-13 10:56:12 +05:30
Kovid Goyal
31853ee20c
Handle errno better when polling for events
2018-07-13 10:33:18 +05:30
Kovid Goyal
037bfeff82
Give IBUS a maximum of three seconds to respond to a key press
...
Previously was using the default timeout, which is 25 seconds
2018-07-12 18:18:21 +05:30
Kovid Goyal
98ede457a0
Do not hand on startup if the ibus daemon is hung
2018-07-12 18:18:21 +05:30
Kovid Goyal
1a1aa2d6aa
Nicer debug print for key debugging
2018-07-12 18:18:20 +05:30
Kovid Goyal
6e9aecdff3
Fix Shift key not working with IBUS
...
Fixes #721
2018-07-12 18:18:20 +05:30
Kovid Goyal
95187632bf
Allow using GLFW_IM_MODULE to activate ibus
2018-07-12 18:18:20 +05:30
Kovid Goyal
e3e28a023c
Fix exporting to glfw
2018-07-12 18:18:20 +05:30
Kovid Goyal
29dd766a67
Fix unused vars warning
2018-07-12 18:18:20 +05:30
Kovid Goyal
851145e69e
Add some debug prints for IBUS key handling
2018-07-12 18:18:20 +05:30
Kovid Goyal
b2e300c440
Simplify key round-tripping to IBUS
...
Only send to IBUS after full xkb processing. This is needed as otherwise
modifier state tracking does not work reliably. If you use alt+tab to
switch away from the window, the window never receives the release event
for the alt modifier.
The downside is that now if the uer has both XCompose and ibus active,
the who knows what will happen.
2018-07-12 18:18:20 +05:30
Kovid Goyal
c6c6a18375
Handle keys returned by IBUS
2018-07-12 18:18:19 +05:30
Kovid Goyal
56063b283e
Implement text commit from the IME system
2018-07-12 18:18:19 +05:30
Kovid Goyal
d27e7ead49
Print an error if too many timers/watches are added
2018-07-12 18:18:19 +05:30
Kovid Goyal
342164ede1
Add API for the application to notify the IME system of state changes
2018-07-12 18:18:19 +05:30
Kovid Goyal
1061e40b98
Bi-directional glfw updates
2018-07-12 18:18:19 +05:30
Kovid Goyal
377115a594
Add a GLFW specific env var to toggle IBUS
2018-07-12 18:18:19 +05:30
Kovid Goyal
e405b68da1
...
2018-07-12 18:18:18 +05:30
Kovid Goyal
d875d7baed
Implement the handler for ibus signals
2018-07-12 18:18:18 +05:30
Kovid Goyal
9c48e4965c
Send key events to ibus
2018-07-12 18:18:18 +05:30
Kovid Goyal
8675659fcb
Fix remaining sync BUS calls
...
Also work on IBUS integration
2018-07-12 18:18:18 +05:30
Kovid Goyal
3b226618ad
Ensure no ibus comms take place till the connection is fully setup
2018-07-12 18:18:18 +05:30
Kovid Goyal
6879a492dc
Give watches and timers names to ease debugging
2018-07-12 18:18:18 +05:30
Kovid Goyal
4070255dde
Simplify watch->fd matching
2018-07-12 18:18:18 +05:30
Kovid Goyal
dd9e484336
Make the DBUS APIs async
2018-07-12 18:18:18 +05:30
Kovid Goyal
78cda7aa74
Implement dispatch for the IBUS connection
2018-07-12 18:18:17 +05:30
Kovid Goyal
9ced447fa3
Make timer dispatch more efficient
2018-07-12 18:18:17 +05:30
Kovid Goyal
8e665ffedc
Implement DBUS timeout functions
2018-07-12 18:18:17 +05:30
Kovid Goyal
99ea6c08a7
Implement timers for the linux event loops
...
Needed for dbus integration. Also cleanup the event handling code.
X11 and Wayland now share most of their event polling and dispatch logic.
2018-07-12 18:18:17 +05:30
Kovid Goyal
b0bfa2b2fc
...
2018-07-12 18:18:17 +05:30
Kovid Goyal
3797294838
Use an id for watches
2018-07-12 18:18:17 +05:30
Kovid Goyal
3d6995d1e6
Work on integration of DBUS into event loop
2018-07-12 18:18:17 +05:30
Kovid Goyal
e91eb27e56
Refactor linux backend event loops
...
Allow waiting for events on an arbitrary number of fds. Needed
for async DBUS integration.
2018-07-12 18:18:17 +05:30
Kovid Goyal
3a4b614ae0
IBUS does not need a connection to the DBUS session bus
2018-07-12 18:18:16 +05:30
Kovid Goyal
26a6d6bef9
Set startup IBUS cursor and focus state
2018-07-12 18:18:16 +05:30
Kovid Goyal
dca81589a7
Finish code to connect to IBUS daemon
2018-07-12 18:18:16 +05:30
Kovid Goyal
5b7c697dfe
Connect to IBUS
2018-07-12 18:18:16 +05:30
Kovid Goyal
18d6b8a0ad
Code to read the IBUS address
2018-07-12 18:18:16 +05:30
Kovid Goyal
cdee601137
Start work on IBUS support
2018-07-12 18:18:16 +05:30
Kovid Goyal
db5aa36f44
Fix deprecation warning from newer versions of wayland-scanner
2018-07-10 19:48:37 +05:30
Kovid Goyal
4313531432
macOS: Use a custom mouse cursor that shows up well on both light and dark backgrounds
...
Fixes #359 . Also, update GLFW from upstream for retina cursor setting
support.
2018-07-07 10:43:30 +05:30
Kovid Goyal
2491fafe98
Update glfw from upstream
2018-06-23 14:59:36 +05:30
Kovid Goyal
2852ce9a4d
Update glfw from upstream
2018-06-23 10:23:21 +05:30
Kovid Goyal
45b0233f60
Update GLFW from upstream
...
Use the new init hint for keyboard debugging
2018-06-22 13:26:41 +05:30
Kovid Goyal
5dd3243674
Update glfw from upstream
2018-06-22 10:21:51 +05:30
Kovid Goyal
05c475e6ca
Update glfw from upstream
2018-06-11 13:08:21 +05:30
Kovid Goyal
4711746f8f
Linux: When using layouts that map the keys to non-ascii characters, map shortcuts using the ascii equivalents, from the default layout.
...
Fixes #606
2018-06-11 12:21:35 +05:30
Kovid Goyal
93b1919a38
Update glfw from upstream, to allow kitty to react to Xft.dpi changes
2018-06-11 07:12:06 +05:30
Kovid Goyal
71c1432892
Update glfw from upstream
2018-06-08 18:02:44 +05:30
Kovid Goyal
44b84ba295
Update glfw from upstream
2018-06-08 14:27:30 +05:30
Kovid Goyal
f80f61f84f
...
2018-06-08 12:54:38 +05:30
Kovid Goyal
eecf80469e
Update glfw from upstream
...
Adds glfwpostemptyevent not working fix to wayland backend as well
2018-06-08 09:14:14 +05:30
Kovid Goyal
dd085a9297
Update glfw from upstream
...
Fixes https://github.com/glfw/glfw/issues/1281
2018-06-07 21:46:01 +05:30
Kovid Goyal
faa5443d43
macOS: When clicking dock icon with no windows, create a new window
2018-06-07 07:19:39 +05:30
Kovid Goyal
2e8d19601b
macOS: Fix the new OS window keyboard shortcut not working if no kitty window currently has focus.
...
Fixes #524
2018-06-06 22:18:33 +05:30
Kovid Goyal
138b4cf5da
Fix build breakage caused by FreeBSD support
...
Also move the changes to the glfw files to glfw.py
2018-06-03 09:17:18 +05:30
Robert Ricci
e7ad2637d8
Don't 'hardcode' linux joystick for x11 module
...
The correct joystick module appears to be inserted in the list in
glfw.py . This fixes the build on FreeBSD 11
2018-06-02 11:46:10 -06:00
Kovid Goyal
4e6d929e20
Update glfw from upstream
2018-06-01 09:15:35 +05:30
Kovid Goyal
709d19119d
Update bundled glfw
2018-05-20 08:03:58 +05:30
Kovid Goyal
78002cf3ba
Update glfw from upstream
...
Fixes #488
2018-04-27 15:32:54 +05:30
Kovid Goyal
238508fc0a
Update glfw from upstream
...
Proper cross-platform fix for issue of mouse cursor not being restored
over un-focused windows.
2018-04-26 08:31:52 +05:30
Kovid Goyal
2b372373ae
Update glfw from upstream
2018-04-24 18:15:28 +05:30
Kovid Goyal
32f16ee5f5
macOS: Add support for dead keys
...
I have modified GLFW to support dead keys on macOS. That was painful.
Fixes #465
2018-04-20 14:25:53 +05:30
Kovid Goyal
2504266806
macOS: Fix option as alt not working for keys that act as dead keys in the current keyboard layout
2018-04-19 17:44:31 +05:30
Kovid Goyal
5755ba72b1
Fix #449
2018-04-09 20:13:13 +05:30
Kovid Goyal
20b5084904
Update glfw
...
Fixes #439
2018-04-06 20:18:03 +05:30
Kovid Goyal
9edfafcac2
Update glfw
2018-03-31 12:21:37 +05:30
Kovid Goyal
677c47b9dd
Possible fix for handling unknown modifiers on Xkb systems
2018-03-31 12:21:37 +05:30
Kovid Goyal
b59d7dda11
Import glfw from upstream, key handling on macOS works again
2018-03-31 12:21:37 +05:30
Kovid Goyal
529bb5c6a0
We need xkbcommon >= 0.5
2018-03-31 12:21:36 +05:30
Kovid Goyal
caf9a12b34
Update glfw from upstream
...
libxkbcommon based keyboard handling now works (at least the basic
stuff, haven't tested compose/mapnotify etc.)
2018-03-31 12:21:36 +05:30
Kovid Goyal
80f3fe6e9f
...
2018-03-29 00:05:37 +05:30
Kovid Goyal
9ba2c4b397
Update glfw from upstream
2018-03-28 19:57:01 +05:30
Kovid Goyal
bfa53d4b45
Update glfw from upstream
...
Includes proper fix for Wayland key repeat
2018-03-28 15:26:56 +05:30
Kovid Goyal
69f3ceb903
Merge glfw upstream changes to build on Wayland on FreeBSD
2018-03-28 09:47:16 +05:30
Kovid Goyal
d0f839bbd8
Fix audible bell not working under Wayland
2018-03-27 19:45:19 +05:30
Kovid Goyal
48538c0e25
Update bundled glfw
2018-03-27 15:07:25 +05:30
Kovid Goyal
1edf1524f8
Update bundled glfw
2018-03-03 11:21:09 +05:30
Kovid Goyal
77d46630d7
Update bundled glfw
2018-02-08 09:15:40 +05:30
Kovid Goyal
2777b89e45
Update bundled glfw
2018-02-01 13:03:26 +05:30
Kovid Goyal
6ad21fc98f
Update bundled glfw
2018-01-29 12:30:05 +05:30
Kovid Goyal
d43d6ab0a9
Update bundled glfw
2018-01-12 05:34:53 +05:30
Kovid Goyal
bd654d22f4
Read the required wayland protocols version from upstream instead of hardcoding it
2017-12-28 14:12:46 +05:30
Kovid Goyal
12bdd4dddd
Bump min version of wayland-protocols to match upstream
2017-12-27 07:24:38 +05:30
Kovid Goyal
4621ff41d9
Skip building the wayland backend on systems with missing wayland protocol definitions
...
Fixes #254
2017-12-27 06:22:36 +05:30
Kovid Goyal
2f4f3e3331
Update bundled glfw
2017-12-20 09:07:06 +05:30
Kovid Goyal
b4509e341a
Update glfw
2017-12-01 12:16:18 +05:30
Kovid Goyal
fb41ecb2e5
Update bundled glfw
2017-12-01 12:16:16 +05:30
Kovid Goyal
982a9320c5
Final fixes needed for wayland building
...
kitty now runs under wayland again
2017-12-01 12:16:13 +05:30
Kovid Goyal
eb8f4e0b3c
isosx -> is_macos
2017-12-01 12:16:13 +05:30
Kovid Goyal
85fcd51ea3
Enable building of glfw-wayland backend
2017-12-01 12:16:13 +05:30
Kovid Goyal
a5078afd1e
Move the bell implementation into glfw
2017-12-01 12:16:13 +05:30
Kovid Goyal
32a6dd2aa1
Add a command line switch to set the name part of WM_CLASS independently
2017-12-01 12:16:13 +05:30
Kovid Goyal
a11d6466c6
Update vendored glfw
2017-12-01 12:16:12 +05:30
Kovid Goyal
3773aaa8a1
Get it building on macOS
2017-12-01 12:16:11 +05:30
Kovid Goyal
cfc99baac4
Get rid of ctypes based loading of libglfw/libX11
2017-12-01 12:15:36 +05:30
Kovid Goyal
dfd8a69cf2
Build kitty against bundled glfw
2017-12-01 12:15:36 +05:30
Kovid Goyal
9307486254
Initial import of glfw
2017-12-01 12:15:36 +05:30