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
b8d1491b99
Merge branch 'pipe-scrollback-secondary-screen' of https://github.com/maximbaz/kitty
2018-10-01 06:47:34 +05:30
Maxim Baz
d9c168d824
Account for secondary screen not having history buffer
2018-09-30 16:45:24 +02:00
Maxim Baz
ee7f4ee1a4
Don't guard against alternate_screen in as_text
...
Complementary to 15f534a8f9d44d9873b07d8309db498aca7c6cd1
2018-09-30 14:13:17 +02:00
Kovid Goyal
ee3ce3c7d8
Move cell_as_sgr to line.c
2018-09-30 08:58:33 +05:30
Kovid Goyal
a57f38dbd5
Merge branch 'pagerhist' of https://github.com/martinetd/kitty
2018-09-30 08:41:52 +05:30
Daniel Hahler
3c4cb3c35b
get_glyph_width for core text?!
2018-09-29 18:56:54 +02:00
Daniel Hahler
12cfe6d1d1
render_line: use cells based on bitmap width
...
[ci skip]
2018-09-29 18:38:53 +02:00
Daniel Hahler
c64e8fc434
MAX_NUM_EXTRA_GLYPHS_PUA=4
2018-09-29 16:49:40 +02:00
Kovid Goyal
15f534a8f9
Add access to secondary screen scrollback via the pipe function
2018-09-29 19:59:01 +05:30
Daniel Hahler
8e09e809aa
fixup! render_glyphs_in_cells: skip centering glyph for PUA
2018-09-29 16:23:16 +02:00
Daniel Hahler
fec5a80b89
Init bm
...
Not sure why this became necessary though?!
Fixes:
Linking kitty/fast_data_types ...
kitty/freetype.c: In function ‘render_glyphs_in_cells’:
kitty/freetype.c:514:82: warning: ‘bm.right_edge’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (num_cells > 1 && right_edge < canvas_width && (delta = (canvas_width - right_edge) / 2) && delta > 1) {
^
kitty/freetype.c:490:21: note: ‘bm.right_edge’ was declared here
ProcessedBitmap bm;
^
2018-09-29 16:20:10 +02:00
Daniel Hahler
1d50a188c4
render_glyphs_in_cells: skip centering glyph for PUA
2018-09-29 16:19:53 +02:00
Kovid Goyal
b0d34b136f
version 0.12.3
v0.12.3
2018-09-29 09:15:40 +05:30
Kovid Goyal
7eb234c250
Move kitty.app build instructions from the FAQ to the build page
2018-09-29 08:47:30 +05:30
Daniel Hahler
d52434c0aa
fixup! Handle multiple spaces after PUA glyphs
...
[ci skip]
2018-09-28 23:01:35 +02:00
Daniel Hahler
efc0b830cf
Handle multiple spaces after PUA glyphs
2018-09-28 15:34:14 +02:00
Kovid Goyal
4a8c4c4601
Unicode input: Fix an error when searching for the string 'fir'
...
Fixes #1035
2018-09-28 19:01:20 +05:30
Kovid Goyal
e498cedf56
remove unused import
2018-09-27 08:52:40 +05:30
Kovid Goyal
6c8a52875e
Fix #1029
2018-09-27 08:40:16 +05:30
Kovid Goyal
c1397fd366
Merge branch 'unicode_input-reverse' of https://github.com/blueyed/kitty
2018-09-27 08:35:25 +05:30
Daniel Hahler
3323ddcdef
unicode_input: use reverse mode for menu selection
2018-09-26 22:50:22 +02:00
Kovid Goyal
1be394cda7
Update CHANGELOG
2018-09-26 19:54:42 +05:30
Kovid Goyal
f292092ffc
...
2018-09-26 19:47:53 +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
Kovid Goyal
9b293ad66a
Add some more explanation of why TERM is important
2018-09-24 09:28:21 +05:30
Kovid Goyal
3a4420f2d3
version 0.12.2
v0.12.2
2018-09-24 05:26:11 +05:30
Kovid Goyal
1eb8d6e845
Merge branch 'doc-fix' of https://github.com/nicoulaj/kitty
2018-09-23 08:49:15 +05:30
Julien Nicoulaud
e2f97dc44a
Fix broken links
2018-09-22 20:22:15 +02:00
Kovid Goyal
ea9af96d2b
Fix using focus_follows_mouse causing text selection with the mouse to malfunction when using multiple kitty windows
...
Fixes #1002
2018-09-22 18:15:03 +05:30
Kovid Goyal
e4033d997c
Merge branch 'prev_' of https://github.com/Luflosi/kitty
2018-09-22 17:28:53 +05:30
Luflosi
bc38357193
Add prev_tab and prev_window as aliases for previous_tab and previous_window
2018-09-22 13:24:51 +02:00
Dominique Martinet
618b486fd5
pager history buffer: remove dead code looking for next new line
2018-09-22 19:10:37 +09:00
Dominique Martinet
1986403e42
Add scrollback benchmark
2018-09-22 19:10:37 +09:00
Dominique Martinet
cf51f80b79
cell_as_sgr: avoid unnecessary formatting functions
2018-09-22 19:10:37 +09:00
Dominique Martinet
2fe17aa889
cursor_as_sgr now works on GPUCells becomes cell_as_sgr
2018-09-22 19:10:09 +09:00
Dominique Martinet
f76c8ad30b
pager history buffer: alloc buffer progressively
...
Realloc buffer 1MB at a time until the configured size is reached
2018-09-22 19:10:09 +09:00
Dominique Martinet
c421d3bb59
line_as_ansi: don't reset SGR at start of line
...
less does not carry the mode over from the previous line anyway, let's
save a few bytes for every line
2018-09-22 19:10:09 +09:00
Dominique Martinet
3d862da2be
pager history buffer: implement rewrap
...
rewarp the buffer the first time it is displayed after the window
changed
2018-09-22 19:10:09 +09:00
Dominique Martinet
10b15caad9
tests: add options param to create_screen()
...
Always apply defaults when creating a screen (the C-side global state
default will not have the intended values without this), and provide a
way to override default values with a new optional parameter
2018-09-22 18:05:13 +09:00
Dominique Martinet
e08238d5a0
pager history buffer: add config option, keep buffer on resize
2018-09-22 18:02:11 +09:00
Dominique Martinet
d0104660c8
Implement pager scrollback history buffer
...
For now, use big fixed-size buffer that is lost on resize
2018-09-22 18:02:11 +09:00
Dominique Martinet
a4c2a9ef0d
line_as_ansi: only compute sgr if needed
2018-09-22 18:02:11 +09:00
Dominique Martinet
ee39d7ba14
line_as_ansi: remove dead undefs
...
CHECK_BOOL, CHECK_COLOR and WRITE_COLOR have been removed in
commit 27cd303a056 ("Centralize code to convert to SGR")
2018-09-22 18:02:11 +09:00
Kovid Goyal
62cb035afe
Remote control: Fix the `focus_window` command not focusing the top-level OS window of the specified kitty window
...
Fixes #1003
2018-09-22 12:17:35 +05:30