[Differential] [Request, 401 lines] D2379: Factor windowing system arbitration out of TasksModel.

hein (Eike Hein) noreply at phabricator.kde.org
Tue Aug 9 10:10:26 UTC 2016


hein created this revision.
hein added reviewers: Plasma, mart, davidedmundson.
hein added a subscriber: plasma-devel.
Restricted Application added a project: Plasma.

REVISION SUMMARY
  This introduces a new WindowTasksModel which is a QIdentityProxyModel
  around an instance of either WaylandTasksModel or XWindowsTasksModel.
  
  This arbitration was previously done directly in TasksModel, along with
  refcounting to share a single window tasks sub-model between TasksModel
  instances. Factoring out both of these things has two goals:
  
  - It allows users of libtaskmanager which are solely interested in window data (e.g. the Pager) to skip the unnecessary complexity of TasksModel, while still sharing the windowing monitoring with users of TasksModel.
  - TasksModel becomes fully free of windowing system-specific code and calls to KWindowSystem (to query the platform), making its code a little cleaner.
  
  The downside is another layer of indirection (the QIdentityProxyModel),
  but the upside is clear: The Pager wants to share window data and
  window monitoring with the Task Manager, but is not interested in
  startup notifications, does its own sorting (using the window stacking
  order), does not need grouping and has different filtering needs.
  
  The Pager backend will use QSortFilterProxyModel around WindowTasksModel
  to mix in its own data and sort by stacking order.

REPOSITORY
  rPLASMAWORKSPACE Plasma Workspace

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D2379

AFFECTED FILES
  libtaskmanager/CMakeLists.txt
  libtaskmanager/tasksmodel.cpp
  libtaskmanager/windowtasksmodel.cpp
  libtaskmanager/windowtasksmodel.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: hein, #plasma, mart, davidedmundson
Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160809/4ad63f28/attachment.html>


More information about the Plasma-devel mailing list