hyprland-community / pyprland

Scratchpads & many goodies for Hyprland [maintainer=@fdev31]
MIT License
345 stars 15 forks source link

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

Open JunaidQrysh opened 1 month ago

JunaidQrysh commented 1 month ago

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 commented 1 month ago

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

fdev31 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Two options here:

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 commented 4 weeks ago

Do you still experience it using Hyprland 0.42 ?

JunaidQrysh commented 4 weeks ago

Do you still experience it using Hyprland 0.42 ?

yup, its still present.