KWin
|
Convenient Class which represents a wl_client. More...
#include <clientconnection.h>
Signals | |
void | aboutToBeDestroyed () |
void | disconnected (KWin::ClientConnection *) |
void | scaleOverrideChanged () |
Public Member Functions | |
virtual | ~ClientConnection () |
void | flush () |
wl_resource * | getResource (quint32 id) const |
wl_client * | client () const |
Display * | display () const |
pid_t | processId () const |
uid_t | userId () const |
gid_t | groupId () const |
QString | executablePath () const |
operator wl_client * () | |
operator wl_client * () const | |
void | destroy () |
void | setScaleOverride (qreal scaleOverride) |
qreal | scaleOverride () const |
void | setSecurityContextAppId (const QString &appId) |
QString | securityContextAppId () const |
Friends | |
class | Display |
Convenient Class which represents a wl_client.
The ClientConnection gets automatically created for a wl_client. In particular, the signal Display::clientConnected will be emitted.
Definition at line 31 of file clientconnection.h.
|
virtualdefault |
|
signal |
This signal is emitted when the client is about to be destroyed.
wl_client * KWin::ClientConnection::client | ( | ) | const |
Definition at line 117 of file clientconnection.cpp.
void KWin::ClientConnection::destroy | ( | ) |
Destroys this ClientConnection. This is a convenient wrapper around wl_client_destroy. The use case is in combination with ClientConnections created through Display::createClient. E.g. once the process for the ClientConnection exited, the ClientConnection needs to be destroyed, too.
Definition at line 107 of file clientconnection.cpp.
|
signal |
Signal emitted when the ClientConnection got disconnected from the server.
Display * KWin::ClientConnection::display | ( | ) | const |
Definition at line 132 of file clientconnection.cpp.
QString KWin::ClientConnection::executablePath | ( | ) | const |
The absolute path to the executable.
Please note: if the ClientConnection got created with Display::createClient the executablePath will be identical to the process running the KWin::Display.
If the executable path cannot be resolved an empty QString is returned.
Definition at line 152 of file clientconnection.cpp.
void KWin::ClientConnection::flush | ( | ) |
Flushes the connection to this client. Ensures that all events are pushed to the client.
Definition at line 102 of file clientconnection.cpp.
wl_resource * KWin::ClientConnection::getResource | ( | quint32 | id | ) | const |
Get the wl_resource associated with the given id
.
Definition at line 112 of file clientconnection.cpp.
gid_t KWin::ClientConnection::groupId | ( | ) | const |
The gid of the ClientConnection endpoint.
Please note: if the ClientConnection got created with Display::createClient the gid will be identical to the process running the KWin::Display.
Definition at line 137 of file clientconnection.cpp.
KWin::ClientConnection::operator wl_client * | ( | ) |
Cast operator the native wl_client this ClientConnection represents.
Definition at line 122 of file clientconnection.cpp.
KWin::ClientConnection::operator wl_client * | ( | ) | const |
Cast operator the native wl_client this ClientConnection represents.
Definition at line 127 of file clientconnection.cpp.
pid_t KWin::ClientConnection::processId | ( | ) | const |
The pid of the ClientConnection endpoint.
Please note: if the ClientConnection got created with Display::createClient the pid will be identical to the process running the KWin::Display.
Definition at line 142 of file clientconnection.cpp.
qreal KWin::ClientConnection::scaleOverride | ( | ) | const |
Definition at line 164 of file clientconnection.cpp.
|
signal |
QString KWin::ClientConnection::securityContextAppId | ( | ) | const |
Definition at line 174 of file clientconnection.cpp.
void KWin::ClientConnection::setScaleOverride | ( | qreal | scaleOverride | ) |
Set an additional mapping between kwin's logical co-ordinate space and the client's logical co-ordinate space.
This is used in the same way as if the client was setting the surface.buffer_scale on every surface i.e a value of 2.0 will make the windows appear smaller on a regular DPI monitor.
Only the minimal set of protocols used by xwayland have support.
Buffer sizes are unaffected.
Definition at line 157 of file clientconnection.cpp.
void KWin::ClientConnection::setSecurityContextAppId | ( | const QString & | appId | ) |
Definition at line 169 of file clientconnection.cpp.
uid_t KWin::ClientConnection::userId | ( | ) | const |
The uid of the ClientConnection endpoint.
Please note: if the ClientConnection got created with Display::createClient the uid will be identical to the process running the KWin::Display.
Definition at line 147 of file clientconnection.cpp.
|
friend |
Definition at line 143 of file clientconnection.h.