[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: gnuplot in Konsole: how to change focus to its Tab?
From: Thiago Macieira <thiago.macieira () kdemail ! net>
Date: 2003-12-03 16:02:34
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Petr Mikulik wrote:
>Sorry, I don't have KDE 3.2.
>
>Can you please try it yourself?
Sorry, I don't have gnuplot ;-)
But $WINDOWID is set correctly. xwininfo -id $WINDOWID displays the correct
information. However, if you detach the session from Konsole, $WINDOWID will
still point to the original window, not to the detached session.
Still, what I found is this:
$ env | grep -i konsole
KONSOLE_DCOP=DCOPRef(konsole-3241,konsole)
KONSOLE_DCOP_SESSION=DCOPRef(konsole-3241,session-3)
So you can do:
$ dcop konsole-3241 konsole activateSession session-3
Other problems:
- using the mainwindow interface, I couldn't get the window to get focus on
its on; focus() always returns false. Some X trickery would be required for
this.
- doesn't work for detached sessions either
Maybe a set of methods in the session interface would help -- getWinID (like
in the mainwindow interface) and something to activate that session,
regardless of "detachness" state.
--
Thiago Macieira - Registered Linux user #65028
thiagom@mail.com
ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
[Attachment #5 (application/pgp-signature)]
>> 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