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

When moving firefox from display to display, chunks of it remain in other displays flickering #6148

Closed
luispabon opened this issue Mar 30, 2021 · 12 comments
Labels
bug Not working as intended renderer Related to Sway's renderer

Comments

@luispabon
Copy link

  • Log into sway
  • Start firefox
  • Make window floating
  • Move from display to display
  • You can see fragments of firefox being displayed on the wrong display, flickering constantly

This recording is the same session as the debug log above:
https://www.youtube.com/watch?v=0cb8-hJFF9w

Seems to be related to firefox re-flowing itself after changing scale. Clicking on the flickering area clears it.

@luispabon
Copy link
Author

This also happens with a non-floated main Firefox window and a floated (automatically via rules in sway's config) Picture in Picture video.

The glitch does not update with the video, ie, it's always the same frame.

@emersion
Copy link
Member

This is a damage tracking issue.

@emersion emersion added the renderer Related to Sway's renderer label Mar 30, 2021
@markstos
Copy link
Contributor

I cannot reproduce this on Sway 1.5.1 with both an internal and external monitor set to scale 1.

@luispabon
Copy link
Author

luispabon commented Apr 13, 2021

It feels like this happens when the firefox window is re-scaled - for a split second when moving from display to display with different scales, the window quadruples in size (when moving from scale 2 to 1) and parts of the window suddenly appear on other displays. Those chunks of the window remaining there while flickering are basically it.

@markstos
Copy link
Contributor

I cannot reproduce this on Sway 1.5.1 with internal monitor set to scale 1 and external monitor set to scale "2". Seemed fine moving in either direction. So either I'm testing a different case or this is a regression.

@luispabon
Copy link
Author

luispabon commented Apr 13, 2021

Not a regression, this has been happening for at least a year or so, I've only just gotten around to report it.

@savchenko
Copy link

Sway v1.5, Debian Bullseye: there is momentarily, very short and single event of flicker when moving FF from one screen to another when one of the screens has different DPI.

I don't see any "leftovers" after moving the window and suspect that flicker happens when FF is switching to a different DPI.

@b0o
Copy link

b0o commented Aug 12, 2021

I've been experiencing this for many months as well. It happens almost every time I move Firefox from my main display (scale = 1.2) to my farthest left display (scale = 1). Oddly, it doesn't seem to happen as much when I move FF from my main display to my farthest right display (scale = 1). I've also seen it happen with alacritty but it's less common.

@jivvy
Copy link

jivvy commented Sep 14, 2023

I have also been experiencing this for maybe a year or two. It's the only pain point I have with sway

In order to remove the flashing, I select the screen with flickering, then go back to what I was doing. It clears the flickering away.

It happens with not just firefox, but many applications including Godot, Logseq, Bevy projects. It usually happens when I make a window into a floating window on one screen, it seems like the window briefly is drawn on other screens, then shrinks to the proper size, but leaves ghosts behind.

Sway 1.8.1-1

@luispabon
Copy link
Author

luispabon commented Sep 14, 2023

This is still happening to me. Same sway version. Only on firefox though, I don't use any of the other apps @jivvy mentioned above.

@vyivel
Copy link
Member

vyivel commented Jan 18, 2024

Should be closed by #6844.

@vyivel vyivel closed this as completed Jan 18, 2024
@luispabon
Copy link
Author

🤞🏽 thank you, I'll test & report back once I can get wlroots master to compile on ubuntu 23.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended renderer Related to Sway's renderer
Development

No branches or pull requests

7 participants