[Konsole-devel] [Bug 172042] Konsole window resizes on new tab to last resized window

Stefan Becker stefan.becker at nokia.com
Mon Oct 13 18:17:04 UTC 2008


http://bugs.kde.org/show_bug.cgi?id=172042





--- Comment #4 from Stefan Becker <stefan becker nokia com>  2008-10-13 20:17:03 ---
I digged a little into this problem. I added some debugging output to the
functions:

  TerminalDisplay::calcGeometry()        [called when TD receives a
resizeEvent]
  TabbedViewContainerV2::setActiveView() [called when a new tab gets created]

Setup: one window open, open new window, create new tab in first window:

konsole(23390): Session::Session() 
konsole(23390): TVCV2::setActiveView() BEFORE setCurrentWidget() 
konsole(23390): TD::calcGeometry() BEGIN 1 x 1 ( QRect(0,0 595x462) ) 
konsole(23390): TD::calcGeometry() END 82 x 28 
konsole(23390): TVCV2::setActiveView() BEFORE setCurrentIndex() 
konsole(23390): TVCV2::setActiveView() END 

-> OK, no resize

Test step: resize second window, create new tab in first window:

konsole(23390): Session::Session() 
konsole(23390): TVCV2::setActiveView() BEFORE setCurrentWidget() 
konsole(23390): TD::calcGeometry() BEGIN 1 x 1 ( QRect(0,0 595x462) ) 
konsole(23390): TD::calcGeometry() END 82 x 28 
konsole(23390): TVCV2::setActiveView() BEFORE setCurrentIndex() 
konsole(23390): TD::calcGeometry() BEGIN 82 x 28 ( QRect(0,0 595x654) ) 
konsole(23390): TD::calcGeometry() END 82 x 40 
konsole(23390): TVCV2::setActiveView() END 

-> first window resized to be the same size as second window

So I think it is narrowed down to the call "_tabBar->setCurrentIndex(index)"
that for some reason causes the window to resize. Not much yet, but maybe
someone has a brilliant idea what causes this...


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list