on-internet
← Community

Tk toplevel window returns wrong position on Linux (KDE Plasma)

Stack Overflow ·

An application I contribute to, which uses Tk for its UI, has subpanes which follow the main window around. This worked perfectly fine on Windows, but on my Linux system (which runs a KDE Plasma Wayland session), the subpanes jump downwards and slightly to the right whenever the program moves them (due to following the main window, resizing widgets, etc.) After some experimentation I determined that every function for getting window geometry seems to return the top-left corner inside the window border, while setting the geometry places it according to the outside of the window border. (The Tk

Comments

Sign in or sign up to comment and upvote.

No comments yet.