Summary: | Tooltip position is wrong whenever there isn't any gui element on screen | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | Ömer Fadıl USTA <omerusta> |
Component: | widget-systemtray | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | adaptee, annma, benoitd38, cjacker, gchm2, greta_watson, modellbaukeller, obuolis1, plasma-bugs, rdieter, t.jp, thoor1 |
Priority: | NOR | Keywords: | regression |
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
bug Screenshot ( bug can be seen )
bug Screenshot ( bug can NOT be seen ) A short screencast showing the problem |
Description
Ömer Fadıl USTA
2013-04-03 14:50:31 UTC
If needed i can take screenshots /video or other needed informations about this bug. Confirming, I can reproduce. Created attachment 78612 [details]
bug Screenshot ( bug can be seen )
If there isn't any gui element on screen ( all applications are minimized )
you can see bug. ( Check the position of tooltip )
Created attachment 78613 [details]
bug Screenshot ( bug can NOT be seen )
If there IS a gui element on the screen ( for example konsole application is not
minimized ) there isn't any bug ( Check the position of tooltip )
The bug is still exist with today's master branch build (07/05/13) Created attachment 78999 [details]
A short screencast showing the problem
Notice in the screencast how the tooltip positions are right for some widgets while wrong for others.
And the problem happens only when all windows are minimized.
*** Bug 314708 has been marked as a duplicate of this bug. *** *** Bug 313578 has been marked as a duplicate of this bug. *** Bug still occurs in Fedora 19. I have narrowed it down to the modification in system settings of an icon size: system settings --> application appearance --> icons --> advanced --> dialogs --> increase size from 32 to 48. Then, after you log out and in again, the bug shows up. If the dialogs size is set back to 32, the bug goes away. confirm on my kubuntu 13.04 with kde 10.4.5 is also present in kubuntu 13.04 with kde 4.11.0(In reply to comment #10) > confirm on my kubuntu 13.04 with kde 4.10.5 (In reply to comment #10) > confirm on my kubuntu 13.04 with kde 4.10.5 in : systemsettings/application apearance/icons/advanced/panell icon ; press the default value button the bug disappears (sorry for my english) *** Bug 314702 has been marked as a duplicate of this bug. *** *** Bug 314702 has been marked as a duplicate of this bug. *** *** Bug 327425 has been marked as a duplicate of this bug. *** The problem is in QGraphicsView *viewFor(const QGraphicsItem *item) of plasma.cpp and affect "popupPosition" in corona.cpp. ===========viewFor in plasma.cpp=================== QGraphicsView *viewFor(const QGraphicsItem *item) { if (!item || !item->scene()) { return 0; } QGraphicsView *found = 0; foreach (QGraphicsView *view, item->scene()->views()) { if (view->sceneRect().intersects(item->sceneBoundingRect()) || view->sceneRect().contains(item->scenePos())) { if (!found || view->isActiveWindow()) { found = view; } } } return found; } ===============corona.cpp======================== QRect screenRect = screenGeometry(screen); switch (loc) { case BottomEdge: //here, v is fetched via 'viewFor' pos.setY(v->geometry().y() - s.height()); break; case TopEdge: ================================================ forearch function try to find which view 'contains' the item, if there is no window opened, It seems at last the "default whole desktop view" will returned. I am very confused what the extract meaning of this if condition. And finally I tried below fix(find first one and break), it seems works, but need more investigation. --- /home/huangjz/rpmbuild/SOURCES/kdelibs-4.12.0/plasma/plasma.cpp 2013-12-13 04:33:53.000000000 +0800 +++ ../../plasma/plasma.cpp 2013-12-21 02:12:43.080504590 +0800 @@ -100,10 +100,9 @@ foreach (QGraphicsView *view, item->scene()->views()) { if (view->sceneRect().intersects(item->sceneBoundingRect()) || view->sceneRect().contains(item->scenePos())) { - if (!found || view->isActiveWindow()) { found = view; + break; } - } } return found; On openSUSE 13.1 with KDE 4.11.5 i had changed the height of the panel to 22 instead of the default height of 36. When i change it back to 36 again the tooltip position at the correct position. Change it again to 22 and the position remains at the correct position until i reboot. Then the position is off again. When i keep the panel height at 36 the position of the tooltips remains at the correct position even after a reboot. Hello! This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug has already been resolved in Plasma 5. Accordingly, we hope you understand why we must close this bug report. If the issue described here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging Thanks for your understanding! Nate Graham |