From: Janek K. <jan...@wp...> - 2008-01-21 20:37:44
|
Thomas Leonard said: (by the date of Mon, 21 Jan 2008 18:57:50 +0000) Hello, Some pictures are attached to clearly explain how I tested "Save Current Display Settings". > On 20/01/2008, Janek Kozicki <jan...@wp...> wrote: > > Thomas Leonard said: (by the date of Sun, 20 Jan 2008 19:20:02 +0000) > [...] > > > Are you integrating this with ROX-Filer's XSM support? > > > > No. I want to be able to add few lines into my ROX/AutoStart > > Some of the calls I currently have in there include: > > One other possibility: could you use the Display -> Save Current > Display Settings feature? OK, I just tested this - it rarely works [1] And never works perfectly (pixel-to-pixel) [2,3]. First of all, to avoid any WM interference I've set "Placement" method to "none" (because normally I'm using "under pointer" placement method). So I picked up some test directory and saved its options. Then: 1. if I type in xterm command 'rox /home/janek/this/directory/' the saved options are completely ignored. I must click to go to upper directory, then enter this directory again - and then position (and "size") are restored. So it will never work from #!/bin/sh script. Human interaction is always necessary (click to go to upper director, then reenter it). 2. Window position is 66% of time correctly restored (attached files save1.png, save2.png). A very interesting behaviour is shown on save3.png and save2.png pictures: when I enter/leave/enter/leave this directory continuously the window position changes from save2.png to save3.png - back and forth (that's the 33% when restoring window position doesn't work). 3. window size never works. See attached picture save-opt.png. The window size is saved: - including button bar, including scrollbar, and exactly 1px smaller than actual window size, excluding window title bar. and is restored to: - without button bar, without scrollbar, and exactly 2px smaller than actual size. IMPORTANT when you look at save-opt.png: - my sawfish theme "mxflat" is configured to have border offset=-1px. This means that the border (eg. the yellow and red 1px thick lines on save1.png) are drawn exactly OVER the last pixels of the window. The border does not start where the window ends. It starts ON the window and ends exactly with it. - The window "Corners" are 1px bigger than the actual window size. Annotation to 1. when starting from #!/bin/sh I need to open a rox window *outside* of current viewport. I'm not using workspaces. I'm using viewports. And because of that, if I start an 'xterm -geom 80x25+5000+4000' it will open correctly as I want it - one viewport to right, four viewports down, relative to current viewport. It's not possible to "Save Display Settings" when rox window is not shown on screen (so that it would save a +5000+4000 position). Concluding - I need to open rox window far away, on viewports which are currently not shown. I have 6x4=24 viewports here (3200x1200 screen size (dualhead)), so it's quite normal that I want to open rox window on, say the last viewport on the bottom (far below current viewport). Invocation 'rox ./ --geometry 300x200+5000+4000' would work great for this. best regards -- Janek Kozicki | |