sway icon indicating copy to clipboard operation
sway copied to clipboard

Flicker with called Sway Menus from Wofi / Swayr

Open zDEFz opened this issue 3 years ago • 6 comments
trafficstars

Please read the following before submitting:

https://user-images.githubusercontent.com/24463722/187961933-280de52f-0a7d-494b-82a5-d97947e7e41d.mp4

Please fill out the following:

  • Sway Version:1.7

  • Debug Log:

    • https://termbin.com/q833
  • Configuration File:

  • https://termbin.com/qxvm

  • Stack Trace:

  • not applicable

  • Description:

    • Sway flickers on one of my monitor when swayrd calling its native menu/s.

    Video:

zDEFz avatar Sep 01 '22 16:09 zDEFz

No idea what could be the cause, but it doesn't happen on my end with sway 1.7 and wofi. Did you try with a different wofi config file?

Zeioth avatar Sep 21 '22 01:09 Zeioth

I found the solution and the issue. Wofi is incapable of setting height and width with two monitors that are 1920x1080, but one is in portrait mode. The solution? Supply height and width extra. Like

Control+e exec wofi -H 800 -W 800 --show drun

Swayr uses wofi without height and width, I guess~!

That aint a wofi problem, but probably the issue is that appropriate dimensions are not given by default. I think it auto generates 'fitting' dimensions if they are left out, but then re-sizes when it finds out it wouldnt fit or so ?

Altering the monitors absolute position can move the issue to the left monitor. It works without values for whatever monitor has pos 0 0

What I do not yet know, how can I pass width and height to swayr? Cause I want the window-switcher to not flicker cause of a issue with sway menus! Is that a limitation? Anyhow, I see a issue with swaywm here. Isnt it?

zDEFz avatar Sep 21 '22 09:09 zDEFz

I added a issue on swayr, perhaps they can issue a bugfix for something that isnt even their fault. https://todo.sr.ht/~tsdh/swayr/28

zDEFz avatar Sep 21 '22 10:09 zDEFz

Turns out we have to configure to have fixed width and height. But why does it flicker in the first place. no clue!

zDEFz avatar Sep 21 '22 11:09 zDEFz

Here is the related wofi bug: https://todo.sr.ht/~scoopta/wofi/183. Shouldn't this issue here be re-opened? At least the wofi developer thinks this might be a sway bug.

languitar avatar Oct 17 '22 14:10 languitar

Here is the related wofi bug: https://todo.sr.ht/~scoopta/wofi/183. Shouldn't this issue here be re-opened? At least the wofi developer thinks this might be a sway bug.

Alright. I re-opened the issue.

zDEFz avatar Oct 17 '22 15:10 zDEFz

I have the same problem! The current workaround is setting a fixed height/width when calling wofi then?

francocalvo avatar Jun 02 '23 15:06 francocalvo

I have the same problem! The current workaround is setting a fixed height/width when calling wofi then?

precisely. Think it was -H 800 -W 800 or so in my config for 1920x1080

zDEFz avatar Jun 02 '23 20:06 zDEFz

This issue can be closed, or? this is not a sway bug then.

alxndr13 avatar Oct 06 '23 13:10 alxndr13