Bug 210700 - Windows are not sized considering the window Title
Summary: Windows are not sized considering the window Title
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 19:58 UTC by Christopher
Modified: 2009-10-24 03:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher 2009-10-15 19:58:14 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

I've noticed that a few windows that are displayed are sized for the contents of the windows only, without taking window title into consideration.  If the window title is longer that the contents, the title is hidden.  

A user must resize the window to read the window title completely.  I would like to suggest that when the window size is being determined, in addition to the contents of the window, the title is also taken into consideration, and sized so that the title does not get hidden.  This is so long as there is screen realestate available to display the window.

I noticed this behaviour when installing KDE as well as when using applications.  

Examples:
1. During installation some of the windows that popup exhibit this problem
2. Amarok downloaded required codecs, and when done poped up a window saying "Successfully installed.".  The window was sized only for the label "Successfully installed.".  The window title was hidden.
Comment 1 lucas 2009-10-18 03:24:04 UTC
I am against implementing this as some applications like to have extremely long and forever changing window titles such as web browsers. The moment the user views a website with a long title the entire window will resize.
Comment 2 Thomas Lübking 2009-10-18 15:13:37 UTC
a) Lucas is right.

b) exactly because of this, i'd suggest to add Bespins "trim title" option to kwin (though i'm really equal on this ;-)

c) this bug/wish cannot fix/be implemented as titlesize and titlearea have a strong dependance on the decoration
   - the deco defines the position of the buttons and the text alignment and might be/is the only one to /really/ know where the title is painted
   - the deco could paint a text "different" from ::caption() (trimmed variant)
   - the deco could entirely ignore the kwin suggested font/size
   - the deco could slightly adjust the font size in corner cases (to not have to clip 4 letters) ... what i'm about to do, thanks for the idea ;-)
   - the deco could animate the text to overcome this issue (what would be nasty, though)
Comment 3 Christoph Feck 2009-10-19 02:37:40 UTC
I agree that this is a WONTFIX from the KWin point of view. The original reporter, however, has a point, and I suggest that for the cases/applications where it makes sense separate bug reports could be filed, and decided per case.
Comment 4 Christopher 2009-10-24 03:20:09 UTC
Lucas, Thomas, Christoph, 
Thank you for your responses on this. 

Lucas is right, and I agree with Christoph that a fix on a case by case basis is probably the best thing to do.