Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

191
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda