Hi,
Having some problems with Xsi.c and Xsi.h. There is some problem in activating
the window.
The RaiseWindow is not working. I mean the Window properties (
XGetWindowProperties ) is failing ..
Can anybody help me with some Alternative for this. WM_NAME is not being set.
May be some wmx issue. But can I ignore this WM_NAME issue and make Xsi.c work
entirely based on WM_CLASS ??
Thanks in Advance,
Jyothi.
Robert Mibus wrote:
> On Wed, 2002-01-16 at 00:08, Nils Faerber wrote:
> > On Tue, 15 Jan 2002 15:49:11 +0530
> > Jyothi <jyothi@ncoretech.com> wrote:
>
> > > new application in the callback. So I am using system command to do this
> > > and I run the
> > > application in the system command as background so that I will get back
> > > the control.
> >
> > Oh ...
> > better do it the Unix way: First fork() then exec().
> Actually, GPE still does system("program &") when you force-run a
> program.
> (Nils: I said I was slack :)
>
> > We had the same discussion on the GPE mailinglist (maybe you like to join
> > us there!). At the moment Robert Mibus who does the application manager
> > part uses routines from xsingleinstance from linux.companionlink.com for
> > this. This is more complicated that it look sat the first glance.
> > How do you judge if the program to be launched is already running?
> > You could look-up in the process list but we decided that this is not a
> > good way. So we chose to use xsingleinstance which looks at the X-Window
> > window list.
>
> Grab gpe-appmgr's source from
> http://users.bigpond.com/mibus/gpe-appmgr.tar.gz
> Steal xsi.c, xsi.h from there. Then just pass the executable you want to
> run and the window title it'll use and either (a) the program will be
> run or (b) the running program will be brought to the front. Note that
> the bringing-to-the-front part doesn't work under ion. matchbox and all
> of the others work OK.
>
> (And while you're at it, try out gpe-appmgr :)
>
> eg:
> run_program ("mingle", "Contacts");
>
> It's as easy as that. (Providing you know the window title in advance,
> of course :)
>
> > > Thanks in Advance,
> > > Jyothi.
> > CU
> > nils faerber
> HTH;
> mibus
>
> --
> Robert Mibus <mibus@bigpond.com>
> omeone else's position.
>
> _______________________________________________
> iPAQ mailing list
> iPAQ@handhelds.org
> http://handhelds.org/mailman/listinfo/ipaq
> irc://irc.openprojects.net #ipaq
Received on Sat Jan 19 04:42:19 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:22 EDT