[SOLVED] [ Solved ] Linux - How to check wether the deco/border is set or not
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
[ Solved ] Linux - How to check wether the deco/border is set or not
Hello Forum !
On my search for a solution to get the active window-id, I stumbled over this forum. You were listed
at the very top in Google, and it seems, not without any reason : I found the info in less than five
minutes, record-breaking !
So I will try to get another very essential info concerning windows in Linux here: How, and where, can
I get the state of the deco/border around a window ?
I'm still not 100% sure of what you mean.. Can you show a screenshot of a window with a border and a window without? I mean, some window managers don't use borders (like XMonad), but if you're trying to work out which window manager the person is using then I feel you're not doing Good Things.
Perhaps a better question for me to ask is "What is your end goal? What are you actually trying to achieve?"
Sorry if I've just misunderstood what you're saying...
borders are the extra outline parts on the *sides* of a window. The top part is called the titlebar and the bottom part is usually called the resize ba, or something like that, because of being able to grab the corners to resize the window. Some window managers allow you to enable/disable each of these individually -of course some wm's don't even draw some or any of them.
@ gnashley : Sorry, but there are 2 different kinds of window margins,
the decos and the borders. It's a little hard to differentiate between
them in words, they are all borders or margins or edges or rands...
Regardless of the used terms, I want to know, from where I can get
the info, if there are any "whatevers" around a particular window, or not.
The denomination "border", "decoration" etc. depend on the libraries used, the windowmanager etc. and the X-server. If you want to know how it works on your system, you will have to look at which libraries the your windowmanager uses (is programmed with).
@ markush : Yes, and that's the problem. I'm not such an expierienced Gtk/C-programmer,
more precisely, neighter nor!
I'm just a little Bash/Awk-scripting, and looking for the place where that infos are stored.
Much of the other window related infos are accessible through little GNU/Unix - helpers,
but that ones unfortunately not.
When you use openbox (as you mentioned above), you should read it's documentation and probably look in the sources.
But I have another idea, I have used FVWM2 for quite some time and it is very good documented, they have a very good mailinglist. If you really want to understand, how such a WM works, I would recommend to install FVWM, http://www.fvwm.org/documentation/
@ gnashley : Yes, Xwininfo, Xprop, Wmctrl and others all became my friends.
I have looked through their different outputs, but it seems I will have no
luck with the deco issue.
Sometimes, you can't think stupid enough, so I had to be pushed with my nose
on the xprop -root option. The manual says, this option is only useful if you
have an "obscured rootwindow", which I hopefully never get, so I didn't try...
Logically thought, you can't get infos about any undetermined
window with xprop. It just works for a specified window, which
I don't have when I'm searching for it. So the rootwindow was
the right place !
But the deco-infos I need seemes to be deeply hidden inside Openbox, and contrary to its name, I will let the box closed !
Fortunatly, the absence of that info will not destroy the main intention
for my scripts. The placement of the windows, with or without any
decos/borders, is carried out correctly, and that is the essential point.
Having the right decos/borders for any particular window would "just" make
the script perfect, other, real professional DEs don't care about that...