diff --git a/xvaga/xvaga.cpp b/xvaga/xvaga.cpp index 14a82934c..8b4fe61b4 100755 --- a/xvaga/xvaga.cpp +++ b/xvaga/xvaga.cpp @@ -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);