Mac-like menu bar plasmoid added to playground
Friedrich W. H. Kossebau
kossebau at kde.org
Fri Apr 25 15:43:07 CEST 2008
Am Dienstag, 22. April 2008, um 12:22 Uhr, schrieb Lubos Lunak:
> On Monday 21 of April 2008, Friedrich W. H. Kossebau wrote:
> > Am Montag, 21. April 2008, um 13:56 Uhr, schrieb Lubos Lunak:
> > > On Sunday 20 of April 2008, Friedrich W. H. Kossebau wrote:
> > > > Hi,
> > > >
> > > > for those interested to have again a MacOS-like menu bar I started a
> > > > port (as in: start from scratch but in the end copy large parts and
> > > > adapt them) of the KDE 3 kicker applet. It even compiles and starts,
> > > > but somehow the toplevel menu windows are suppressed by
> > > > KWindowSystem, so no menus are catched by the plasmoid so far.
> > >
> > > What do you mean, suppressed? The code has not really changed from
> > > KDE3 (barring any Qt3->Qt4 changes).
> >
> > Supressed as in:
> > If I have "plasmoidviewer programmenu" running and start kwrite
> > with "macStyle=true" the signal windowAdded() is still only emitted one
> > time by KWindowSystem, as can be seen in the debug output. IIUC there
> > should be another one for the toplevel menu bar, right?
>
> Yes. It seems KMenuBar in KDE4 is broken, try with a KDE3 app.
So far I did not manage to start a KDE3 program inside my KDE4 session (some
auth problems I need to understand) but it looks that it isn't KMenuBar which
is broken. Some other toplevel windows are also not signalled, e.g. a ripped
of toolbar. No windowAdded() signal emitted, still both menubar and toolbar
are window system items with their id and properties like:
Menubar:
_NET_WM_WINDOW_TYPE(ATOM) = _KDE_NET_WM_WINDOW_TYPE_TOPMENU,
_NET_WM_WINDOW_TYPE_UTILITY
Toolbar:
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_UTILITY,
_KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _NET_WM_WINDOW_TYPE_NORMAL
Interestingly enough if I click on/activate the toolbar KWindowSystem emits
the signal activeWindowChanged(). Any idea where I should look for now?
Friedrich
More information about the Panel-devel
mailing list