nanogui: Window position on launch time!


Previous by date: 4 Dec 2000 16:23:26 -0000 Window position on launch time!, Tasnim Ahmed
Next by date: 4 Dec 2000 16:23:26 -0000 Re: Cannot Compile 0.89pre5, Alex Holden
Previous in thread: 4 Dec 2000 16:23:26 -0000 Window position on launch time!, Tasnim Ahmed
Next in thread: 4 Dec 2000 16:23:26 -0000 Re: Window position on launch time!, Greg Haerr

Subject: Re: Window position on launch time!
From: Jordan Crouse ####@####.####
Date: 4 Dec 2000 16:23:26 -0000
Message-Id: <3A2BC5D2.7160F956@censoft.com>

The nanowm thinks that it knows best where to put the new windows, but
you can teach it a lesson.

Check demos/nanowm/clients.c starting at line 108.  This is the
algorithm that determines where the file should be.  Note that if you
set the 
window properties to GR_WM_PROPS_NOAUTOMOVE when you create the window
in your app, the window manager will use those settings.  Otherwise, it
will try to tile the windows.   You can either replace this algorithm,
or just use GR_WM_PROPS_NOAUTOMOVE (which I recommend, otherwise you
would end up having different copies of nanowm for each platform, which
pretty much violates the "same code on every processor" philosophy of
Microwindows).

Good luck with your PIMS.
Happy hacking,
Jordan

> When I started to develop PIMs for Microwindows on helio I got the pain of
> applications popping up at all locations on the desktop. How can this be
> controlled so my app always appears at 0,0. Till the keyboard appears at
> bottom I may need to restrict to rest of screen or user might play hide and
> seek with it :(
> 
> -tasnim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

Previous by date: 4 Dec 2000 16:23:26 -0000 Window position on launch time!, Tasnim Ahmed
Next by date: 4 Dec 2000 16:23:26 -0000 Re: Cannot Compile 0.89pre5, Alex Holden
Previous in thread: 4 Dec 2000 16:23:26 -0000 Window position on launch time!, Tasnim Ahmed
Next in thread: 4 Dec 2000 16:23:26 -0000 Re: Window position on launch time!, Greg Haerr


Powered by ezmlm-browse 0.20.