Summary: | large unusable area in window menu | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | 20120808_bugs.kde.org |
Component: | widget-taskbar | Assignee: | Alexis MENARD <darktears31> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | aseigo |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
as described in method a, right mouse click on the title bar
as described in method a, clicking the menu button as described in method b, window menu through taskbar as described in method b, moving mouse pointer to access the submenu |
Description
20120808_bugs.kde.org
2009-07-04 18:36:25 UTC
Created attachment 35041 [details]
as described in method a, right mouse click on the title bar
Created attachment 35042 [details]
as described in method a, clicking the menu button
Created attachment 35043 [details]
as described in method b, window menu through taskbar
Created attachment 35044 [details]
as described in method b, moving mouse pointer to access the submenu
my settings desktop effects: disabled desktop theme: air appearance widget style: oxygen window decoration: plastik in method b) the 'window menu' appears to be drawn to be the same size as its entry in the taskbar. opening more programs, more windows, results in each entry becoming narrower on the taskbar. eventually the 'window menu' is larger than the entry in the taskbar, sticking to its apparent min width value. in this case the arrows indicating submenus are flush with the right-hand side of the window this is evidently a bug in Qt. the following patch fixes it: ===== diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp index 9fbbb04..5d62ea6 100644 --- a/src/gui/widgets/qmenu.cpp +++ b/src/gui/widgets/qmenu.cpp @@ -280,7 +280,7 @@ void QMenuPrivate::calcActionRects(QMap<QAction*, QRect> &actionRects, QList<QAc if (!sz.isEmpty()) { - max_column_width = qMax(max_column_width, sz.width()); + max_column_width = qMax(q->minimumWidth(), qMax(max_column_width, sz.width())); //wrapping if (!scroll && y+sz.height()+vmargin > dh - (q->style()->pixelMetric(QStyle::PM_MenuDesktopFrameWidth, 0, q) * 2)) { ====== Alexis: could you look into getting this into upstream? "method b" was not the case in kde 4.2.2 there the window menu is large (allows for "do not allow this program to be grouped") but the arrows are to the far right of the area |