Re: How to know if metacity is the window manager?



On 11/27/06, Nigel Tao <nigel tao gnome gmail com> wrote:
Quick question - is there some sort of definitive X property or
environmentment variable that tells me what the window manager is,
whether it's metacity or sawfish or compiz or whatever?

Yes:

1013 newren amr:~$ xprop -root | grep CHECK
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x3000003
1014 newren amr:~$ xprop -id 0x3000003
PRIMARY(STRING) =
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x3000003
_METACITY_VERSION(UTF8_STRING) = 0x32, 0x2e, 0x31, 0x37, 0x2e, 0x31
_NET_WM_NAME(UTF8_STRING) = 0x4d, 0x65, 0x74, 0x61, 0x63, 0x69, 0x74, 0x79

Context: I have a program that would like to respect metacity's gconf
settings for e.g. focus-follows-mouse, *provided* that metacity is
indeed the window manager.

Why do you need to know the window manager's mouse focus settings?
The only case I can think of for that is IDE for GUIs and thus you
want to create the illusion of having "windows" managed inside your
window.  Is there any other case?  (or are you, by chance developing
such an IDE?)  Just curious...

Cheers,
Elijah



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]