KWin
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
KWin::ApplicationX11 Class Reference

#include <main_x11.h>

Inheritance diagram for KWin::ApplicationX11:
KWin::Application

Public Member Functions

 ApplicationX11 (int &argc, char **argv)
 
 ~ApplicationX11 () override
 
void setReplace (bool replace)
 
std::unique_ptr< EdgecreateScreenEdge (ScreenEdges *parent) override
 
std::unique_ptr< CursorcreatePlatformCursor () override
 
std::unique_ptr< OutlineVisualcreateOutline (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
 
- Public Member Functions inherited from KWin::Application
 ~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)
 
OutputBackendoutputBackend () const
 
void setOutputBackend (std::unique_ptr< OutputBackend > &&backend)
 
Sessionsession () 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 ()
 
PluginManagerpluginManager () const
 
InputMethodinputMethod () const
 
ColorManagercolorManager () const
 
virtual XwaylandInterfacexwayland () const
 
TabletModeManagertabletModeManager () const
 

Protected Member Functions

void performStartup () override
 
- Protected Member Functions inherited from KWin::Application
 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

- Public Types inherited from KWin::Application
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 }
 
- Signals inherited from KWin::Application
void x11ConnectionChanged ()
 
void x11ConnectionAboutToBeDestroyed ()
 
void xwaylandScaleChanged ()
 
void workspaceCreated ()
 
void virtualTerminalCreated ()
 
void started ()
 
- Static Public Member Functions inherited from KWin::Application
static void setCrashCount (int count)
 
static bool wasCrash ()
 
static void createAboutData ()
 
static void setupMalloc ()
 
static void setupLocalizedString ()
 
- Static Protected Attributes inherited from KWin::Application
static int crashes = 0
 
- Properties inherited from KWin::Application
quint32 x11Time
 
quint32 x11RootWindow
 
void * x11Connection
 
KSharedConfigPtr config
 
KSharedConfigPtr kxkbConfig
 

Detailed Description

Definition at line 17 of file main_x11.h.

Constructor & Destructor Documentation

◆ ApplicationX11()

KWin::ApplicationX11::ApplicationX11 ( int & argc,
char ** argv )

Definition at line 173 of file main_x11.cpp.

◆ ~ApplicationX11()

KWin::ApplicationX11::~ApplicationX11 ( )
override

Definition at line 182 of file main_x11.cpp.

Member Function Documentation

◆ createEffectsHandler()

void KWin::ApplicationX11::createEffectsHandler ( Compositor * compositor,
WorkspaceScene * scene )
overridevirtual

Reimplemented from KWin::Application.

Definition at line 223 of file main_x11.cpp.

◆ createOutline()

std::unique_ptr< OutlineVisual > KWin::ApplicationX11::createOutline ( Outline * outline)
overridevirtual

Reimplemented from KWin::Application.

Definition at line 214 of file main_x11.cpp.

◆ createPlatformCursor()

std::unique_ptr< Cursor > KWin::ApplicationX11::createPlatformCursor ( )
overridevirtual

Reimplemented from KWin::Application.

Definition at line 209 of file main_x11.cpp.

◆ createScreenEdge()

std::unique_ptr< Edge > KWin::ApplicationX11::createScreenEdge ( ScreenEdges * parent)
overridevirtual

Reimplemented from KWin::Application.

Definition at line 204 of file main_x11.cpp.

◆ cursorImage()

PlatformCursorImage KWin::ApplicationX11::cursorImage ( ) const
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.

See also
softwareCursor
softwareCursorHotspot
Since
5.9

Reimplemented from KWin::Application.

Definition at line 238 of file main_x11.cpp.

◆ performStartup()

void KWin::ApplicationX11::performStartup ( )
overrideprotectedvirtual

Implements KWin::Application.

Definition at line 260 of file main_x11.cpp.

◆ setReplace()

void KWin::ApplicationX11::setReplace ( bool replace)

Definition at line 199 of file main_x11.cpp.

◆ startInteractivePositionSelection()

void KWin::ApplicationX11::startInteractivePositionSelection ( std::function< void(const QPointF &)> callback)
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.

Parameters
callbackThe function to invoke once the interactive position selection ends

Reimplemented from KWin::Application.

Definition at line 233 of file main_x11.cpp.

◆ startInteractiveWindowSelection()

void KWin::ApplicationX11::startInteractiveWindowSelection ( std::function< void(KWin::Window *)> callback,
const QByteArray & cursorName = QByteArray() )
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.

Parameters
callbackThe function to invoke once the interactive window selection ends
cursorNameThe optional name of the cursor shape to use, default is crosshair

Reimplemented from KWin::Application.

Definition at line 228 of file main_x11.cpp.


The documentation for this class was generated from the following files: