-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add methods to get the position of a window's client area, relative to the desktop #430
Conversation
For me under Xfwm4, |
I just tested this on macos 10.12.4 by printing the result of Not sure if the |
219d9fe
to
7940178
Compare
7940178
to
5d5bb8b
Compare
Okay, with #438 merged, this works on X11 now. @mitchmindtree are you sure they were both outer position? I changed the relevant code (and badgered one of my friends into testing it), and it seems that the existing (Also, it seems that on macOS, EDIT: the |
5d5bb8b
to
c873a62
Compare
Okay, |
@RobSaunders do you think you could take a look at this? |
Alright, after getting a chance to test this on macOS hands-on, I've confirmed that the new implementation is correct, and consistent with Windows and X11. |
This differs from the current
get_position
, in that the current method gets the window's top-left position, including window decorations. This adds aget_inner_position
method, which gets the client area's top-left position, not including decorations, relative to the desktop.