Review Request 121010: Keep track of notifications that were covered by a fullscreen window
Kai Uwe Broulik
kde at privat.broulik.de
Sun Jan 14 16:57:38 UTC 2018
> On Nov. 6, 2014, 12:12 nachm., Martin Flöser wrote:
> > applets/notifications/plugin/notificationshelper.cpp
> > Lines 169-173 (patched)
> > <https://git.reviewboard.kde.org/r/121010/diff/1/?file=326319#file326319line169>
> >
> > note: this code causes roundtrips to the X server. At the same time it's information already known to the plasmashell process: tasks dataengine.
> >
> > It might be worth to have a look at it, whether this could be used instead.
>
> Kai Uwe Broulik wrote:
> Thanks for the suggestion! I already wondered this call might be heavy.
>
> So, connecting to the tasks dataengine, iterating over all tasks and checking whether active and fullScreen is true should work.
>
> Eike Hein wrote:
> Only when the tasks dataengine is being used though - keep in mind the Task Manager applet doesn't use it. A standard user session doesn't have the data engine loaded. It might still be the right thing to avoid redundancy, but not sure what the best common case tradeoff is.
>
> Martin Flöser wrote:
> thanks Eike, that's a good point. Is there something which could be shared from libtaskmanager?
With new libtaskmanager and its clean QML imports we could finally do this. Pager is using it just fine, so we might as well do the same in notifications. Bonus points: will work on Wayland.
- Kai Uwe
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121010/#review69935
-----------------------------------------------------------
On Feb. 8, 2017, 11:35 vorm., Kai Uwe Broulik wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121010/
> -----------------------------------------------------------
>
> (Updated Feb. 8, 2017, 11:35 vorm.)
>
>
> Review request for Plasma, KDE Usability and Martin Flöser.
>
>
> Repository: plasma-workspace
>
>
> Description
> -------
>
> This patch improves fullscreen handling in notifications.
>
> The type of the NotificationPopup is changed to Dialog.Notification because that's what it's for, I think there's been a bit of a miscommunication about that (I think there needs to be another layer for the OSD because that one should be above all..).
> The Notification type keeps the window above (sorta fixing Bug 338946 because the close button now works as expected now) everything but not a fullscreen window if it's active. This patch checks when a notification arrives whether the active window is fullscreen (concealing the notification) and adds it to the history. To indicate that you missed notifications while you were fullscreen, the icon glows blue (until you interact with a notification or open the plasmoid).
>
>
> Diffs
> -----
>
> applets/notifications/package/contents/ui/NotificationIcon.qml 1449c19
> applets/notifications/package/contents/ui/NotificationPopup.qml 212f1e6
> applets/notifications/package/contents/ui/Notifications.qml acdccdd
> applets/notifications/package/contents/ui/main.qml 3c2fa13
> applets/notifications/plugin/notificationshelper.h af8f6fa
> applets/notifications/plugin/notificationshelper.cpp 425f0d6
>
>
> Diff: https://git.reviewboard.kde.org/r/121010/diff/1/
>
>
> Testing
> -------
>
> Fullscreened my IDE, "sleep 2; knotificationdbustest", waited, unfullscreened, icon was blue and the history a few notifications in it.
>
>
> File Attachments
> ----------------
>
> Pending notification in tray
> https://git.reviewboard.kde.org/media/uploaded/files/2014/11/06/3f2141b2-1452-4e5c-8b00-782c571ad34b__notificationpendingthing.png
>
>
> Thanks,
>
> Kai Uwe Broulik
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180114/e489a2c8/attachment-0001.html>
More information about the Plasma-devel
mailing list