Kovid Goyal
931cb223cd
When all visible windows have the same background color, use that as the color for the global padding, instead of the configured background color
...
See #1957
2019-09-07 18:47:15 +05:30
Kovid Goyal
77054f688d
Workaround for window managers like xmonad that in some circumstances set window size to zero. Fixes #1910
2019-08-17 18:04:08 +05:30
Luflosi
b5c2163238
Add option to hide the window title on macOS
...
Deprecate `macos_show_window_title_in_menubar` and create a new option `macos_show_window_title_in`.
2019-08-02 00:20:43 -05:00
Kovid Goyal
87ed774cb4
Add a new option :opt:pointer_shape_when_grabbed that allows you to control the mouse pointer shape when the terminal programs grabs the pointer
...
Fixes #1808
2019-07-19 19:34:32 +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
1e172caea3
- Add an option :opt:terminal_select_modifiers to control which modifiers are used to override mouse selection
...
Fixes #1774
2019-07-03 10:50:07 +05:30
Kovid Goyal
3fb00f6c70
Re-request render frames if we dont hear back in a quarter of a second
...
Fixes #1748 (I hope)
2019-06-28 18:26:11 +05:30
Kovid Goyal
020c1311ca
When resizing and only a single window is present in the current layout, use that window's background color to fill in the blank areas.
2019-05-29 09:01:57 +05:30
Kovid Goyal
8b99d0a432
Make the default live resize strategy drawing the current window contents unchanged
2019-05-19 09:45:59 +05:30
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
9b740849ed
Allow the user to control the draw strategy during OS window resizes
...
Changed the default to scaled which matches current macOS behavior.
Fixes #1591
2019-05-11 15:49:11 +05:30
Kovid Goyal
7622cbaed5
Avoid rapid transitions between the cells banner and the normal terminal view when live resizing on systems without live resizing notifications
2019-04-29 18:19:03 +05:30
Kovid Goyal
53df123c0d
Allow the user to control the resize debounce time via resize_debounce_time
2019-04-28 21:16:13 +05:30
Kovid Goyal
6037167336
Allow controlling the ligature strategy dynamically, per window
...
Fixes #1574
2019-04-27 22:05:33 +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
934336e642
Allow disabling ligatures always
2019-04-20 08:25:44 +05:30
Kovid Goyal
482129ff35
Increase resize debounce time
2019-03-21 20:44:24 +05:30
Kovid Goyal
65c75859bc
Move rendering of resize banner into the tick callback
...
Unifies all rendering in one place. And possibly fixes issues with
rendering in a resize callback on sway.
2019-03-21 16:54:15 +05:30
Luflosi
999a6a288c
Do not render ligatures under cursor
2019-03-20 01:35:03 +01:00
Kovid Goyal
11522ccc92
Initial code to show window size in cells while resizing
2019-03-04 19:54:10 +05:30
Kovid Goyal
b1bd581065
Make live resize code a little cleaner
2019-03-04 19:54:05 +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
66dbdf4b40
Do notcheck for closed windows on every loop tick
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
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
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
01ed1e1604
Move initial window blanking to before showing the window
2019-02-25 15:07:03 +05:30
Kovid Goyal
5d4491667b
Use a single function for cocoa pending actions
...
Also fix a couple of memory leaks when using coca pending actions with a
wd
2019-02-24 20:07:37 +05:30
Kovid Goyal
abd4de7311
macOS: Fix :opt:sync_to_monitor not working on Mojave.
2019-02-20 20:09:15 +05:30
Kovid Goyal
c5cc208397
Dont use a stack to focus other window on window close
2019-02-16 12:26:49 +05:30
Kovid Goyal
c385532b10
A new option :opt:tab_bar_min_tabs to control how many tabs must be present before the tab-bar is shown
...
Fixes #1382
2019-02-15 09:47:22 +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
Luflosi
8177cfac2a
macOS Finder Service to open a directory in a new kitty tab or window
2019-02-10 15:38:45 +01:00
Kovid Goyal
6a9a7dee55
macOS: Add an option macos_show_window_title_in_menubar to not show the current window title in the menu-bar
...
Fixes #1066
2019-01-30 13:29:55 +05:30
Jacob Wahlgren
33e4a44008
Unjam event loop when adding pending cocoa action
...
Fixes the problem reported in
https://github.com/kovidgoyal/kitty/issues/1312 .
2019-01-18 17:32:22 +01:00
Jacob Wahlgren
48b93ab28f
macOS: Exit on SIGINT
...
With the default macos_quit_when_last_window_closed no setting, Kitty
would not exit when receiving a SIGINT signal (e.g. from Ctrl-C).
2018-12-19 01:52:47 +01:00
Kovid Goyal
a0ff625f61
When double or triple clicking ignore clicks if they are "far" from each other
...
Fixes #1093
2018-11-23 11:46:02 +05:30
Kovid Goyal
05ee01b4dd
Merge branch 'scroll-wayland' of https://github.com/maximbaz/kitty
2018-11-11 12:03:39 +05:30
Kovid Goyal
53166d659e
Consolidate options for hiding window decorations
...
Merged into a single option, hide_window_decorations. Old
aliases still work if set to yes.
Fixes #1127
2018-11-11 11:56:44 +05:30
Maxim Baz
5e27c21856
Implement touch_scroll_multiplier
2018-11-10 12:33:47 +01:00
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
e113e0cba7
Allow hiding the tab bar completely, by setting :opt:tab_bar_style to `hidden`.
...
Fixes #1014
2018-10-25 10:05:43 +05:30
Kovid Goyal
adf9c4fc5f
Remove unused var
2018-10-23 09:05:56 +05:30
Kovid Goyal
65f9ac32ef
Fix :opt:mouse_hide_wait only taking effect after an event such as cursor blink or key press
...
Fixes #1073
2018-10-20 14:01:55 +05:30
Kovid Goyal
a57f38dbd5
Merge branch 'pagerhist' of https://github.com/martinetd/kitty
2018-09-30 08:41:52 +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
e08238d5a0
pager history buffer: add config option, keep buffer on resize
2018-09-22 18:02:11 +09:00
Kovid Goyal
772d6597a9
macOS: Add an option :opt:macos_traditional_fullscreen to make full-screening of kitty windows much faster, but less pretty.
...
See #911
2018-09-12 21:27:49 +05:30
Kovid Goyal
21d586cc86
macOS: Fix resizing semi-transparent windows causing the windows to be invisible during the resize
...
Fixes #941
Workaround for https://github.com/glfw/glfw/issues/1251
2018-09-12 10:44:24 +05:30