[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Reloading window decorations
From: Catalin Climov <xxl () thekompany ! com>
Date: 2001-03-21 10:51:32
[Download RAW message or body]
On Wednesday 21 March 2001 04:02, Waldo Bastian wrote:
> On Tuesday 20 March 2001 17:23, Catalin Climov wrote:
> > On Tuesday 20 March 2001 23:10, Matthias Ettrich wrote:
> > > On Tuesday 20 March 2001 15:41, Catalin Climov wrote:
> > > > Hi,
> > > >
> > > > How do I tell KWin to reload the window decorations ? I'm looking for
> > > > something similar to Workspace::slotResetAllClients(), but I don't
> > > > know how to get a handle to a Workspace instance.
> > > >
> > > > Thanks.
> > >
> > > Use Client::workspace()
> >
> > I noticed that one too, unfortunately I'm not in the context of a Client
> > when I need to reload the window decoration. I developed a kcm module for
> > setting the button order of a particular kwin decoration, and I would
> > like to reload the decoration each time the user presses the "Apply"
> > button. Any other ideas ?
>
> Me! Me!
>
> // reconfigure kwin
> DCOPClient *client = kapp->dcopClient();
> if (!client->isAttached())
> client->attach();
> client->send("kwin", "", "reconfigure()", "");
...which, in turn, emits the Options::resetClients() signal, right ?
Thanks, Waldo, that code did the trick.
Catalin.
--
Surprise your boss. Get to work on time.
Catalin Climov <xxl@thekompany.com>
Programmer
theKompany.com - http://www.thekompany.com
>> Visit http://master.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