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

[BUG] Typed text is invisible in kitty scratchpad until the workspace is switched. #128

Open
JunaidQrysh opened this issue Jul 20, 2024 · 6 comments
Assignees
Labels
bug Something isn't working hyprland

Comments

@JunaidQrysh
Copy link

Pyprland version
2.4.0-46

Describe the bug
Kitty scratchpad does not show what i type until i switch a normal workspace, then the typed text becomes visible. I have tried with normal "kitty" and "kitty-dropterm".

To Reproduce
Steps to reproduce the behavior:
1.Toggle kitty scratchpad
2.Type something
3.Toggle again
4.Switch to a different workspace
5.Toggle again
6.Type something, now it should be invisible
7.Switch workspace, now the text will become visible

Expected behavior
Kitty should show typed text every single time

Configuration (provide following files/samples when relevant):
[scratchpads.kitty]
animation = ""
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"

Additional context
Add any other context about the problem here.

@JunaidQrysh JunaidQrysh added the bug Something isn't working label Jul 20, 2024
@JunaidQrysh
Copy link
Author

I have found what is causing this bug.
Once I added (size) parameter the bug is gone.
Removing it causes it again

@fdev31
Copy link
Collaborator

fdev31 commented Jul 21, 2024

Can you make a screenshot ?
You mean kitty shows but the window isn't updated ? Or is it really about the input ? (eg: if you run "top" in the kitty, is it updated?)

I doubt this can be fixed in Pyprland, must be an Hyprland bug, but maybe I didn't fully understand the exact problem.

@JunaidQrysh
Copy link
Author

Sorry for the late reply.
Here is the demonstration in steps.
BeforeSizeParameter.
1 BeforeSizeParam
Typed and closed Scratchpad.
2 TypedAndClosedScratchpad
Switched Workspace And Opened Scratchpad and typed.
3 SwitchedWorkspaceAndOpenedAndTyped
Switched Workspace without closing scratchpad and typed text appears.
4 SwitchedWorkspaceAndTextAppears

The above issue is fixed after adding the size parameter in config.

@fdev31
Copy link
Collaborator

fdev31 commented Jul 27, 2024

Two options here:

  • it's a focus problem, then I may need to do something in Pyprland
  • it's an input handling issue (or window refresh, can you try running "top" and see if it updates ?) : then you should open a bug for Hyprland instead

I believe providing the size adds some delay or changes some state in Hyprland and "fixes" the issue you found... Pyprland have no control on the input or drawing of the scratchpads, but the focus.

@fdev31
Copy link
Collaborator

fdev31 commented Aug 14, 2024

Do you still experience it using Hyprland 0.42 ?

@JunaidQrysh
Copy link
Author

Do you still experience it using Hyprland 0.42 ?

yup, its still present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hyprland
Projects
None yet
Development

No branches or pull requests

2 participants