pop-up window handling

Olivier Fourdan fourdan at xfce.org
Tue Sep 10 22:26:41 CEST 2002


Okay, this actually gave me an idea for xfwm4...

What it does is center transient relatively to their parent window, but
only if the transient didn't specify a position itself. That should work
in 100% cases.

As a side note, rox (1.3.x) places dialogs under the pointer, so the
window manager follow apps requisites.

Cheers,
Olivier.

On Tue, 2002-09-10 at 18:50, Olivier Fourdan wrote:
> I would add that, according to Metacity documentation, some Java apps
> set transient_for even on popup menus, making those practically unusable
> when centered in parent window.
> 
> So, yes, this could be done in the window manager, but not necessarily
> suitable for all apps. 
> 
> The best would be that the application itself centers its dialogs (like
> some gnome apps do)
> 
> Cheers,
> Olivier.
> 
> On Tue, 2002-09-10 at 18:44, Jasper Huijsmans wrote:
> > On 10 Sep 2002 09:08:54 -0700
> > Jack Coates <jack at monkeynoodle.org> wrote:
> > 
> > > Is there any way to make xfwm put pop-ups in the middle of the parent
> > > application? For instance -- I delete a file in Rox. Rox pops up a
> > > window asking if I'm sure. That window comes up in the opposite corner
> > > of the screen.
> > 
> > Actually, ROX should take care of that. Perhaps xfwm can be a little
> > smarter if the dialog sets the 'transient_for' hint, but I'm not even
> > sure ROX does that for its dialogs.
> > 
> > Jasper
> > 
> > > -- 
> > > Jack Coates
> > > Monkeynoodle: A Scientific Venture...
> > > 
> > > _______________________________________________
> > > Xfce mailing list
> > > Xfce at moongroup.com
> > > http://moongroup.com/mailman/listinfo/xfce
> > 
> > 
> > -- 
> > IRC channel: #xfce on irc.openprojects.net
> > _______________________________________________
> > Xfce mailing list
> > Xfce at moongroup.com
> > http://moongroup.com/mailman/listinfo/xfce
> > 
> -- 
> Olivier               <fourdan at xfce.org>            http://www.xfce.org
> -----------------------------------------------------------------------
> XFce is a lightweight  desktop  environment  for  various *NIX systems.
> Designed for productivity,  it loads  and  executes  applications fast,
> while conserving  system resources. XFce is all free software, released
> under GNU General Public License.    Available from http://www.xfce.org
> 
> _______________________________________________
> Xfce mailing list
> Xfce at moongroup.com
> http://moongroup.com/mailman/listinfo/xfce
> 
-- 
Olivier               <fourdan at xfce.org>            http://www.xfce.org
-----------------------------------------------------------------------
XFce is a lightweight  desktop  environment  for  various *NIX systems. 
Designed for productivity,  it loads  and  executes  applications fast,
while conserving  system resources. XFce is all free software, released
under GNU General Public License.    Available from http://www.xfce.org




More information about the Xfce mailing list