Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to write a script to align several windows. I'm using the XFCE desktop.4.18, GTK 3.24.39 .
I have a top panel of height 40px. Running xprop on the panel gives:
Code:
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
so there are no borders/padding added.
Running xprop on an xfce4-terminal gives:
Code:
(_NET_FRAME_EXTENT(CARDINAL) = 4, 4, 24, 4
so there is a 24px (top) + 4px (bottom) frame added.
Now I'd like to move the terminal to 200,0 with a size of 500X500. Running wmctrl:
Code:
wmctrl -r terminal -e 0,200,0,500,500
places the terminal at X=200 Y=88.
Why is it placed at Y=88? there are 40px from top due to the the top panel so why not Y=40?.
Even adding the top + bottom frame thickness (24+4=28) doesn't add up to 88.
My question: how do I determine a window's final geometry given a top panel + desired window geometry + frame extensions (_NET_FRAME_EXTENT) ?.
I am using xfwm4, it the stock xfce WM.
In "window manager tweaks" there is "minimum size of window to trigger smart placement". The slider is at about 25% (close to small).
I ticked-off Window snapping>To screen borders but no effect.
The wmctrl shows the window's top Y coordinate is 88 but it's placed just flush against the top panel which ends at Y=40.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
Well as I said I don't use xfce any more but my last suggestion is to use xfce4-settings-editor as you can sometimes do things you can't do in the other settings managers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.