xdotool reports incorrect window dimensions

Bug #1674373 reported by Richard Wiseman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdotool (Ubuntu)
New
Undecided
Unassigned

Bug Description

To reproduce, open a terminal window (not maximised) and run:

xdotool getactivewindow getwindowgeometry

The output of this includes the window's size.

Screen-grab the window and open in an editor such as Gimp.

Whilst the window is identical in size (when viewed at 1:1 zoom), the dimensions of the grabbed version is actually larger by (as far as I can tell) the window decoration such as the title bar, in my case 28px.

An alternative approach that doesn't require screen-grabbing is to drag the terminal to the top of the screen and then manually extend it to the full height of the screen. My screen is 1920x1080 and the height of the full-height window is reported by xdotool as 1052 which is exactly 1080 minus the height of the window's title bar.

I am using Linux Mint 18.1 Serena and the installed and candidate versions of xdotool are both 1:3.20150503.1-2.

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.