[GH-ISSUE #183] UI Doesn't Refresh When Dragging Between Monitors #133

Closed
opened 2026-02-28 14:30:51 +03:00 by kerem · 7 comments
Owner

Originally created by @jarretraim on GitHub (Sep 17, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/183

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

Originally created by @jarretraim on GitHub (Sep 17, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/183 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
kerem 2026-02-28 14:30:51 +03:00
Author
Owner

@jpochyla commented on GitHub (Oct 1, 2021):

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.

<!-- gh-comment-id:932190858 --> @jpochyla commented on GitHub (Oct 1, 2021): 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.
Author
Owner

@jpochyla commented on GitHub (Dec 24, 2021):

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.

<!-- gh-comment-id:1000836191 --> @jpochyla commented on GitHub (Dec 24, 2021): 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.
Author
Owner

@Insprill commented on GitHub (Jan 19, 2023):

@jarretraim Is this still an issue after 346a729796?

<!-- gh-comment-id:1396612773 --> @Insprill commented on GitHub (Jan 19, 2023): @jarretraim Is this still an issue after 346a729796ecca1e49b7fadfd211b6e330e780cc?
Author
Owner

@royathan commented on GitHub (Jul 27, 2023):

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

<!-- gh-comment-id:1652847634 --> @royathan commented on GitHub (Jul 27, 2023): 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](https://github.com/jpochyla/psst/assets/56088145/b445fcff-ff68-4dae-9904-15bd7e851dc9)
Author
Owner

@jacksongoode commented on GitHub (Feb 7, 2024):

I really wonder what this artifacting is from...

<!-- gh-comment-id:1932884003 --> @jacksongoode commented on GitHub (Feb 7, 2024): I really wonder what this artifacting is from...
Author
Owner

@royathan commented on GitHub (Feb 14, 2024):

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.

<!-- gh-comment-id:1942940061 --> @royathan commented on GitHub (Feb 14, 2024): 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`.
Author
Owner

@jacksongoode commented on GitHub (Jul 26, 2024):

Closing this unless it can be reproduced!

<!-- gh-comment-id:2253318193 --> @jacksongoode commented on GitHub (Jul 26, 2024): Closing this unless it can be reproduced!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#133
No description provided.