Patch : 2.1 nopatch (linux)
Files : Bug 0000100 Il calcolo delle dimensione della finestra Principale e' errato git-svn-id: svn://10.65.10.50/trunk@12043 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0223c75a39
commit
faa7b46970
@ -1284,8 +1284,20 @@ void xvt_app_create(int argc, char **argv, unsigned long flags,
|
||||
|
||||
const wxString title = config->taskwin_title;
|
||||
|
||||
#ifdef WIN32
|
||||
wxPoint pos = wxDefaultPosition;
|
||||
wxSize size = wxDefaultSize;
|
||||
#else
|
||||
wxRect rect = wxGetClientDisplayRect();
|
||||
wxPoint pos;
|
||||
wxSize size ;
|
||||
|
||||
pos.x = rect.x;
|
||||
pos.y = rect.y;
|
||||
size.x = rect.width;
|
||||
size.y = rect.height;
|
||||
#endif
|
||||
|
||||
long style = wxDEFAULT_FRAME_STYLE;
|
||||
|
||||
if (_startup_rect.right > _startup_rect.left)
|
||||
@ -1295,8 +1307,13 @@ void xvt_app_create(int argc, char **argv, unsigned long flags,
|
||||
size.x = _startup_rect.right - _startup_rect.left;
|
||||
size.y = _startup_rect.bottom - _startup_rect.top;
|
||||
}
|
||||
#ifdef WIN32
|
||||
else
|
||||
style |= wxMAXIMIZE;
|
||||
#else
|
||||
else
|
||||
style &= ~wxMAXIMIZE;
|
||||
#endif
|
||||
|
||||
_task_win = new TTaskWin(NULL, ICON_RSRC, title, pos, size, style);
|
||||
_nice_windows.Put((WINDOW)_task_win, _task_win);
|
||||
|
Loading…
x
Reference in New Issue
Block a user