-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to enable scrollback even when a workspace loses focus #3069
Comments
That's not expected behavior. kitty windows process input from What version of kitty are you on and what display backend? X11/Wayland? |
no followup |
I'm having this exact issue. When switching to another window on the same workspace Kitty keeps updating, but if I switch to a workspace on another screen Kitty stops updating after ~4 seconds. Alacritty, Terminator and Console don't have this issue. I'm on EndeavourOS on GNOME Shell 46.4 and I'm using the PaperWM GNOME extension to manage windows. The issue doesn't appear if I disable PaperWM. |
then alacritty, terminator and console presumably arent respecting render frames, you can have kitty do the same by setting sync_to_monitor no in kitty.conf. |
I tried setting |
Run with --debug-rendering |
Here's the output of Click to expand
|
I mean run it until it reproduces your issue and post the resulting log |
@kovidgoyal I did. In the new window I ran for x in `seq 1 100`; do
echo ${x}
sleep 1
done and then switched to another monitor. And after ~4 seconds the new Kitty window stopped updating |
Your problem is the compositor is reporting the window as occluded, see
This corresponds to the wayland window suspended event (TOPLEVEL_STATE_SUSPENDED) which means the application needs to stop rendering the window. This is a bug in GNOME, most likely already fixed, update gnome and you should be fine, if not report it there. |
I'm experiencing this both on X11 and Wayland with PaperWM enabled. Could the issue be tied to how PaperWM is handling workspace focus or could it still be a GNOME bug? For more debug information, you can see my comment in the linked issue. Note: There doesn't seem to be anything useful from debug-rendering when reproducing this under X11: $ kitty --debug-rendering
[0.229] GL version string: '4.6 (Core Profile) Mesa 24.1.5' Detected version: 4.6
[0.279] OS Window created
[0.300] Child launched
[0.336] Got notification server capabilities: frozenset({'body', 'actions', 'persistence', 'body-markup', 'sound', 'icon-static'})
[2.765] SIGWINCH sent to child in window: 1 with size: (46, 187, 1870, 1012) |
If you are experiencing it on X11 it cant be this. This is wayland specific and indeed specific to compositors in wayland such as older versions of gnome that had buggy implemnetations of the iwndow occlusion wayland protocol. |
Bisecting my system, I was able to pin the issue to the update from from
This works great with normal Gnome since windows on the second monitor are considered on the same workspace and are only suspended when switching to another workspace. However, this doesn't work well with PaperWM since it uses one workspace per monitor, so switching monitors suspends the windows. Would it be possible to make this feature configurable? PS: The issue is still reproducible with PaperWM and kitty |
kitty is following the wayland spec here, papaerwm is not. The point of |
Well, Gnome is the one wrongly suspending the windows. PaperWM is already fighting tooth and nail to change how Gnome normally operates and separate-workspace per monitor is part of its design. That said, the developers have been notified, but I'm unsure if it's even possible to fix this from their side or how much time/effort it would take. I'm okay with running an older version of kitty at the moment, although I wouldn't really consider that an optimal solution. I would much prefer if it worked on X11, so I'll have to see if I can figure that issue out later. In all cases, thanks a lot for the amazing work you're doing. Kitty is hands down one of the best terminal emulators that I've tried. |
I dont have an opinion on what is correct behavior or not in the compositor. The Wayland protocol says that wayland clients should suspend rendering when compositors tell them too. kitty is following that protocol. |
My apologies if this isn't the correct forum. I spent quite a while searching through issues & the Kitty website but wasn't able to find the appropriate configuration option or command sequence. Additionally, I wasn't able to identify the correct forum for "support" (e.g. IRC, a mailing list, Slack/Discord channel, discussion forum, etc).
I am trying to figure how how to enable scrollback on a tab/window, even when it has lost focus and the mouse has moved to a different workspace (on Linux that is). Either enabling this globally or for a single tab/window is sufficient.
In my setup I have 3 monitors running Gnome3/X11. What is happening is an instance of Kitty is running in "Workspace 1" with a constantly scrolling application (imagine
tail -f
). When I move the mouse/cursor to "Workspace 2" (running on a different monitor) all activity from Kitty stops. I appreciate the savings that this provides on system resources, but when interacting with a number of remote systems concurrently (e.g. watching scroll back from 10 hosts in a cluster for an event to occur) it defeats the purpose of having multiple workspaces.I have (seemingly) confirmed that this is not (at least directly) an issue with the window manager or desktop environment by running
gnome-terminal
with the following for loop on a workspace and then moving to another workspace:In this situation the cursor in
gnome-terminal
correctly transitions to an outlined cursor (denoting a loss of focus) but still continues displaying scrollback within the window.The text was updated successfully, but these errors were encountered: