aleab / toastify

:mega: TOASTIFY DEVELOPMENT HAS STOPPED | Toastify adds global hotkeys and toast notifications to Spotify
https://aleab.github.io/toastify
GNU General Public License v2.0
434 stars 48 forks source link

X, Y positioning goes wrong on a multi-screen setup #173

Open mradrianmarsh opened 2 years ago

mradrianmarsh commented 2 years ago

I've a laptop with 2 external screens. My normal setup is the Windows Main screen is the first external screen. Toastify normally sits there just above the clock as normal.

If I disconnect the laptop from the dock, then reconnect it, Toastify notifications then start appearing higher up and to the left of that screen. I think that Toastify isn't aware of the screen layout changes happening. I think it's being moved by Windows to fit the smaller laptop screen when off-dock, but then when the extra displays are available it doesn't know to go back to the original place.

Closing Toastify and re-opening it doesn't help, popups still appear mid-screen.

Pre-screen change, pixel positions: 1620, 1075 (Default) After: 1236,784

EXPECTED BEHAVIOUR

Maybe an option could be added to say stick-to-corners, rather than x,y off-placement ?

ACTUAL BEHAVIOUR

After an un-dock/re-dock then the pop appears almost mid-screen, not in the corner.

STEPS TO REPRODUCE THE BEHAVIOUR

Set to defaults whilst docked. Undock to laptop-only-screen. Re-dock so that the external displays engage.

LOG FILE

(Drag and drop your Toastify.log file here; it can be found in %LocalAppData%\Toastify) Toastify.log