Skip to content
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

Wrong offset when capturing window #66

Open
SammysHP opened this issue Jun 28, 2020 · 3 comments
Open

Wrong offset when capturing window #66

SammysHP opened this issue Jun 28, 2020 · 3 comments

Comments

@SammysHP
Copy link
Contributor

SammysHP commented Jun 28, 2020

With the current version, when making a screenshot of a selected window, the captured area starts outside of the window decoration (window decoration is 1px in my case), but uses the dimensions of the window content. This means that the decoration at the left and top side is captured, but the bottom and right side are slightly cropped.

Slightly related to #9.

@Roger
Copy link
Owner

Roger commented Jun 30, 2020

Is like get_geometry is giving the height/width of the window without decorations, but the the position (x, y) is from the start of the decoration. I tried with get_frame_extents that should include the wm decorations but is the same as get_geometry, this looks like a bug in gdk.

Which wm and distro are you using? here is arch + qtile

@SammysHP
Copy link
Contributor Author

Arch with awesome wm.

@surskitt
Copy link

surskitt commented Sep 9, 2020

Seeing this on arch + bspwm too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants