D7323: Expose Cursor position to DeclarativeScripting

David Edmundson noreply at phabricator.kde.org
Tue Aug 15 11:28:15 UTC 2017


davidedmundson created this revision.
Restricted Application added a project: KWin.
Restricted Application added subscribers: KWin, kwin, plasma-devel.

REVISION SUMMARY
  This allows us to write scripts like mousemark, trackmouse, etc. as
  declarative scripts.
  
  It's exposed as a new object rather than just making the existing Cursor
  a context property so that we can do RAII on enabling mouse polling.

TEST PLAN
  Attached unit test
  Also used in a real world script that moves a window around the cursor position

REPOSITORY
  R108 KWin

BRANCH
  master

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

AFFECTED FILES
  CMakeLists.txt
  autotests/integration/scripting/CMakeLists.txt
  autotests/integration/scripting/cursor_test.cpp
  autotests/integration/scripting/scripts/cursortest.qml
  scripting/cursorwrapper.cpp
  scripting/cursorwrapper.h
  scripting/scripting.cpp

To: davidedmundson, #plasma
Cc: plasma-devel, kwin, #kwin, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170815/11778ff4/attachment.html>


More information about the Plasma-devel mailing list