Diffusion KWin 1d71292e13fc

Add a method to dbus interface to query information about a window

Authored by graesslin on Feb 12 2018, 8:40 PM.

Description

Add a method to dbus interface to query information about a window

Summary:
This call is added for the window rules kcm which has a detect
functionality. As that detect functionality cannot query any Wayland
windows we need to have some functionality in KWin core. Furthermore
this allows to simplify the code in the kcm as all the custom X11
interaction can be removed. KWin internally has the functionality to
find a window at a given position.

From a security perspective adding this dbus method is fine as the user
stays in control of the functionality. It requires active click to
select a window.

The new dbus call is already used in the rules kcm replacing the
X11 based detect functionality. That a detect is now able to get
information for both X11 and Wayland windows. So far only X11 windows
on X11 were supported. So this fills an important gap in the Wayland
offerings. It should now be possible to create rules for Wayland
windows (though may not be fully functional).

Test Plan: Run the kwin_rules_dialog and it detected the window correctly

Reviewers: KWin, Plasma

Subscribers: plasma-devel, kwin

Tags: Plasma

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

Details

Committed
graesslinFeb 25 2018, 1:12 PM
Differential Revision
D10490: Add a method to dbus interface to query information about a window
Parents
R108:119c64839d36: Merge branch 'Plasma/5.12'
Branches
Unknown
Tags
Unknown