Kovid Goyal
ada3f9e547
Add a wcswidth() implementation useable from C code
2021-03-31 15:19:39 +05:30
Kovid Goyal
0372242d12
Use an enum for UTF8 decoder state
2021-03-31 15:19:27 +05:30
Kovid Goyal
9838a336d5
Make wcwidth-std.h more generally includeable
2021-03-31 15:18:19 +05:30
Kovid Goyal
debd9fe419
Dont render glyphs that would overflow the canvas
2021-03-31 11:06:37 +05:30
Kovid Goyal
73a06b0e9e
Text rendering for CSD now works
2021-03-31 11:02:35 +05:30
Kovid Goyal
da0009a46b
More work on CSD title rendering
2021-03-30 22:12:54 +05:30
Kovid Goyal
d7e1e53450
More work on text rendering for CSD
2021-03-30 08:25:01 +05:30
Kovid Goyal
4a3c57054f
Function to get fallback font for a char
2021-03-29 15:35:38 +05:30
Kovid Goyal
41b9495588
More work on text rendering
2021-03-29 14:56:49 +05:30
Kovid Goyal
cdbc096990
Start work on rendering text for CSDs
2021-03-29 12:15:47 +05:30
Kovid Goyal
53f2df115e
Hook up re-render of title bar when title changes
2021-03-29 12:15:47 +05:30
Kovid Goyal
0593158a86
Refactor CSD code to avoid un-needed rerenders and use a single shm pool for all CSD buffers
2021-03-29 12:15:47 +05:30
Kovid Goyal
c1f8372efc
Hide edges when not focused
2021-03-29 12:15:47 +05:30
Kovid Goyal
6e3db0be3d
Rename variable
2021-03-29 12:15:47 +05:30
Kovid Goyal
0f084faca5
Forgot to scale the title buffer
2021-03-29 12:15:47 +05:30
Kovid Goyal
c6829766bb
Properly scale the decorations buffers
2021-03-29 12:15:47 +05:30
Kovid Goyal
e7931b0121
Get rid of the no longer needed viewporter protocol
2021-03-29 12:15:47 +05:30
Kovid Goyal
aeb82e7fb0
Refactor the rendering of CSD on Wayland
2021-03-29 12:15:47 +05:30
Kovid Goyal
1e6fe7785a
Dont set the EDITOR env var in child processes
...
It isnt really needed, since the various kittens dont rely on it
anymore, instead calling get_editor() to get the path to the editor.
Has the nice side-effect of not needing to run the shell at startup
to read its environment. Now the shell is only run if the user calls
the edit config file kitten. Fixes #3426
2021-03-29 11:56:48 +05:30
Kovid Goyal
4edbe0ea4f
Remove unnecessary opacity marking for decoration buffers
2021-03-25 16:28:49 +05:30
Kovid Goyal
0788b98ae4
Fix header comment
2021-03-25 16:05:14 +05:30
Kovid Goyal
8a267894f3
Make createShmBuffer re-useable
2021-03-25 16:04:12 +05:30
Kovid Goyal
0510cd47f4
Rename buffer -> edge_buffer
2021-03-25 15:19:11 +05:30
Kovid Goyal
5dbbed3dcc
Ignore text input done if serial is incorrect
2021-03-25 15:05:48 +05:30
Kovid Goyal
7b130dc220
Double buffer pre-edit and commit events
2021-03-25 14:59:58 +05:30
Kovid Goyal
d28caf15b2
More glyph grouping fixes
2021-03-25 14:06:16 +05:30
Kovid Goyal
44df11c443
Move CSD metrics into the window object
...
Makes them potentially configurable
2021-03-25 12:52:09 +05:30
Kovid Goyal
63a50ec066
Use the correct mouse cursor theme on GNOME
...
Relies on a working desktop settings portal (xdg-desktop-portal-gtk)
2021-03-25 12:20:13 +05:30
Kovid Goyal
3d0cff1f47
Merge branch 'fix-rectircle-subpixel-rendering' of https://github.com/jesseleite/kitty
2021-03-25 09:55:05 +05:30
Jesse Leite
97a8b718dd
Merge branch 'master' of https://github.com/kovidgoyal/kitty into fix-rectircle-subpixel-rendering
2021-03-25 00:17:47 -04:00
Kovid Goyal
fc8e147e4a
Fix mouse handling when using client side decorations
...
The mouse co-ordinates used by glfw were all wrong.
2021-03-25 09:27:25 +05:30
Jesse Leite
af4083a8b7
Prevent subpixel rendering via floor/ceil on left/right side of box drawn corners.
2021-03-24 23:56:53 -04:00
Kovid Goyal
7c7933efa9
Fix #3416
2021-03-24 13:17:38 +05:30
Kovid Goyal
317ecbc9fa
Wayland: Add support for the text input protocol
...
Fixes #3410
2021-03-24 11:24:37 +05:30
Kovid Goyal
67445a22d3
...
2021-03-23 16:33:05 +05:30
Kovid Goyal
62997956a0
Start work on Wayland text input protocol support
2021-03-23 16:33:04 +05:30
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
11268ffa16
Fix marking of text not working on lines that contain zero cells
...
Zero cells are passed to the regex engine as spaces, so they must
increment the match_pos counter. Fixes #3403
2021-03-23 10:04:58 +05:30
Kovid Goyal
c0ec60c113
Forgot to change a couple of usages of line_as_unicode
2021-03-23 09:56:58 +05:30
Kovid Goyal
ca7587c084
Allow skipping zero cells when converting a line to unicode
2021-03-23 09:53:22 +05:30
Kovid Goyal
33ecfc6f84
...
2021-03-22 22:33:30 +05:30
Kovid Goyal
83bbcf0aa1
Graphics protocol: Add a control to allow clients to specify that the cursor should not move when displaying an image
...
Fixes #3411
2021-03-22 22:16:40 +05:30
Kovid Goyal
ba32e481ca
...
2021-03-22 10:46:41 +05:30
Kovid Goyal
af9da2e495
Make pt_to_px useable in state.c
2021-03-21 07:29:48 +05:30
Kovid Goyal
77f7672e98
...
2021-03-20 13:19:11 +05:30
Kovid Goyal
9dd8185f37
rectciricle -> rectircle
2021-03-20 13:17:17 +05:30
Kovid Goyal
12f61fd24f
super sample factor is included in height
2021-03-20 13:11:26 +05:30