breaktimer-app icon indicating copy to clipboard operation
breaktimer-app copied to clipboard

Notification UI duplicated

Open Perturbatio opened this issue 3 years ago • 9 comments

When I receive a notification to take a break (and when the break starts), the UI is duplicated and offset slightly.

image

Linux Mint 20.2 (Uma) using cinnamon.

Perturbatio avatar Oct 06 '21 14:10 Perturbatio

How many monitors are you using? Can you double check you definitely don't have two instances of breaktimer open, too?

tom-james-watson avatar Oct 06 '21 14:10 tom-james-watson

I'm running two monitors @4K

There only appears to be one instance running, this was something I checked before. There are multiple processes of course, but only one for BreakTimer.AppImage itself

image

Perturbatio avatar Oct 06 '21 14:10 Perturbatio

I assume one of the monitors didn't have a popup at all? There should be one popup on each monitor.

tom-james-watson avatar Oct 06 '21 14:10 tom-james-watson

Ah, yep. I didn't realise it was supposed to be on each monitor. That'll be the issue then.

Perturbatio avatar Oct 06 '21 14:10 Perturbatio

In Windows 10 I have two monitors where monitor 2 is the primary one. Popup shows only on monitor 1 but not duplicated or if they are duplicated they are perfectly aligned with each other.

eesau avatar Oct 18 '21 08:10 eesau

On Windows 10 I made it so that it only displays on one monitor as a workaround because there were some other bugs (in Electron itself) where the windows would not actually render in the correct place.

tom-james-watson avatar Oct 18 '21 08:10 tom-james-watson

Ok, can you detect which monitor is primary and show popup there?

eesau avatar Oct 18 '21 09:10 eesau

Yeah it looks like that should be possible: https://github.com/electron/electron/blob/main/docs/api/screen.md.

tom-james-watson avatar Oct 18 '21 09:10 tom-james-watson

I have this issue with 2 monitors and the built in monitor.

stephenjamieson avatar Mar 31 '22 21:03 stephenjamieson