psst icon indicating copy to clipboard operation
psst copied to clipboard

UI Doesn't Refresh When Dragging Between Monitors

Open jarretraim opened this issue 3 years ago • 6 comments

Macbook Pro running 11.5.2 running newest Psst as of 2021-09-17. I am using my MBP monitor as well as an external monitor connected via USB3 through a docking station.

The external monitor is my primary so on first opening Psst, the UI looks fine: https://1drv.ms/u/s!AiwgfBr5Jv2ag_QpJhYO2ySEBhL0Pw?e=XZCh29

When I drag it to my MBP monitor, the UI elements disappear as seen here: https://1drv.ms/u/s!AiwgfBr5Jv2ag_QqIHSz51THUbIT9w?e=OhUrG4

When I mouse over the screen, the UI elements refresh, but the backgrounds don't render correctly: https://1drv.ms/u/s!AiwgfBr5Jv2ag_QrcrMXFHP7muLEMA?e=V5hkpe

jarretraim avatar Sep 17 '21 14:09 jarretraim

Hi @jarretraim! Thanks for the report. This is an unfortunate artefact of the partial paint method we're using on macOS, and needs a bit of investigation to solve.

jpochyla avatar Oct 01 '21 12:10 jpochyla

We should trigger a full repaint on this method: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419267-windowdidchangescreen

Druid macOS rendering code will also probably undergo a full rewrite.

jpochyla avatar Dec 24 '21 13:12 jpochyla

@jarretraim Is this still an issue after 346a729796ecca1e49b7fadfd211b6e330e780cc?

Insprill avatar Jan 19 '23 08:01 Insprill

This is no longer happening for me when dragging between a 4k and 1080p monitor though it used to (M1 MacOS 13.2). Although I still see some similar odd artifacting when moving my cursor quickly over the application: Screen Recording 2023-07-26 at 11 13 37 PM

literallyjustroy avatar Jul 27 '23 03:07 literallyjustroy

I really wonder what this artifacting is from...

jacksongoode avatar Feb 07 '24 21:02 jacksongoode

Still on same M1 macbook and I now don't get this artifacting behavior. Perhaps got fixed from some dependency bump in the last few months, I know I've re-installed it since July as well. I also don't see any issues like this when running via cargo run.

literallyjustroy avatar Feb 14 '24 01:02 literallyjustroy