Double Commander

Official forum
It is currently Mon May 20, 2013 10:59 pm

All times are UTC + 3 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Sep 13, 2011 6:44 pm 
Offline

Joined: Tue Sep 13, 2011 6:29 pm
Posts: 7
I'm having a Linux Ubuntu 10.10 setup with two monitors.

I like to keep Double Commander on the left monitor, but then I'm having a problem with
the internal viewer (and file copy dialog), which pops up on the right monitor.

I've tried fiddling with .config/doublecmd/session.ini but I had no success, viewer
is always positioned on the right monitor.

Any chance of fixing this?

Cheers!

Tested with 0.5.0 beta / 0.5.5 alpha.


Top
 Profile  
 
PostPosted: Tue Sep 13, 2011 7:17 pm 
Offline
Developer
User avatar

Joined: Wed Apr 01, 2009 9:17 pm
Posts: 761
Location: Poland
Any other behaving wrong? (internal editor, settings)
Any showing up in between monitors (center of virtual screen)?
So we can fix all at once.

Btw, I think changing session.ini should work, but maybe you need to insert negative values for Left, Top.

And simply putting viewer on left monitor doesn't do it? It should remember its previous position.


Top
 Profile  
 
PostPosted: Tue Sep 13, 2011 7:43 pm 
Offline

Joined: Tue Sep 13, 2011 6:29 pm
Posts: 7
I've replaced the internal editor with SciTE :) The internal editor is also positioned on the right monitor.

The settings dialog is presented on the same monitor where Double Commander window is present.

Something is done differently to internal viewer, editor and copy dialogs. The other dialogs in the application
are showing up nicely...


Top
 Profile  
 
PostPosted: Tue Sep 13, 2011 7:53 pm 
Offline

Joined: Tue Sep 13, 2011 6:29 pm
Posts: 7
In case it helps here is my session ini

Code:
[TfrmOptions(1600x900)]
TfrmOptions_Height=616
TfrmOptions_Width=995
TfrmOptions_WindowState=wsNormal
TfrmOptions_Left=302
TfrmOptions_Top=142

[TfrmEditor(1600x900)]
TfrmEditor_Height=677
TfrmEditor_Width=950
TfrmEditor_WindowState=wsNormal
TfrmEditor_Left=1680
TfrmEditor_Top=42

[TfrmViewer(1600x900)]
TfrmViewer_Height=783
TfrmViewer_Width=1162
TfrmViewer_Left=1680
TfrmViewer_Top=45
TfrmViewer_WindowState=wsNormal

[TfrmMain(1600x900)]
nbConsole_Height=54
seLogWindow_Height=51

[TfrmFileAssoc(1600x900)]
TfrmFileAssoc_Height=585
TfrmFileAssoc_Width=568
TfrmFileAssoc_WindowState=wsNormal
TfrmFileAssoc_Left=516
TfrmFileAssoc_Top=157

[TfrmFindDlg(1600x900)]
TfrmFindDlg_Height=427
TfrmFindDlg_Left=466
TfrmFindDlg_Top=236
TfrmFindDlg_Width=667
TfrmFindDlg_WindowState=wsNormal

[TfColumnsSetConf(1600x900)]
TfColumnsSetConf_Height=583
TfColumnsSetConf_Width=900
TfColumnsSetConf_WindowState=wsNormal
TfColumnsSetConf_Left=350
TfColumnsSetConf_Top=158


Top
 Profile  
 
PostPosted: Tue Sep 13, 2011 8:33 pm 
Offline
Developer
User avatar

Joined: Wed Apr 01, 2009 9:17 pm
Posts: 761
Location: Poland
Viewer and editor I think I know why, but copy dialog has the same settings as for example About window or make directory. Is it the dialog that shows on F5?


Top
 Profile  
 
PostPosted: Tue Sep 13, 2011 8:40 pm 
Offline

Joined: Tue Sep 13, 2011 6:29 pm
Posts: 7
Yes, the copy dialog presented when pressing F5 (mainly tested with 0.5.0 beta, I've deleted the 0.5.5 alpha)


Top
 Profile  
 
PostPosted: Wed Sep 14, 2011 1:09 pm 
Offline
Developer
User avatar

Joined: Wed Apr 01, 2009 9:17 pm
Posts: 761
Location: Poland
I don't know how to resolve this. It seems maybe a bug in Lazarus where the position of viewer and editor are remembered but since they are outside of primary monitor they are moved ignoring the saved position. At least that what happens when I put the viewer or editor so that the window is only partially visible. I assume similar thing happens on the whole virtual screen.

Other windows show up fine because they are always centered on the current screen but this way the Top, Left position is not restored and this is not how viewer and editor windows work. I don't know about the Copy Dialog, seems it should behave the same as others.

[Edit]
Please try 0.5.5 revision 3915 and see if there is any change to viewer, editor behavior.


Top
 Profile  
 
PostPosted: Wed Sep 14, 2011 9:27 pm 
Offline

Joined: Tue Sep 13, 2011 6:29 pm
Posts: 7
Tested doublecmd.0.5.5.r3916.gtk2.x86_64.tar.bz2 and viewer and editor are still positioned on the right monitor :(


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 2:01 am 
Offline
Developer
User avatar

Joined: Wed Apr 01, 2009 9:17 pm
Posts: 761
Location: Poland
Please start DC, open viewer put it on the left monitor and close, open editor put it on the right monitor and close, then close DC. And paste the session.ini file.
I think it is either saving or restoring the coordinates (or both) that does not support multi-monitor setup.


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 7:28 pm 
Offline

Joined: Tue Sep 13, 2011 6:29 pm
Posts: 7
I had to reinstall my Linux and now the first monitor detected is the left monitor, which fixes my problem.

I've tested now with DC moved on the right monitor :)

Test case:
1. Open DC, move to right monitor
2. Open viewer, move to right monitor, close viewer
3. Open editor, leave it on the left monitor, close editor.

I've maximized both viewer and editor. The maximize property is persisted correctly.

Here is the settings file:
Code:
[TfrmOptions(1600x900)]
TfrmOptions_Height=616
TfrmOptions_Width=995
TfrmOptions_WindowState=wsNormal
TfrmOptions_Left=1902
TfrmOptions_Top=142

[TfrmEditor(1600x900)]
TfrmEditor_Height=851
TfrmEditor_Width=1600
TfrmEditor_WindowState=wsMaximized
TfrmEditor_Left=0
TfrmEditor_Top=0

[TfrmViewer(1600x900)]
TfrmViewer_Height=851
TfrmViewer_Width=1600
TfrmViewer_Left=1600
TfrmViewer_Top=0
TfrmViewer_WindowState=wsMaximized

[TfrmMain(1600x900)]
nbConsole_Height=54
seLogWindow_Height=51

[TfrmFileAssoc(1600x900)]
TfrmFileAssoc_Height=585
TfrmFileAssoc_Width=568
TfrmFileAssoc_WindowState=wsNormal
TfrmFileAssoc_Left=516
TfrmFileAssoc_Top=157

[TfrmFindDlg(1600x900)]
TfrmFindDlg_Height=427
TfrmFindDlg_Left=466
TfrmFindDlg_Top=236
TfrmFindDlg_Width=667
TfrmFindDlg_WindowState=wsNormal

[TfColumnsSetConf(1600x900)]
TfColumnsSetConf_Height=583
TfColumnsSetConf_Width=900
TfColumnsSetConf_WindowState=wsNormal
TfColumnsSetConf_Left=350
TfColumnsSetConf_Top=158


From the settings file you can see that the viewer is on the right monitor, which means
there is a bug at the restoring part.

Cheers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC + 3 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Get Double Commander at SourceForge.net. Fast, secure and Free Open Source software downloads