Kovid Goyal
0965fc45f2
macOS: Fix keyboard input not working after toggling traditional fullscreen till the window is clicked in
2021-11-13 14:20:18 +05:30
Kovid Goyal
181178b0ea
macOS: use a consistent technique to get window size
...
This fixes an issue where restoring from traditional fullscreen to a
maximized state was resulting in an incorrectly sized frame buffer. Now
all framebuffer and window size calculation happens in the same way in
all the various glfw codepaths that do it.
2021-11-13 13:42:12 +05:30
Kovid Goyal
95e6e80921
Restore maximized window state when returning from fullscreen
2021-11-13 12:22:52 +05:30
Kovid Goyal
f36b71350d
Use an anonymous struct for before_fullscreen
2021-11-13 12:15:27 +05:30
Kovid Goyal
3483722475
Remove pointless code
2021-11-13 12:13:28 +05:30
Kovid Goyal
56e63baf5a
macOS: manually trigger windowDidResize when fullscreening
...
Fixes #4230
Fixes #4229
2021-11-13 11:49:55 +05:30
Kovid Goyal
0830e66e76
broadcast kitten: Show a "fake" cursor in all windows being broadcast too
...
Fixes #4225
2021-11-12 22:59:20 +05:30
Kovid Goyal
74a5d3a25e
allow multiple close and removal actions
2021-11-12 21:16:21 +05:30
Kovid Goyal
4fb29e1b6b
Infrastructure to render the unfocused cursor in multiple windows
2021-11-12 20:42:37 +05:30
Kovid Goyal
2c4f616213
Make it easier to reuse collect_cursor_info()
2021-11-12 20:31:29 +05:30
Kovid Goyal
75afe7cd33
Also move overlay line when handling SGR
2021-11-12 19:56:44 +05:30
Kovid Goyal
80eb78033f
Better name for macro
...
What it actually does is move the overlay line to the new cursor location
2021-11-12 19:51:28 +05:30
Kovid Goyal
68013e8fe7
Move overlay line for a few more commands
2021-11-12 19:38:54 +05:30
Kovid Goyal
7fe32301c4
Use __func__ instead of manually specifying function names
2021-11-12 19:23:09 +05:30
Kovid Goyal
41ddc7d33f
DRYer
2021-11-12 18:26:18 +05:30
Kovid Goyal
eff5840645
overlay line should move even when using REP
2021-11-12 18:03:37 +05:30
Kovid Goyal
ddf0242f56
Add a changelog entry for IME changes
2021-11-12 17:58:05 +05:30
Kovid Goyal
eae5c65d3e
Also move overlay when getting backspace from child
...
zsh for some reason sends this when you send it a word. Fixes #4219
2021-11-12 17:56:04 +05:30
Kovid Goyal
c85b545f8d
Add a debug print when receiving text from child while overlay is active
2021-11-12 17:43:01 +05:30
Kovid Goyal
f24dc80c49
Send IME events in the correct sequence when cocoa both inserts text and marks new text in response to the same key event
2021-11-12 17:27:37 +05:30
Kovid Goyal
9a9de0038c
Remove unused code
2021-11-12 15:10:33 +05:30
Kovid Goyal
35626d3929
Update IME position when overlay line is moved on input from child process
2021-11-12 15:07:25 +05:30
Kovid Goyal
c8f26dd968
When text is received from the terminal program and the overlay line is active move the overlay line after drawing the text
...
This ensures the overlay line follows the current cursor position
2021-11-12 15:03:24 +05:30
Kovid Goyal
7e5cb50925
macOS: Also update IME position when new window is focused
2021-11-12 09:22:36 +05:30
Kovid Goyal
ffa755c723
macOS: Ensure IME position is correct on startup
2021-11-12 09:18:34 +05:30
Kovid Goyal
a060bf7223
Also unmark text on pressing esc
...
As with backspace, without this the preedit text is not cleared when the
IME is canceled by esc
2021-11-12 08:52:32 +05:30
Kovid Goyal
4ab5d97e9b
macOS: Fix IME position incorrect after moving OS window
2021-11-12 08:51:03 +05:30
Kovid Goyal
81babd29e7
DRYer
2021-11-11 22:53:24 +05:30
Kovid Goyal
fac76ddedd
DRYer
2021-11-11 22:41:59 +05:30
Kovid Goyal
f34cc1861a
Clear marked text when text is inserted
...
This is apparently what Cocoa expects. Fixes committing pre-edit text no
longer working.
2021-11-11 22:35:02 +05:30
Kovid Goyal
bd4ed38a3c
Dump more informatin about what cocoa does when processing key events
2021-11-11 22:32:30 +05:30
Kovid Goyal
8644fed534
Only unmark on backspace key
2021-11-11 22:05:39 +05:30
Kovid Goyal
ca9fdadf3c
Dont clear marked text on every keyDown event
...
Let the input system do it for us. That wy we can hopefully use calls to
unmarkText as a signal to commit the pre-edit text.
Hopefully not clearing the marked text on key down doesnt break anything
else.
2021-11-11 21:14:53 +05:30
Kovid Goyal
228364e317
oops
2021-11-11 20:53:14 +05:30
Kovid Goyal
e65aee4533
Cleanup calls to unmarkText
2021-11-11 20:44:43 +05:30
Kovid Goyal
a1ca607f35
More work on file transmission
2021-11-11 20:05:54 +05:30
Kovid Goyal
efbf156f82
Add a note about mintty support of unscroll
2021-11-11 16:53:59 +05:30
Kovid Goyal
a2533e9a46
Render the progress bar for file receives
2021-11-11 16:32:06 +05:30
Kovid Goyal
09742af92b
Forgot to remove some debug prints
2021-11-11 14:42:11 +05:30
Kovid Goyal
880de53d59
When remembering OS window sizes for full screen windows use the size before the window became fullscreen
...
Fixes #4221
2021-11-11 14:34:02 +05:30
Kovid Goyal
91a24dd2eb
oops
2021-11-11 13:56:18 +05:30
Kovid Goyal
60e91b018a
Wrap the glfw is fullscreen API
2021-11-11 12:46:13 +05:30
Kovid Goyal
9be37f7d2d
cocoa is weird
2021-11-11 12:45:03 +05:30
Kovid Goyal
be79fc1c92
Save before fullscreen sizes even when using normal fullscreen on macOS
2021-11-11 12:40:56 +05:30
Kovid Goyal
502960bfeb
Forgot to update the GLFW wrappers
2021-11-11 12:34:57 +05:30
Kovid Goyal
d95a00df73
GLFW API to check if window is fullscreen
2021-11-11 12:33:12 +05:30
Kovid Goyal
b3a9c1a100
Better error message when KITTY_LISTEN_ON is invalid
2021-11-10 08:27:45 +05:30
Kovid Goyal
4318d2d7d0
Cleanup previous PR
...
Doesnt need a separate changelog entry as its covered by the entry for
focus_visible_window
2021-11-09 22:23:48 +05:30
Kovid Goyal
c3ff888981
Merge branch 'feat-vis-sel-custom-chars' of https://github.com/page-down/kitty
2021-11-09 22:10:00 +05:30
Kovid Goyal
7c85616dcf
Add a note about arguments to layout_action rotate
2021-11-09 21:33:55 +05:30