araten10 / EdgewarePlusPlus

Expansion to PetitTournesol's fetishware "Edgeware", adding more features and config options.
MIT License
50 stars 18 forks source link

[linux] all hibernate popups appear in same spot. #61

Closed spencershoe closed 3 weeks ago

spencershoe commented 2 months ago

All popups open in the center of the screen and only on the monitor the mouse is on. I'm running arch linux, with the kde plasma desktop environment. Working on a temp fix will keep everyone posted.

spencershoe commented 2 months ago

also clicking anywhere on any popup seems to close it even if buttonless closing is off, and moving popups also don't work but those usecases are more niche. ALSO you have to fullscreen the settings ui in order to see the save and exit buttons

spencershoe commented 2 months ago

Can anyone point me to the part of code where a popup's location is determined? i can't seem to find it...

LewdDevelopment commented 2 months ago

Lines 492-512 of subprocesses/popup.pyw are probably what you want.

s-b-repo commented 1 month ago

im also using linux would be nice if it worked on kde

spencershoe commented 1 month ago

for some reason adding root.overrideredirect(True) to just before the root geometry call makes it work. it also prevents you from moving the windows around using super+drag on plasma.

LewdDevelopment commented 1 month ago

overrideredirect(True) is used on Windows, but on Linux I replaced it with attributes("-type", "splash") because on GNOME, it was making it impossible to focus popups and thus use the panic hotkey as well as enter prompts. Do these still work as expected with overrideredirect on KDE? If so, this might need to be handled separately in different DEs.

s-b-repo commented 1 month ago

overrideredirect(True) is used on Windows, but on Linux I replaced it with attributes("-type", "splash") because on GNOME, it was making it impossible to focus popups and thus use the panic hotkey as well as enter prompts. Do these still work as expected with overrideredirect on KDE? If so, this might need to be handled separately in different DEs.

try using xwayland so it work on wayland and on x11

LewdDevelopment commented 3 weeks ago

Should be fixed by da6fe35