Re: new guitarix breakout (gx_head)

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

 



Am Montag, den 25.10.2010, 15:49 +0200 schrieb Robin Gareus:
> On 10/21/10 22:47, Robin Gareus wrote:
> > On 10/21/10 22:43, Robin Gareus wrote:
> >> On 10/21/10 22:28, hermann wrote:
> >>> Am Donnerstag, den 21.10.2010, 00:36 +0200 schrieb Ivan Tarozzi:
> >>>> Il giorno dom, 17/10/2010 alle 19.02 +0200, hermann ha scritto: 
> >> [..]
> >>>> When I close gx_head and restart, open windows are restored but they
> >>>> didn't save their positions. So, is really hard to keep in order the
> >>>> desktop.
> >>>
> >>> Do you have some Apps save their positions, witch are they, I will have
> >>> a look at the source to see how they handle that.
> >>
> >> http://xjadeo.sf.net/ does (and remembers them via LASH).
> >>
> >> * GTK: gdk_window_get_origin() , gdk_window_get_position(),
> >> gdk_window_set_geometry_hints()
> 
> for completeness and since guitarix is GTK:
>   gint my_root_x, my_root_y, my_width, my_height;
> 
>   gtk_window_get_size (GTK_WINDOW(window1), &my_width, &my_height);
>   gtk_window_get_position (GTK_WINDOW(window1), &my_root_x, &my_root_y);
> ..
>   gtk_window_resize(GTK_WINDOW(window1),my_width,my_height);
>   gtk_window_move(GTK_WINDOW(window1),my_root_x,my_root_y);

After some time wondering why the windows move slowly to the left side
(2 - 5 pixel per restart), I found that in addition I have to set the
gravity Static, to ignores the window manager decorations. :-)

gtk_window_set_gravity(GTK_WINDOW(fWindow), GDK_GRAVITY_STATIC);

And because we more and more move to gtkmm then

window.set_gravity(Gdk::GRAVITY_STATIC);

greats  hermann

> 
> >> * generic X11: TranslateCoordinates(), XMoveWindow()
> >> * OSX: GetWindowBounds(), MoveWindow()
> >> * Windows: GetWindowInfo(), SetWindowPos()
> >>
> >> Look in display_*.c for *_resize() and *_position(),
> >>  getsize_*() get_window_pos_*().
> > 
> > Additionally the good old '--geometry' X11 option will do the trick. No
> > dedicated code required. I dunno if that'll work for jack-session
> > support though. It did not work with LASH either.
> > 
> >> HTH,
> >> robin


_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux