Re: gtk+ 1.2.10, Gtk-Perl 0.7008 -- how the heck do I set initial window position?

 From: muppet <scott asofyet org>
 Date: 28 Jan 2003 20:03:40 -0500
 the gdk-level functions typically map almost directly to the Xlib
 functions, so you should be able to do a $gtkwindow->show followed by
 $gtkwindow->window->move or something similar.

By the time you do a show, it's too late.  You need to be able to set
the window manager properties *before* the window is mapped.  I.e.,
you need to do the equivalent of the XSetWMProperties Xlib call.  I
cannot find any Gtk or Gdk call that is equivalent to

 metacity, the default window manager under gnome 2 on redhat 8, is known
 for being troublesome with window placement.  good luck.

I'm not using metacity, I'm using twm.  This is not a window manager
problem.  The window manager cannot be expected to place the window
properly when it is mapped if the application has not followed the
proper procedures for telling the window manager how to place the
window.  I cannot find any calls in the Gtk or Gdk API (either the
Perl wrapper or the direct C API) to do that.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]