From 83948b4fdcb945232234db73df19f746f6e76724 Mon Sep 17 00:00:00 2001 From: slevy <slevy> Date: Thu, 23 May 2002 23:22:58 +0000 Subject: [PATCH] Set subwindow size when detaching. Properly compute window ypos from X geometry spec. --- src/partiviewc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/partiviewc.cc b/src/partiviewc.cc index e3d40cd..ec39c31 100644 --- a/src/partiviewc.cc +++ b/src/partiviewc.cc @@ -316,10 +316,12 @@ char *parti_detachview( char *how ) { w = make_view_window(); if(ppui.view && ppui.view->w() * ppui.view->h() > 0) { ppui.freemain->fullscreen_off(50, 50, ppui.view->w(), ppui.view->h()); + w->size( ppui.view->w(), ppui.view->h() ); } else { ppui.freemain->fullscreen_off(50, 50, 512, 512); } ppui.freemain->show(); + if(w->window() && w->window()->visible()) w->show(); break; default: @@ -394,7 +396,7 @@ char *parti_winsize( CONST char *newsize ) { ny = nx * oy / ox; if(posp && 4 == sscanf(posp, "%1[-+]%d%1[-+]%d", cx, &posx, cy, &posy)) { if(cx[0] == '-') posx = Fl::w() - nx - posx; - if(cy[0] == '-') posy = Fl::w() - ny - posy; + if(cy[0] == '-') posy = Fl::h() - ny - posy; has_pos = 1; } if(ox < 0) { /* Not yet available -- remember for later */ -- GitLab