#include <main.h>
Definition at line 68 of file main.h.
◆ OperationMode
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.
Enumerator |
---|
OperationModeX11 | KWin uses only X11 for managing windows and compositing.
|
OperationModeWaylandOnly | KWin uses only Wayland.
|
OperationModeXwayland | KWin uses Wayland and controls a nested Xwayland server.
|
Definition at line 83 of file main.h.
◆ TimestampUpdate
Enumerator |
---|
OnlyIfLarger | |
Always | |
Definition at line 150 of file main.h.
◆ ~Application()
KWin::Application::~Application |
( |
| ) |
|
|
override |
◆ Application()
◆ applyXwaylandScale()
void KWin::Application::applyXwaylandScale |
( |
| ) |
|
|
protected |
◆ colorManager()
◆ config()
KSharedConfigPtr KWin::Application::config |
( |
| ) |
const |
|
inline |
◆ createAboutData()
void KWin::Application::createAboutData |
( |
| ) |
|
|
static |
Creates the KAboutData object for the KWin instance and registers it as KAboutData::setApplicationData.
Definition at line 177 of file main.cpp.
◆ createAtoms()
void KWin::Application::createAtoms |
( |
| ) |
|
◆ createColorManager()
void KWin::Application::createColorManager |
( |
| ) |
|
|
protected |
◆ createEffectsHandler()
◆ createInput()
void KWin::Application::createInput |
( |
| ) |
|
|
protected |
◆ createInputMethod()
void KWin::Application::createInputMethod |
( |
| ) |
|
|
protected |
◆ createOptions()
void KWin::Application::createOptions |
( |
| ) |
|
|
protected |
◆ createOutline()
◆ createPlatformCursor()
std::unique_ptr< Cursor > KWin::Application::createPlatformCursor |
( |
| ) |
|
|
virtual |
◆ createPlugins()
void KWin::Application::createPlugins |
( |
| ) |
|
|
protected |
◆ createScreenEdge()
std::unique_ptr< Edge > KWin::Application::createScreenEdge |
( |
ScreenEdges * | parent | ) |
|
|
virtual |
◆ createTabletModeManager()
void KWin::Application::createTabletModeManager |
( |
| ) |
|
|
protected |
◆ createWorkspace()
void KWin::Application::createWorkspace |
( |
| ) |
|
|
protected |
◆ cursorImage()
◆ destroyAtoms()
void KWin::Application::destroyAtoms |
( |
| ) |
|
◆ destroyColorManager()
void KWin::Application::destroyColorManager |
( |
| ) |
|
|
protected |
◆ destroyCompositor()
void KWin::Application::destroyCompositor |
( |
| ) |
|
|
protected |
◆ destroyInput()
void KWin::Application::destroyInput |
( |
| ) |
|
|
protected |
◆ destroyInputMethod()
void KWin::Application::destroyInputMethod |
( |
| ) |
|
|
protected |
◆ destroyPlatform()
void KWin::Application::destroyPlatform |
( |
| ) |
|
|
protected |
◆ destroyPlugins()
void KWin::Application::destroyPlugins |
( |
| ) |
|
|
protected |
◆ destroyWorkspace()
void KWin::Application::destroyWorkspace |
( |
| ) |
|
|
protected |
◆ dispatchEvent()
bool KWin::Application::dispatchEvent |
( |
xcb_generic_event_t * | event | ) |
|
◆ followLocale1()
bool KWin::Application::followLocale1 |
( |
| ) |
const |
|
inline |
◆ inputConfig()
KSharedConfigPtr KWin::Application::inputConfig |
( |
| ) |
const |
|
inline |
◆ inputMethod()
◆ installNativeX11EventFilter()
void KWin::Application::installNativeX11EventFilter |
( |
| ) |
|
◆ isTerminating()
bool KWin::Application::isTerminating |
( |
| ) |
const |
|
inline |
◆ kxkbConfig()
KSharedConfigPtr KWin::Application::kxkbConfig |
( |
| ) |
const |
|
inline |
◆ notifyKSplash()
void KWin::Application::notifyKSplash |
( |
| ) |
|
|
protected |
◆ notifyStarted()
void KWin::Application::notifyStarted |
( |
| ) |
|
|
protected |
◆ operationMode()
The operation mode used by KWin.
- Returns
- OperationMode
Definition at line 97 of file main.cpp.
◆ outputBackend()
◆ performStartup()
virtual void KWin::Application::performStartup |
( |
| ) |
|
|
protectedpure virtual |
◆ pluginManager()
◆ processCommandLine()
void KWin::Application::processCommandLine |
( |
QCommandLineParser * | parser | ) |
|
◆ processStartupEnvironment()
QProcessEnvironment KWin::Application::processStartupEnvironment |
( |
| ) |
const |
◆ registerEventFilter()
void KWin::Application::registerEventFilter |
( |
X11EventFilter * | filter | ) |
|
◆ removeNativeX11EventFilter()
void KWin::Application::removeNativeX11EventFilter |
( |
| ) |
|
◆ resetCrashesCount()
void KWin::Application::resetCrashesCount |
( |
| ) |
|
◆ session()
Session * KWin::Application::session |
( |
| ) |
const |
|
inline |
◆ setConfig()
void KWin::Application::setConfig |
( |
KSharedConfigPtr | config | ) |
|
|
inline |
◆ setConfigLock()
void KWin::Application::setConfigLock |
( |
bool | lock | ) |
|
◆ setCrashCount()
void KWin::Application::setCrashCount |
( |
int | count | ) |
|
|
static |
◆ setFollowLocale1()
void KWin::Application::setFollowLocale1 |
( |
bool | follow | ) |
|
|
inline |
◆ setInputConfig()
void KWin::Application::setInputConfig |
( |
KSharedConfigPtr | config | ) |
|
|
inline |
◆ setKxkbConfig()
void KWin::Application::setKxkbConfig |
( |
KSharedConfigPtr | config | ) |
|
|
inline |
◆ setOperationMode()
◆ setOutputBackend()
void KWin::Application::setOutputBackend |
( |
std::unique_ptr< OutputBackend > && | backend | ) |
|
◆ setProcessStartupEnvironment()
void KWin::Application::setProcessStartupEnvironment |
( |
const QProcessEnvironment & | environment | ) |
|
◆ setSession()
void KWin::Application::setSession |
( |
std::unique_ptr< Session > && | session | ) |
|
◆ setTerminating()
void KWin::Application::setTerminating |
( |
| ) |
|
|
inlineprotected |
◆ setupCommandLine()
void KWin::Application::setupCommandLine |
( |
QCommandLineParser * | parser | ) |
|
◆ setupLocalizedString()
void KWin::Application::setupLocalizedString |
( |
| ) |
|
|
static |
◆ setupMalloc()
void KWin::Application::setupMalloc |
( |
| ) |
|
|
static |
◆ setX11CompositeWindow()
void KWin::Application::setX11CompositeWindow |
( |
xcb_window_t | window | ) |
|
|
inline |
◆ setX11Connection()
void KWin::Application::setX11Connection |
( |
xcb_connection_t * | c | ) |
|
|
inline |
Inheriting classes should use this method to set the xcb connection before accessing any X11 specific code pathes.
Definition at line 212 of file main.h.
◆ setX11RootWindow()
void KWin::Application::setX11RootWindow |
( |
xcb_window_t | root | ) |
|
|
inline |
Inheriting classes should use this method to set the X11 root window before accessing any X11 specific code pathes.
Definition at line 204 of file main.h.
◆ setX11Time()
◆ setXwaylandScale()
void KWin::Application::setXwaylandScale |
( |
qreal | scale | ) |
|
◆ shouldUseWaylandForCompositing()
bool KWin::Application::shouldUseWaylandForCompositing |
( |
| ) |
const |
◆ start()
void KWin::Application::start |
( |
| ) |
|
◆ started
void KWin::Application::started |
( |
| ) |
|
|
signal |
◆ startInteractivePositionSelection()
void KWin::Application::startInteractivePositionSelection |
( |
std::function< void(const QPointF &)> | callback | ) |
|
|
virtual |
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.
- Parameters
-
callback | The function to invoke once the interactive position selection ends |
Reimplemented in KWin::ApplicationX11.
Definition at line 759 of file main.cpp.
◆ startInteractiveWindowSelection()
void KWin::Application::startInteractiveWindowSelection |
( |
std::function< void(KWin::Window *)> | callback, |
|
|
const QByteArray & | cursorName = QByteArray() ) |
|
virtual |
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.
- Parameters
-
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 in KWin::ApplicationX11.
Definition at line 750 of file main.cpp.
◆ tabletModeManager()
◆ unregisterEventFilter()
void KWin::Application::unregisterEventFilter |
( |
X11EventFilter * | filter | ) |
|
◆ updateX11Time()
void KWin::Application::updateX11Time |
( |
xcb_generic_event_t * | event | ) |
|
◆ updateXTime()
void KWin::Application::updateXTime |
( |
| ) |
|
Queries the current X11 time stamp of the X server.
Definition at line 529 of file main.cpp.
◆ virtualTerminalCreated
void KWin::Application::virtualTerminalCreated |
( |
| ) |
|
|
signal |
◆ wasCrash()
bool KWin::Application::wasCrash |
( |
| ) |
|
|
static |
◆ workspaceCreated
void KWin::Application::workspaceCreated |
( |
| ) |
|
|
signal |
◆ x11CompositeWindow()
xcb_window_t KWin::Application::x11CompositeWindow |
( |
| ) |
const |
|
inline |
- Returns
- the X11 composite overlay window handle.
Definition at line 187 of file main.h.
◆ x11Connection()
xcb_connection_t * KWin::Application::x11Connection |
( |
| ) |
const |
|
inline |
- Returns
- the X11 xcb connection
Definition at line 195 of file main.h.
◆ x11ConnectionAboutToBeDestroyed
void KWin::Application::x11ConnectionAboutToBeDestroyed |
( |
| ) |
|
|
signal |
◆ x11ConnectionChanged
void KWin::Application::x11ConnectionChanged |
( |
| ) |
|
|
signal |
◆ x11RootWindow()
xcb_window_t KWin::Application::x11RootWindow |
( |
| ) |
const |
|
inline |
- Returns
- the X11 root window.
Definition at line 179 of file main.h.
◆ x11Time()
xcb_timestamp_t KWin::Application::x11Time |
( |
| ) |
const |
|
inline |
◆ xwayland()
◆ xwaylandScale()
qreal KWin::Application::xwaylandScale |
( |
| ) |
const |
|
inline |
◆ xwaylandScaleChanged
void KWin::Application::xwaylandScaleChanged |
( |
| ) |
|
|
signal |
◆ crashes
int KWin::Application::crashes = 0 |
|
staticprotected |
◆ config
KSharedConfigPtr KWin::Application::config |
|
readwrite |
◆ kxkbConfig
KSharedConfigPtr KWin::Application::kxkbConfig |
|
readwrite |
◆ x11Connection
void * KWin::Application::x11Connection |
|
read |
◆ x11RootWindow
quint32 KWin::Application::x11RootWindow |
|
read |
◆ x11Time
quint32 KWin::Application::x11Time |
|
readwrite |
The documentation for this class was generated from the following files: