Bug 230674 - Have shortened window titles for menus and pot. titlebars/tabs
Summary: Have shortened window titles for menus and pot. titlebars/tabs
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: kdecorations (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 257044 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-14 11:14 UTC by Thomas Schwarzgruber
Modified: 2013-01-30 16:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schwarzgruber 2010-03-14 11:14:28 UTC
Version:            (using KDE 4.4.1)
Installed from:    openSUSE RPMs

I do have some windows open with a long title in the title-bar.
For instance okular, which shows the name of the document in the title-bar. When this name
is very long, the string in title-bar will be long.

Now when I open the right-click menu of a titlebar of a window, and I do this closely to the right screen edge, this problem occurs:

 -- The space between the right border of the sub menu and the right screen edge is 
    not big enough to fit the long window titles.
 -- Therefore if I choose "Move window to group" submenu, the shown list of window titles
    overlaps the right click menu.
 -- This only happens the first time in the lifetime of the right click menu. If I move
    my mouse to another menu entry and then back to "Move window to group", the appearing
    list will be now aligned to the left border of the right-click menu where is enough 
    space to allow the list not to overlap over right-click menu.
 
Note that this problem of the content of a submenu overlapping the right-click menu only 
happens with the "Move window to group" submenu -- all other submenus align their 
content to the left border if there is not enough space btw. the right border of right-click menu and the right screen edge.

The problem with this bug is a usability one: Because if I don't want to select "Move window to group" but a entry below in the right-click menu, it can happen that I first point my mouse a little bit to far above and the "Move window to group" submenu occurs and hides the entries below. Therefore one has to move mouse pointer upwards to get rid of this menu and then try again to hit the wished for entry. 
It's not that big of a deal, but sometimes rather annoying.

If my explanation is not clear, or easily reproduceable, I could also provide screenshots.
Comment 1 Martin Flöser 2010-03-14 11:24:59 UTC
I see the behaviour for other submenus of the context menu as well. I think this is a Qt issue as the positioning of the context menu is done in Qt AFAIK.
Comment 2 Thomas Schwarzgruber 2010-03-14 11:42:33 UTC
Hmm, thats interesting I see this behaviour only with the "Move window to group" submenu. 

I do have qt-4.6.2 packages installed from KDE:KDE4:Factory:Desktop
Comment 3 Martin Flöser 2011-06-04 09:24:51 UTC
*** Bug 257044 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Lübking 2012-02-02 16:25:00 UTC
We'll need a string shortening strategy for captions, most simply by eliding text.

Re-assigning component since it's not really a tabbing issue.
For now i'll just elide the entries in that popup
Comment 5 Thomas Lübking 2012-03-18 16:01:55 UTC
must do patch from bespin client heuristics to upstream ...
Comment 6 Martin Flöser 2013-01-30 16:48:46 UTC
hidden feature available in 4.10
Comment 7 Thomas Lübking 2013-01-30 16:57:08 UTC
Does not apply to (tab) menus (yet)

To activate:
kwriteconfig --file kwinrc --group Windows --key CondensedTitle true
qdbus org.kde.kwin /KWin reconfigure