Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
How to emit signal in KWin scripting API

With the KWin scripting API, I know I can connect a signal with

client.signal.connect(myFunction);

to trigger some action when the script receives a signal.

But how can I emit a signal from my KWin script for other components to pick up?

I want something like

client.emit(signal);

but couldn't find anything in the API documentation and unsuccessfully tried various possible syntaxes.

My use case is that I want to emit a clientStartUserMovedResized signal before doing a geometry change, so that another script can detect that a window is about to be changed with the window with the old geometry passed over, before the clientGeometryChanged signal is automatically emitted after the change in geometry has already happened and the old geometry is lost.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As answered on reddit https://old.reddit.com/r/kde/comments/qndb0k/how_to_emit_signal_in_kwin_scripting_api/

Pretty sure you just call it as a normal function.

  • https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#signal-handler-attributes
  • https://develop.kde.org/docs/plasma/kwin/api/#signals-3
  • client.clientStartUserMovedResized(client) (not sure why it needs a references to itself as a parameter)
  • https://invent.kde.org/plasma/kwin/-/blob/master/src/abstract_client.cpp#L970
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!