[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Bespin GlobalMenu with XBar Development, Please help me develop
From: Aaron Lewis <aaron.lewis1989 () gmail ! com>
Date: 2010-08-21 23:06:11
Message-ID: 4C705BE3.6050009 () gmail ! com
[Download RAW message or body]
Hi Thoams .. ;-P
On 08/22/2010 02:47 AM, Thomas Lübking wrote:
>
> Afaics it's unconditionally set in windowChanged() what can happen quite
> often* to every kind of window (and likely even if you just deactivate a
> window. Also there's a good chance that you receive a windowChange on
> de/activation as well (since this in not the property variant), so you should
> rather set
> lastWid in activeWindowChanged() and _only_ if !ctxXML.isEmpty()
> (assuming this means there's a globalmenu property ont he window - see
> attachment. Also WId is iirc unsigned, so "-1" is no good idea, rather use "0"
> here)
i think ctxXML.isEmpty() means window is not active , so no menu entries
can be read from DBUS interface ..
Nice job , i had never do X11 programming before , so don't know WId is
unsigned , after putting initialized value to zero , it suddenly works !
Clicking on blank area make it lose focus , also for minimize event.
Very cool , now i could update it to 0.18 version.
>
> Thomas
>
> *there's probably space for optimization by connecting the signal that only
> fires on property changes and check whether it's actuall _your_ property
> before doing anything.
Yeah , i've been looking for it for a while , i'd appreciate it if
anyone knows the answer.
--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
>> 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