M
Marcin Simonides
I need to set (or at least have a sensible value of) X window class for
all application's windows, so that I can identify them for window
manager (FVWM in this case, this is irrelevant though).
What can I do to achieve this?
Here's what I've been able to learn so far:
The TkRoot window has class name derived from script file name (which is
satisfactory for me) but TkToplevel instances have class name of
TopLevel and resource IDs w00001, w00002 etc (I belive that using
resource names would be possible in FVWM, so a way of setting this could
solve my problem).
In documentation that I found:
http://www.jbrowse.com/text/rubytk_en.html#label:18
there is a definition:
TkToplevel.new(parent=nil, keys=nil)
TkToplevel.new(parent=nil, screen=nil, classname=nil, keys=nil)
but calling TkToplevel.new(@parent, nil, 'MyClass') doesn't set the
window's class.
I apologize if this has been covered on the list before but searching
for this topic is a bit difficult (I mean with keywords like "tktoplevel
window class ruby"...).
all application's windows, so that I can identify them for window
manager (FVWM in this case, this is irrelevant though).
What can I do to achieve this?
Here's what I've been able to learn so far:
The TkRoot window has class name derived from script file name (which is
satisfactory for me) but TkToplevel instances have class name of
TopLevel and resource IDs w00001, w00002 etc (I belive that using
resource names would be possible in FVWM, so a way of setting this could
solve my problem).
In documentation that I found:
http://www.jbrowse.com/text/rubytk_en.html#label:18
there is a definition:
TkToplevel.new(parent=nil, keys=nil)
TkToplevel.new(parent=nil, screen=nil, classname=nil, keys=nil)
but calling TkToplevel.new(@parent, nil, 'MyClass') doesn't set the
window's class.
I apologize if this has been covered on the list before but searching
for this topic is a bit difficult (I mean with keywords like "tktoplevel
window class ruby"...).