D17750: Port window specific rules dialog to DBus

Martin Flöser <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
graesslin created this revision.
graesslin added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
graesslin requested review of this revision.

REVISION SUMMARY
  The dialog invoked through user actions menu takes the internal uuid as
  command line argument which allows to query the required information
  from KWin instead of using X11.
  
  This allows to enable the system for Wayland windows.
  
  In order to replace the usage of ClientMachine in the rules dialog the
  dbus interface is extended by a value whether the window is on the
  localhost. This is exposed through a virtual method on toplevel which is
  overridden in ShellClient and there always returning true.

TEST PLAN
  Run a nested Wayland and opened the dialog on a wayland window

REPOSITORY
  R108 KWin

BRANCH
  window-specific-dbus

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

AFFECTED FILES
  autotests/integration/dbus_interface_test.cpp
  dbusinterface.cpp
  kcmkwin/kwinrules/CMakeLists.txt
  kcmkwin/kwinrules/kwinsrc.cpp
  kcmkwin/kwinrules/main.cpp
  kcmkwin/kwinrules/ruleslist.cpp
  kcmkwin/kwinrules/ruleswidget.cpp
  kcmkwin/kwinrules/ruleswidget.h
  rules.cpp
  shell_client.h
  toplevel.cpp
  toplevel.h
  useractions.cpp

To: graesslin, #kwin
Cc: kwin, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.