D17097: [scripting] Emit clientAdded for Wayland clients

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
zzag created this revision.
zzag added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
zzag requested review of this revision.

REVISION SUMMARY
  Currently, if a script relies on clientAdded to setup some required
  connections, then it probably won't work with Wayland clients because
  clientAdded is emitted only for X11 clients.

TEST PLAN
  - Installed sticky window snapping script, it works;
  - Installed a couple of tiling scripts, with minor editions, they work.

REPOSITORY
  R108 KWin

BRANCH
  scripting-wayland

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

AFFECTED FILES
  scripting/workspace_wrapper.cpp
  scripting/workspace_wrapper.h
  scripts/enforcedeco/contents/code/main.js

To: zzag, #kwin
Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, 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.