Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.cpp
Show All 27 Lines | |||||
28 | #include <KWayland/Server/slide_interface.h> | 28 | #include <KWayland/Server/slide_interface.h> | ||
29 | #include <KWayland/Server/display.h> | 29 | #include <KWayland/Server/display.h> | ||
30 | 30 | | |||
31 | namespace KWin | 31 | namespace KWin | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | SlidingPopupsEffect::SlidingPopupsEffect() | 34 | SlidingPopupsEffect::SlidingPopupsEffect() | ||
35 | { | 35 | { | ||
36 | initConfig<SlidingPopupsConfig>(); | ||||
36 | KWayland::Server::Display *display = effects->waylandDisplay(); | 37 | KWayland::Server::Display *display = effects->waylandDisplay(); | ||
37 | if (display) { | 38 | if (display) { | ||
38 | display->createSlideManager(this)->create(); | 39 | display->createSlideManager(this)->create(); | ||
39 | } | 40 | } | ||
40 | 41 | | |||
41 | mSlideLength = QFontMetrics(qApp->font()).height() * 8; | 42 | mSlideLength = QFontMetrics(qApp->font()).height() * 8; | ||
42 | 43 | | |||
43 | mAtom = effects->announceSupportProperty("_KDE_SLIDE", this); | 44 | mAtom = effects->announceSupportProperty("_KDE_SLIDE", this); | ||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |