Getting and setting window size and position

Jack <[email protected]> Tue, 2 Sep 2025 09:31:09 +0300
Newsgroups gmane.comp.xfce.user
Message-ID <CAH8MQ5zZgwpvhGK71xHc6HGfZaSaJbmjjnDwO-zaBU-T1r+D1Q@mail.gmail.com>
--===============8069108566588639709==
Content-Type: multipart/alternative; boundary="000000000000dfed8a063dcba27b"

--000000000000dfed8a063dcba27b
Content-Type: text/plain; charset="UTF-8"

What is a reliable method to programmatically get and later set the exact
geometry (position and dimensions) of an window under X11 on a Linux Debian
XFCE4 system?

I've attempted to use wmctrl, xdotool, and xwininfo without success. The
results are inconsistent, or I am potentially misunderstanding their usage.
Could you recommend a more straightforward solution OR clarify how to use
these tools effectively by giving a simple example how to do it?

--000000000000dfed8a063dcba27b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">What is a reliable method to programmatic=
ally get and later set the exact geometry (position and dimensions) of an w=
indow under X11 on a Linux Debian XFCE4 system?<div><br></div><div>I&#39;ve=
 attempted to use wmctrl, xdotool, and xwininfo without success. The result=
s are inconsistent, or I am potentially misunderstanding their usage. Could=
 you recommend a more straightforward solution OR clarify how to use these =
tools effectively by giving a simple example how to do it?<br></div></div>
</div>

--000000000000dfed8a063dcba27b--

--===============8069108566588639709==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Xfce mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

--===============8069108566588639709==--