class KSelectionWatcher |
|
|
This class implements watching manager selections, as described in the ICCCM section 2.8. It emits signal newOwner() when a new owner claim the selection, and emits lostOwner() when the selection ownership is given up. To find out current owner of the selection, owner() can be used. ICCCM manager selection watching |
|
This constructor initializes the object, but doesn't perform any operation on the selection.
selection - atom representing the manager selection screen - X screen, or -1 for default parent - parent object, or 0 if there is none |
|
This constructor accepts the selection name and creates the appropriate atom for it automatically.
selection - name of the manager selection screen - X screen, or -1 for default parent - parent object, or 0 if there is none |
|
Internal |
|
This signal is emitted when the selection is given up, i.e. there's no owner. Note that the selection may be immediatelly claimed again, so the newOwner() signal may be emitted right after this one. It's safe to delete the instance in a slot connected to this signal. |
|
This signal is emitted when the selection is successfully claimed by a new owner. owner - the new owner of the selection |
|
Return the current owner of the manager selection, if any. |