Position popup windows on the screen where the mouse cursor is located#249
Position popup windows on the screen where the mouse cursor is located#249
Conversation
23254d2 to
32da17e
Compare
|
Would this pace the top left of the window to mouse pos or the middle of the window to mouse pos. Probably more expected that the window spawns so that the mouse pos is in the middle |
I agree, this only does the top left. I also want to test it on KDE, as that's what SteamOS/Bazzite use, but I won't test on X11. |
Sounds good. A alternative would be to get the detktop the mouse is on and center it on the desktop. |
6100c1d to
5aa9b49
Compare
5aa9b49 to
32c43ac
Compare
|
Is it ready for testing / or did you test. |
Its ready for testing, but I'm still waiting for my GPD WM2 to come back from China. Its in transit, should have it in a week or two. |
Adds get_mouse_location() function that uses tkinter to get the current mouse position, then passes this location to PySimpleGUI windows so they appear on the active screen in multi-monitor setups. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32c43ac to
3c789b4
Compare
This commit fixes the Tk windows to appear on the currently focused screen.
I was finding it behaved differently on Hyprland.