[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: WM hints question
From:       Matt Newell <newellm () proaxis ! com>
Date:       2001-03-06 5:32:08
[Download RAW message or body]

On Monday 05 March 2001 20:27, mosfet wrote:
> I'm playing with KWin in order to allow users to select having no borders
> for certain windows, (ie: konsoles), via the RMB menu. I simply store the
> name of the window in the Options class, and if the name is found I use the
> NoBorder client in ClientFactory.
>
> Obviously the caption string is not right for this, since captions include
> things like filenames in them. We want to get *all* instances of say,
> konsole or kwrite. As far as I could tell, this leaves using either the
> XClassHint res_name or res_class strings to identify windows. From playing
> around for awhile, res_name has "untitled" for some windows while res_class
> always seems to have a unique identifier for each app. Thus I assume this
> is the right hint and am using that. Since I'm not sure tho (I try to avoid
> this stuff ;-) I thought I would check first.

Where do you find the XClass Hint stuff?  A while ago I was trying to rewrite 
Kasbar so that it would group all of the windows of a certain application 
under one icon which would display a menu when clicked.  I got it working 
somewhat, but I gave up because I couldn't find a way to tell what windows 
were from the same application. Of course much of my desire for this is gone 
now that we have Kant :)

Matt Newell

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic