KWin
|
#include <main_x11.h>
Public Member Functions | |
ApplicationX11 (int &argc, char **argv) | |
~ApplicationX11 () override | |
void | setReplace (bool replace) |
std::unique_ptr< Edge > | createScreenEdge (ScreenEdges *parent) override |
std::unique_ptr< Cursor > | createPlatformCursor () override |
std::unique_ptr< OutlineVisual > | createOutline (Outline *outline) override |
void | createEffectsHandler (Compositor *compositor, WorkspaceScene *scene) override |
void | startInteractiveWindowSelection (std::function< void(KWin::Window *)> callback, const QByteArray &cursorName=QByteArray()) override |
void | startInteractivePositionSelection (std::function< void(const QPointF &)> callback) override |
PlatformCursorImage | cursorImage () const override |
![]() | |
~Application () override | |
void | setConfigLock (bool lock) |
KSharedConfigPtr | config () const |
void | setConfig (KSharedConfigPtr config) |
KSharedConfigPtr | kxkbConfig () const |
void | setKxkbConfig (KSharedConfigPtr config) |
KSharedConfigPtr | inputConfig () const |
void | setInputConfig (KSharedConfigPtr config) |
void | start () |
OperationMode | operationMode () const |
The operation mode used by KWin. | |
void | setOperationMode (OperationMode mode) |
bool | shouldUseWaylandForCompositing () const |
void | setupCommandLine (QCommandLineParser *parser) |
void | processCommandLine (QCommandLineParser *parser) |
void | registerEventFilter (X11EventFilter *filter) |
void | unregisterEventFilter (X11EventFilter *filter) |
bool | dispatchEvent (xcb_generic_event_t *event) |
xcb_timestamp_t | x11Time () const |
void | setX11Time (xcb_timestamp_t timestamp, TimestampUpdate force=TimestampUpdate::OnlyIfLarger) |
void | updateXTime () |
void | updateX11Time (xcb_generic_event_t *event) |
void | resetCrashesCount () |
xcb_window_t | x11RootWindow () const |
xcb_window_t | x11CompositeWindow () const |
xcb_connection_t * | x11Connection () const |
void | setX11RootWindow (xcb_window_t root) |
void | setX11Connection (xcb_connection_t *c) |
void | setX11CompositeWindow (xcb_window_t window) |
qreal | xwaylandScale () const |
void | setXwaylandScale (qreal scale) |
QProcessEnvironment | processStartupEnvironment () const |
void | setProcessStartupEnvironment (const QProcessEnvironment &environment) |
OutputBackend * | outputBackend () const |
void | setOutputBackend (std::unique_ptr< OutputBackend > &&backend) |
Session * | session () const |
void | setSession (std::unique_ptr< Session > &&session) |
void | setFollowLocale1 (bool follow) |
bool | followLocale1 () const |
bool | isTerminating () const |
void | installNativeX11EventFilter () |
void | removeNativeX11EventFilter () |
void | createAtoms () |
void | destroyAtoms () |
PluginManager * | pluginManager () const |
InputMethod * | inputMethod () const |
ColorManager * | colorManager () const |
virtual XwaylandInterface * | xwayland () const |
TabletModeManager * | tabletModeManager () const |
Protected Member Functions | |
void | performStartup () override |
![]() | |
Application (OperationMode mode, int &argc, char **argv) | |
void | notifyKSplash () |
void | notifyStarted () |
void | createInput () |
void | createWorkspace () |
void | createOptions () |
void | createPlugins () |
void | createColorManager () |
void | createInputMethod () |
void | createTabletModeManager () |
void | destroyInput () |
void | destroyWorkspace () |
void | destroyCompositor () |
void | destroyPlugins () |
void | destroyColorManager () |
void | destroyInputMethod () |
void | destroyPlatform () |
void | applyXwaylandScale () |
void | setTerminating () |
Additional Inherited Members | |
![]() | |
enum | OperationMode { OperationModeX11 , OperationModeWaylandOnly , OperationModeXwayland } |
This enum provides the various operation modes of KWin depending on the available Windowing Systems at startup. For example whether KWin only talks to X11 or also to a Wayland Compositor. More... | |
enum class | TimestampUpdate { OnlyIfLarger , Always } |
![]() | |
void | x11ConnectionChanged () |
void | x11ConnectionAboutToBeDestroyed () |
void | xwaylandScaleChanged () |
void | workspaceCreated () |
void | virtualTerminalCreated () |
void | started () |
![]() | |
static void | setCrashCount (int count) |
static bool | wasCrash () |
static void | createAboutData () |
static void | setupMalloc () |
static void | setupLocalizedString () |
![]() | |
static int | crashes = 0 |
![]() | |
quint32 | x11Time |
quint32 | x11RootWindow |
void * | x11Connection |
KSharedConfigPtr | config |
KSharedConfigPtr | kxkbConfig |
Definition at line 17 of file main_x11.h.
KWin::ApplicationX11::ApplicationX11 | ( | int & | argc, |
char ** | argv ) |
Definition at line 173 of file main_x11.cpp.
|
override |
Definition at line 182 of file main_x11.cpp.
|
overridevirtual |
Reimplemented from KWin::Application.
Definition at line 223 of file main_x11.cpp.
|
overridevirtual |
Reimplemented from KWin::Application.
Definition at line 214 of file main_x11.cpp.
|
overridevirtual |
Reimplemented from KWin::Application.
Definition at line 209 of file main_x11.cpp.
|
overridevirtual |
Reimplemented from KWin::Application.
Definition at line 204 of file main_x11.cpp.
|
overridevirtual |
Returns a PlatformCursorImage. By default this is created by softwareCursor and softwareCursorHotspot. An implementing subclass can use this to provide a better suited PlatformCursorImage.
Reimplemented from KWin::Application.
Definition at line 238 of file main_x11.cpp.
|
overrideprotectedvirtual |
Implements KWin::Application.
Definition at line 260 of file main_x11.cpp.
void KWin::ApplicationX11::setReplace | ( | bool | replace | ) |
Definition at line 199 of file main_x11.cpp.
|
overridevirtual |
Starts an interactive position selection process.
Once the user selected a position on the screen the callback
is invoked with the selected point as argument. In case the user cancels the interactive position selection or selecting a position is currently not possible (e.g. screen locked) the callback
is invoked with a point at -1
as x and y argument.
During the interactive window selection the cursor is turned into a crosshair cursor.
The default implementation forwards to InputRedirection.
callback | The function to invoke once the interactive position selection ends |
Reimplemented from KWin::Application.
Definition at line 233 of file main_x11.cpp.
|
overridevirtual |
Starts an interactive window selection process.
Once the user selected a window the callback
is invoked with the selected Window as argument. In case the user cancels the interactive window selection or selecting a window is currently not possible (e.g. screen locked) the callback
is invoked with a nullptr
argument.
During the interactive window selection the cursor is turned into a crosshair cursor unless cursorName
is provided. The argument cursorName
is a QByteArray instead of Qt::CursorShape to support the "pirate" cursor for kill window which is not wrapped by Qt::CursorShape.
The default implementation forwards to InputRedirection.
callback | The function to invoke once the interactive window selection ends |
cursorName | The optional name of the cursor shape to use, default is crosshair |
Reimplemented from KWin::Application.
Definition at line 228 of file main_x11.cpp.