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

List:       kde-devel
Subject:    Re: Bespin GlobalMenu with XBar Development,
From:       Thomas =?iso-8859-1?q?L=FCbking?= <baghira-style () gmx ! net>
Date:       2010-08-21 15:06:20
Message-ID: 201008211706.20657.baghira-style () gmx ! net
[Download RAW message or body]

Am Saturday 21 August 2010 schrieben Sie:
Hi Aaron,

> Now i'm meeting a problem , when i switched from a GTK application to a
> program , without global menu support (like Firefox , OpenOffice ,
> written in C++ totally maybe) , top menu won't disappear , while menu
> actions was already deactivaed.

downloaded the sources from kde-look, but this: 
> void GlobalMenu::activeWindowChanged(WId wid)
> {
> ..
>  	// Thus , when window is not active , remove menu , fall back to
> default XBar menu
> 	if(KWindowSystem::activeWindow() != WId) {
> 		XBAR_SEND( MSG("unregisterMenu") << (qlonglong)wid );
> 	}
> ..
> }
ain't there.

However
a) "releaseFocus" should be sufficient (in contrast to "unregisterMenu" and 
complementing "requestFocus")
b) from the snippet it looks a bit as if you tried to release/unregister the 
function parameter WId - this is not gonna work since it's the WId of the just 
activcated window (the one w/o supported menu) - so you'd have to store the 
currently used WId in a variable and release that.

For more information i'd have to see the actual sources, sorry :-(

Cheers,
Thomas

Ps:
i don't use too many Gtk+ apps (mostly gimp & inkscape and they happen to be 
the only apps i'm using max'd as well ;-) but i could actually merge 
globalmenu support upstream.

Pps:
canonical apparently works on a global menu solution as well (shuttleworth's 
creating his personal mac clone anyway...). Iff this will be supported by Gtk+ 
& Qt upstream this here will be superflous in a near future anyway (though I 
object the way both global menu as well as the canonical solution implement 
popups, since they're really nothing i'd post on X11 or dbus, that's client 
private stuff that triggers _real_ actions ...)

Ppps:
Mozilla's toolkit is XUL, OOo uses UNO
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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