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

List:       freedesktop-xorg
Subject:    How to know if a window has a menu , identify by WId ( was `Simple
From:       Aaron Lewis <aaron.lewis1989 () gmail ! com>
Date:       2010-08-24 0:36:52
Message-ID: 4C731424.8050109 () gmail ! com
[Download RAW message or body]

Hi,
	Still for the last plasma-globalmenu , now i've got some ideas , i
could grab the last focused window by remembering WId , and only if that
window has a `menu' , that will change the variable `lastWid' ..

So , something like this ..

In globalmenu.h

private:
	WId wid;

In globalmenu.cpp:

void GlobalMenu::windowChanged ( WId wid ) {

	// If Window has a menu , remember lastWid;
	if ( X11->hasMenu ( lastWid ) ) {
		lastWid = wid;
	}

}

So is there any API like X11->hasMenu ( WId wid ) ?

Source Code is here: http://kde-apps.org/content/show.php?content=129006

Thanks !

-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

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