Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show All 31 Lines | |||||
32 | #ifdef KWIN_BUILD_TABBOX | 32 | #ifdef KWIN_BUILD_TABBOX | ||
33 | #include "tabbox.h" | 33 | #include "tabbox.h" | ||
34 | #endif | 34 | #endif | ||
35 | #include "screenedge.h" | 35 | #include "screenedge.h" | ||
36 | #include "useractions.h" | 36 | #include "useractions.h" | ||
37 | #include "workspace.h" | 37 | #include "workspace.h" | ||
38 | 38 | | |||
39 | #include "wayland_server.h" | 39 | #include "wayland_server.h" | ||
40 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | 40 | #include <KWaylandServer/plasmawindowmanagement_interface.h> | ||
41 | 41 | | |||
42 | #include <KDecoration2/Decoration> | 42 | #include <KDecoration2/Decoration> | ||
43 | 43 | | |||
44 | #include <KDesktopFile> | 44 | #include <KDesktopFile> | ||
45 | 45 | | |||
46 | #include <QMouseEvent> | 46 | #include <QMouseEvent> | ||
47 | #include <QStyleHints> | 47 | #include <QStyleHints> | ||
48 | 48 | | |||
▲ Show 20 Lines • Show All 1294 Lines • ▼ Show 20 Line(s) | 1341 | if (m_windowManagementInterface) { | |||
1343 | return; | 1343 | return; | ||
1344 | } | 1344 | } | ||
1345 | if (!waylandServer() || !surface()) { | 1345 | if (!waylandServer() || !surface()) { | ||
1346 | return; | 1346 | return; | ||
1347 | } | 1347 | } | ||
1348 | if (!waylandServer()->windowManagement()) { | 1348 | if (!waylandServer()->windowManagement()) { | ||
1349 | return; | 1349 | return; | ||
1350 | } | 1350 | } | ||
1351 | using namespace KWayland::Server; | 1351 | using namespace KWaylandServer; | ||
1352 | auto w = waylandServer()->windowManagement()->createWindow(waylandServer()->windowManagement()); | 1352 | auto w = waylandServer()->windowManagement()->createWindow(waylandServer()->windowManagement()); | ||
1353 | w->setTitle(caption()); | 1353 | w->setTitle(caption()); | ||
1354 | w->setVirtualDesktop(isOnAllDesktops() ? 0 : desktop() - 1); | 1354 | w->setVirtualDesktop(isOnAllDesktops() ? 0 : desktop() - 1); | ||
1355 | w->setActive(isActive()); | 1355 | w->setActive(isActive()); | ||
1356 | w->setFullscreen(isFullScreen()); | 1356 | w->setFullscreen(isFullScreen()); | ||
1357 | w->setKeepAbove(keepAbove()); | 1357 | w->setKeepAbove(keepAbove()); | ||
1358 | w->setKeepBelow(keepBelow()); | 1358 | w->setKeepBelow(keepBelow()); | ||
1359 | w->setMaximized(maximizeMode() == KWin::MaximizeFull); | 1359 | w->setMaximized(maximizeMode() == KWin::MaximizeFull); | ||
▲ Show 20 Lines • Show All 1943 Lines • Show Last 20 Lines |