question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copying selection as PNG results in a flicker on all open windows

See original GitHub issue

Hi folks,

Upfront, thanks to the entire team for all the effort that is poured into making this tool. It has made everything easier and was partially responsible for saving our team a lot of troubles when we were forced to go remote during the pandemic.


I’m here today because I seem to be facing a lot of issue in one regard. Before I get there, here is my workflow:

  1. Design something on excalidraw
  2. Select said design
  3. Copy to clipboard
  4. Add to notion / send to engineer (via slack, teams, etc)

I keep everything previously designed as well. So I have one HUGE canvas.

The issue right now seems to be coming from step (3) in the workflow. Whenever I copy to clipboard as a PNG, all the open windows seem to be getting focused and losing focus.

This is best illustrated with a gif:

4VPe5ANWbd

If you notice above, the instant I hit on the “copy to clipboard as PNG” button, both the windows start flickering. Once this happens, I can’t type in any window or do any interaction because the focus just keeps going off (I attempted to write notepad in the run window by the side and only ended up registering n there)

I am able to mitigate this in 2 ways:

  1. Restarting the machine (which is my last resort, since I might have a lot of work being done then)
  2. Locking the machine. Doing so, and leaving it locked for a few seconds and then relogging in seems to fix this problem.

I hope that I was able to convey the point across. Please do feel free to ask for more clarification as required.

Thanks again for your efforts! Cheers ✨

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
shrayasrcommented, Oct 23, 2022

Okkkk. This seems to be fixed now. Just adding the solution here for clarity:

I tried to do a wsl --update as advised here but this didn’t fix it. Looks like I was on an older version of WSLg (the GUI layer) since as per their instruction wsl --version gave me an error.

Then I installed WSL preview from here: https://aka.ms/wslstorepage and it seems to have been fixed now when copying an image from both excalidraw and photoshop

My wsl --version now shows

WSL version: 0.70.0.0
Kernel version: 5.15.68.1
WSLg version: 1.0.45
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.1098

Closing this. Thanks for your assistance folks! 😃

2reactions
maielocommented, Oct 21, 2022

@dwelle just testing it and can not reproduce it. Also was testing it with huge scene & brave.

Read more comments on GitHub >

github_iconTop Results From Across the Web

P: Windows 11 icons and menus "flicker" after copy...
When something is copied from Photoshop the Task Manager and other popup windows start to flicker. If you copy any plain text into...
Read more >
Icons flashing/redrawing in Windows 10 Explorer when image ...
When I open either "jpg" or "png" the flashing starts until I close the folder. I went to Settings -> Apps -> Default...
Read more >
Desktop refreshes every second after Screenshot to Clipboard ...
After taking some screenshots, the tray icons start to flicker and refresh every second, the same happens to the desktop and open windows....
Read more >
Windows 11 Clipboard Issue - Affinity | Forum
Something that may be good to know: The flashing persists even when I close Affinity. It only disappears when I change or clear...
Read more >
Copying Results to the Windows Clipboard
Open the Edit menu, then the Copy sub-menu. Select Cell to copy the contents of the selected cell, Page to copy the contents...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found