Kovid Goyal
0a4dfa8fd2
macOS: Prevent resizing of fullscreen OS windows as it leads to visual artifacts
2021-10-24 12:38:44 +05:30
Kovid Goyal
edd423aad6
macOS; Fix restoring from fullscreen when resize increments are enabled
2021-10-23 13:06:47 +05:30
Kovid Goyal
a3717436b6
macOS: Fix resize_in_steps not working correctly on high DPI screens
...
See #4114
2021-10-12 14:39:06 +05:30
Kovid Goyal
61a56a0561
macOS: Fix very first keypress after window creation being sent as a repeat instead of a press event
...
Now the dummy event on input source changed is sent with no key and only
after an actual change instead of on startup as well.
2021-10-11 12:30:42 +05:30
Kovid Goyal
be34af4555
Remove inline from .c files
...
It is ignored by compilers and hides unused static functions
2021-08-03 09:11:17 +05:30
Kovid Goyal
c797944923
Also set first underviced render frame request
2021-08-01 12:59:22 +05:30
Kovid Goyal
ade4e67b51
Possible fix for #3890
...
Try to ensure we have a functioning displaylink always.
GLFW skips over sleeping monitors during a poll and also
had a bug where the display link was not re-created for a monitor
that already had a glfw monitor entry.
Also add a bunch more debug reporting
2021-08-01 12:53:35 +05:30
Kovid Goyal
368bc91eed
macOS: Render colors in the sRGB colorspace to match other macOS terminal applications
...
Fixes #2249
2021-07-12 17:34:03 +05:30
Kovid Goyal
e4b4a35375
macOS: Fix rendering getting stuck on some machines after sleep/screensaver
...
This is caused, as far as I can tell, by CVDisplayLink getting stuck.
Apple apparently are incapable of writing a simple timer robustly.
So if it remains stuck after a second delete and recreate it to force it
to restart.
Fixes #2016
2021-05-12 07:30:17 +05:30
Luflosi
6606f51636
Fix compilation on macOS 10.12
...
The constants `NSControlStateValueOn`, `NSControlStateValueOff` and `NSControlStateValueMixed` are only available for macOS 10.13 or above according to https://developer.apple.com/documentation/appkit/nscontrolstatevalueon?language=objc .
Without this commit, compilation fails with this message:
```
glfw/cocoa_window.m:1537:28: error: use of undeclared identifier 'NSControlStateValueOn'
item.state = NSControlStateValueOn;
^
glfw/cocoa_window.m:1539:28: error: use of undeclared identifier 'NSControlStateValueMixed'
item.state = NSControlStateValueMixed;
^
glfw/cocoa_window.m:1542:47: error: use of undeclared identifier 'NSControlStateValueOn'
item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
^
glfw/cocoa_window.m:1542:71: error: use of undeclared identifier 'NSControlStateValueOff'
item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
^
```
To fix this, simply redefine the constants to use the old and now deprecated constants on older macOS versions.
The code that causes this was introduced in 98519bf326834a126e89489a6a221ff21fab100f.
2021-04-22 10:53:34 +02:00
Kovid Goyal
f3c559ea13
Cleanup secure keyboard entry logging
2021-04-22 09:41:01 +05:30
Kovid Goyal
84f6aabf5b
Clean up debug keyboard on macOS
2021-04-22 09:28:11 +05:30
Kovid Goyal
8c4e426534
Silence some unused parameter warnings
2021-04-19 13:53:27 +05:30
Georgi Yonchev
98519bf326
[macos] - Add "Secure Keyboard Entry" menu item
2021-04-09 16:39:51 +03:00
Kovid Goyal
df7790fdfe
...
2021-03-23 16:31:25 +05:30
Kovid Goyal
34d06fa3e9
Use a struct for IME update events
...
Allows for easier extension in the future
2021-03-23 16:05:22 +05:30
Kovid Goyal
a981b46ec9
Use an enum for updateimestate as well
2021-03-23 10:52:11 +05:30
Kovid Goyal
84dcf8fd27
Use an enum for ime_state
2021-03-23 10:42:07 +05:30
Kovid Goyal
f70c9842f5
macOS: Allow opening script and command
...
Fixes #3366
2021-03-10 21:33:29 +05:30
Kovid Goyal
78854d4a10
macOS: Disable cocoa tabs
...
kitty has its own tabs, and macOS inserts confusing menu entries for its
non-functional tabs into the global menu. So disable tabs. Fixes #3325
2021-02-25 11:26:55 +05:30
Kovid Goyal
4c9bd368c6
Implement alternate keys on macOS
2021-01-16 20:52:16 +05:30
Kovid Goyal
86ce72e725
Port the Cocoa backend to use unicode key numbers
2021-01-16 20:52:16 +05:30
Kovid Goyal
abc1e3f289
Remove the function used to init glfw key events
...
Instead use C99 struct initializers. Much less error prone.
2021-01-16 20:52:14 +05:30
Kovid Goyal
397d7d044b
Change key data type in some functions
2021-01-16 20:52:11 +05:30
Kovid Goyal
a681162326
Start work on supporting arbitrary unicode keys
2021-01-16 20:52:11 +05:30
Kovid Goyal
9193a20b44
macOS: Fix minimize not working for chromeless windows
...
Fixes #3112
2020-11-20 07:30:46 +05:30
Kovid Goyal
bdcac9aed3
Partial fix for traditional full screen on Big Turd
2020-11-16 10:23:01 +05:30
Luflosi
3ccc2f538d
Fix memory leak in unlikely failure condition
...
Found with the Clang Static Analyzer.
2020-11-01 13:41:52 +01:00
Luflosi
60719e7bff
Remove extra space
2020-10-26 10:22:14 +01:00
Luflosi
0edfa88755
Reduce the difference of GLFW to upstream
2020-10-04 17:34:51 +02:00
Luflosi
805921d6a3
GLFW: Move management of shared state to shared code
...
From upstream: 6d2003d07a .
2020-07-16 23:54:16 +02:00
Luflosi
d0c6ce9fd7
GLFW: Add support for mouse input transparency
...
From upstream: d285a9fdeb .
2020-07-16 22:25:12 +02:00
Luflosi
973d98457f
EGL: Add support for EGL_ANGLE_platform_angle
...
From upstream: 0dea8a4441 .
2020-06-30 00:34:32 +02:00
Luflosi
c39e9e9c61
EGL: Add support for EGL_EXT_platform_base
...
From upstream: aec9fae8f3 .
2020-06-26 12:39:17 +02:00
Luflosi
d7a7509da6
EGL: Replace native handle macros with functions
...
From upstream: d7f7b0e1b5 .
2020-06-26 12:17:13 +02:00
Luflosi
5263f6598c
Add feature available/implemented errors
...
From upstream: 9a87c2a4b4 .
2020-06-04 13:55:52 +02:00
Luflosi
55ad228166
Rename raw input to raw mouse motion, cleanup
...
From upstream: 1155c83013 .
2020-05-24 21:57:29 +02:00
Luflosi
48fb051253
Add GLFW_RAW_INPUT and glfwRawInputSupported
...
From upstream: 9e29f556fd .
2020-05-24 20:49:52 +02:00
Luflosi
269f294d19
Use CALayer instead of NSView for EGLNativeWindowType
...
From upstream: 91eebe922d .
2020-05-23 12:48:26 +02:00
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
372d2008a6
Actually, we should use text/plain rather than text/uri-list since we are already converting to filesystem paths
2020-03-19 13:40:02 +05:30
Kovid Goyal
ab9a36f8c1
Port cocoa backend to use new drop API
2020-03-19 13:36:03 +05:30
Kovid Goyal
56e5c8be32
macOS: When switching inpt method while a pending multi-key input is in progress, clear the pending input
...
Fixes #2358
2020-02-17 15:30:03 +05:30
Luflosi
3581ffe04b
Cocoa: Select Vulkan surface extension at runtime
...
From upstream: 15d91801b7 .
2020-01-17 14:18:21 +01:00
Luflosi
f6901e4a3d
Cocoa: Add support for VK_EXT_metal_surface
...
From upstream: c5cb4a253a .
2020-01-17 14:18:05 +01:00
Kovid Goyal
321771b150
Merge branch 'resize-by-increments' of https://github.com/aes/kitty
2020-01-07 10:44:55 +05:30
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