[gtk-list] Re: How to get a window position?



Erik Mouw wrote:

> Sounds like a window manager that overrides the preferred position. Try
> another window manager and see if it works.

  I might...  Meanwhile I figured out how to make the earlier suggestion do the
trick in all window managers:

  gdk_window_get_root_origin(widget->window,&oldx,&oldy);
  gtk_widget_hide(widget);

  (Here do whatever while window is invisible.)

  gtk_widget_set_uposition(widget,oldx,oldy);
  gtk_widget_show(widget);


  So thanks to all who answered!  :)

  jca




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