[linux-audio-user] QJackCtl window position consistency?

Jan Depner eviltwin69 at cableone.net
Fri Dec 30 15:54:04 EST 2005


On Thu, 2005-12-29 at 16:23 -0500, Lee Revell wrote:
> On Thu, 2005-12-29 at 16:00 -0500, Rick Wright wrote:
> > Lee Revell wrote:
> > 
> > >On Thu, 2005-12-29 at 14:46 -0500, Rick Wright wrote:
> > >  
> > >
> > >>Rui Nuno Capela wrote:
> > >>
> > >>    
> > >>
> > >>>Rick Wright wrote:
> > >>>
> > >>>      
> > >>>
> > >>>>I'd like the qjackctl windows (i.e. the control window, messages, 
> > >>>>connections, status) to open for a subsequent executation in the same 
> > >>>>screen locations as I had them at shutdown from the last execution.  
> > >>>>Is this possible?  I can't seem to find an option for this.
> > >>>>
> > >>>>All (and only those) windows that were visible from the previous 
> > >>>>execution do indeed appear on the subsequent application run (which 
> > >>>>is good), but the window positioning appears to be forgotten.
> > >>>>
> > >>>>Rui, if this is not currently supported, would it be possible to add 
> > >>>>this feature?
> > >>>>
> > >>>>        
> > >>>>
> > >>>Window positioning persistence is already featured and is default 
> > >>>behavior, for quite some time. AFAICS its been ever since ;). Problem 
> > >>>is that behavior may vary, with some glitches depending on your 
> > >>>particular WM. It is well known, at least to me, that window positions 
> > >>>aren't remembered very well if you stick to use the WM close button on 
> > >>>those window titles, usually the ones labeled as [X]. OTOH if you use 
> > >>>qjackctl main window control buttons, to toggle child window 
> > >>>visibility and to quit application, all seems to work just fine ;) or 
> > >>>so I believe and been told.
> > >>>
> > >>>
> > >>>      
> > >>>
> > >>I am finding inconsistency in the window positioning persistence.  
> > >>Sometimes the windows appear in the same position, sometimes they 
> > >>don't.  This has been tested using only the QJC main window control 
> > >>buttons as recommended above.
> > >>
> > >>Leaving the windows open (only testing using 4 of them: main, status, 
> > >>messages, connections) upon shutdown (quit on main window) and 
> > >>restarting QJC sometimes gives the same locations and sometimes not, but 
> > >>it seems that the windows don't like the presence of other windows (i.e. 
> > >>an xterm from which to start QJC!) and the most prevalent offender is 
> > >>the main window.  Actually, it seems that upon the first restart of QJC, 
> > >>the positions are remembered, but without moving any windows, a second 
> > >>quit/restart results in some windows appearing cascaded from the top 
> > >>left of the desktop.  Window sizes are always remembered.
> > >>
> > >>Can anyone else reproduce this?
> > >>    
> > >>
> > >
> > >What desktop environment and window manager are you using and which
> > >version?
> > >
> > >Lee
> > >
> > >
> > >  
> > >
> > Reply try #3.....
> > 
> > Running an up-to-date FC4/GNOME (2.6.10) system.
> > 
> > Rick
> > 
> 
> OK, I just reproduced this on my Ubuntu Breezy system, Gnome 2.12.0.  If
> I run qjackctl, open the Messages window, move it, open the Connect
> window, move that, then close the main window by clicking the X, next
> time I run it the Messages window has moved back to where it started.
> 
> Surely this is a WM bug, the app can't be responsible for remembering
> the position of its windows?
> 

    Yes.  The app is responsible for remembering the location of its
windows.  This is done in Qt using Widget::setGeometry,
Widget::frameGeometry, and Widget::geometry.  You have to remember to
capture all of the window positions on close (of any kind).  I use
QSettings to save and restore window locations (and toolbar locations).
One problem in KDE prior to 3.2 (I think that was the version),
sub-windows do not always come back in the correct location.  When I
went to FC4 (uses KDE 3.4) this was corrected.


-- 
Jan 'Evil Twin' Depner
The Fuzzy Dice
http://myweb.cableone.net/eviltwin69/fuzzy.html


"As we enjoy great advantages from the invention of others, we should be 
glad of an opportunity to serve others by any invention of ours, and 
this we should do freely and generously."

Benjamin Franklin, on declining patents offered by the governor of 
Pennsylvania for his "Pennsylvania Fireplace", c. 1744




More information about the Linux-audio-user mailing list