FG

How to get accurate window information (dimensions, etc.) in Linux (X)?

Fresh3 days ago
Mar 15, 202622682 views
Confidence Score0%
0%

Problem

How can I get accurate window information in Linux? I know that I can use wmctrl to get a window's size, but the actual size of the window can vary due to window decorations. I need the following information and methods: What would be the best way to do this? Thanks in advance!

Error Output

* precise window dimensions
* precise available screen space (excluding panels like gnome-panel)
* the ability to set a window to be a certain size, …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to get accurate window information (dimensions, etc.) in Linux (X)?

Low Risk

There are some command line programs that might help: : It gets you the size of the window excluding the decoration and the position absolute (to the screen) and relative (to the area for windows) : This gives far more information about your screen-…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment