Bug 84348 - xwininfo -id .. gives '0' for Relative upper-left X: and Y: on Unity in Ubuntu 14.04 for any window
Summary: xwininfo -id .. gives '0' for Relative upper-left X: and Y: on Unity in Ubunt...
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xwininfo (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 03:32 UTC by Colin Keenan
Modified: 2018-08-10 20:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Colin Keenan 2014-09-26 03:32:32 UTC
xwininfo -id $(xdotool getactivewindow)

should give a lot of information about the active window, including the relative number of pixels between the X window and the out edge of a decoration. It works fine in Xfce under Arch Linux, but people using my scripts have complained that it doesn't work under Ubuntu 14.04 Unity, and just reports:

Relative upper-left X:  0  
Relative upper-left Y:  0

For any window even though they do have a 28 pixel title bar and 1 px borders on sides and bottom. I got that information from https://wiki.ubuntu.com/Unity/Theming, which probably also has enough information for whoever works on this to get xwininfo properly determine the Relative upper-left X and Y numbers. They will almost always be 28 and 1, but could have been changed by following the instructions on that link.
Comment 1 Colin Keenan 2014-09-26 14:37:50 UTC
The information I needed from xwininfo Relative information is available from:

xprop _NET_FRAME_EXTENTS --xid=$(xdotool getactivewindow)

So, however that is working, seems like it should work the same in xwininfo.
Comment 2 GitLab Migration User 2018-08-10 20:36:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/app/xwininfo/issues/1.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.