Skip to content
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

Trigger redraw when window gets focus #101

Closed
lucasew opened this issue Jun 18, 2023 · 3 comments
Closed

Trigger redraw when window gets focus #101

lucasew opened this issue Jun 18, 2023 · 3 comments

Comments

@lucasew
Copy link

lucasew commented Jun 18, 2023

I am using i3wm and often use terminals using the row feature. The problem here is that when I jump to other window and go back to the rio window it takes a few seconds to show something. That doesn't happen with busy sessions like when I am tailing a chatty log and running some programs such as cmatrix. I guess that's because those programs trigger redraws more often.

The suggestion here is to also trigger a redraw when the window gets focus.

I am using the rio packaged by the PR by otavio for nixpkgs.

out.mp4
@raphamorim
Copy link
Owner

raphamorim commented Jun 18, 2023

Hey there, I've saw your comment in the NixOS/nixpkgs#237664 and a pushed for all platforms this afternoon, before was dealing with rendering stack for all events but now has changed for specific type of events, should offload the render and speed up. Would you min check with latest main?

Did a validation in x11 and should look like this https://twitter.com/raphamorims/status/1670404595246419968

@lucasew
Copy link
Author

lucasew commented Jun 18, 2023

With f3fbe7a it's now refreshing when I release the Super key. A little anoying but good enough.

BTW I change workspaces with Super+numbers and the tab using Super+arrows

out_pr.mp4

@raphamorim
Copy link
Owner

That's good to know! Thank you for the detailed input @lucasew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants