Allow to set the available screen rect/region from outside through dbus

Authored by trmdi on Dec 30 2019, 4:01 PM.

Description

Allow to set the available screen rect/region from outside through dbus

Summary:
I'm trying to implement the idea of @davidedmundson from this https://phabricator.kde.org/T10172 with my limited knowledge of C++/Qt/KDE/programming. This is the start of a new class so it could lack many things but it's usable.

  • It allows clients to set the available screen rect/region from outside through dbus.
  • The final available screen rect/region would be the intersection of all set values.
  • When a client dies, its values would be removed automatically.

Test Plan:
+ qdbus-qt5 org.kde.plasmashell /StrutManager test org.kde.lattedock LVDS-1 0 24 1366 768
+ After killing latte-dock, the values are got only from plasmashellCorona.

Reviewers: Plasma, mvourlakos, davidedmundson, mart, apol

Reviewed By: Plasma, davidedmundson

Subscribers: davidre, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D25807

Details

Committed
trmdiDec 30 2019, 4:02 PM
Reviewer
Plasma
Differential Revision
D25807: Allow to set the available screen rect/region from outside through dbus
Parents
R120:5dd59771b2e2: Port to QElapsedTimer
Branches
Unknown
Tags
Unknown