Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.cpp
Show All 31 Lines | |||||
32 | #include "eglonxbackend.h" | 32 | #include "eglonxbackend.h" | ||
33 | #include "keyboard_input.h" | 33 | #include "keyboard_input.h" | ||
34 | #include "logging.h" | 34 | #include "logging.h" | ||
35 | #include "screens_xrandr.h" | 35 | #include "screens_xrandr.h" | ||
36 | #include "screenedges_filter.h" | 36 | #include "screenedges_filter.h" | ||
37 | #include "options.h" | 37 | #include "options.h" | ||
38 | #include "overlaywindow_x11.h" | 38 | #include "overlaywindow_x11.h" | ||
39 | #include "non_composited_outline.h" | 39 | #include "non_composited_outline.h" | ||
40 | #include "x11_decoration_renderer.h" | ||||
40 | 41 | | |||
41 | #include <KConfigGroup> | 42 | #include <KConfigGroup> | ||
42 | #include <KLocalizedString> | 43 | #include <KLocalizedString> | ||
43 | 44 | | |||
44 | #include <QThread> | 45 | #include <QThread> | ||
45 | #include <QOpenGLContext> | 46 | #include <QOpenGLContext> | ||
46 | #include <QX11Info> | 47 | #include <QX11Info> | ||
47 | 48 | | |||
▲ Show 20 Lines • Show All 293 Lines • ▼ Show 20 Line(s) | 341 | { | |||
341 | // first try composited Outline | 342 | // first try composited Outline | ||
342 | auto ret = Platform::createOutline(outline); | 343 | auto ret = Platform::createOutline(outline); | ||
343 | if (!ret) { | 344 | if (!ret) { | ||
344 | ret = new NonCompositedOutlineVisual(outline); | 345 | ret = new NonCompositedOutlineVisual(outline); | ||
345 | } | 346 | } | ||
346 | return ret; | 347 | return ret; | ||
347 | } | 348 | } | ||
348 | 349 | | |||
350 | Decoration::Renderer *X11StandalonePlatform::createDecorationRenderer(Decoration::DecoratedClientImpl *client) | ||||
351 | { | ||||
352 | auto renderer = Platform::createDecorationRenderer(client); | ||||
353 | if (!renderer) { | ||||
354 | renderer = new Decoration::X11Renderer(client); | ||||
355 | } | ||||
356 | return renderer; | ||||
357 | } | ||||
358 | | ||||
349 | } | 359 | } |