Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show All 31 Lines | |||||
32 | #include "tabbox.h" | 32 | #include "tabbox.h" | ||
33 | #endif | 33 | #endif | ||
34 | #include "screenedge.h" | 34 | #include "screenedge.h" | ||
35 | #include "tabgroup.h" | 35 | #include "tabgroup.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/clientconnection.h> | ||||
41 | #include <KWayland/Server/surface_interface.h> | ||||
40 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | 42 | #include <KWayland/Server/plasmawindowmanagement_interface.h> | ||
41 | 43 | | |||
42 | #include <KDecoration2/Decoration> | 44 | #include <KDecoration2/Decoration> | ||
43 | 45 | | |||
44 | #include <KDesktopFile> | 46 | #include <KDesktopFile> | ||
45 | 47 | | |||
46 | #include <QMouseEvent> | 48 | #include <QMouseEvent> | ||
47 | #include <QStyleHints> | 49 | #include <QStyleHints> | ||
▲ Show 20 Lines • Show All 650 Lines • ▼ Show 20 Line(s) | 676 | { | |||
698 | w->setMaximizeable(isMaximizable()); | 700 | w->setMaximizeable(isMaximizable()); | ||
699 | w->setMinimizeable(isMinimizable()); | 701 | w->setMinimizeable(isMinimizable()); | ||
700 | w->setFullscreenable(isFullScreenable()); | 702 | w->setFullscreenable(isFullScreenable()); | ||
701 | w->setIcon(icon()); | 703 | w->setIcon(icon()); | ||
702 | auto updateAppId = [this, w] { | 704 | auto updateAppId = [this, w] { | ||
703 | w->setAppId(QString::fromUtf8(m_desktopFileName.isEmpty() ? resourceName() : m_desktopFileName)); | 705 | w->setAppId(QString::fromUtf8(m_desktopFileName.isEmpty() ? resourceName() : m_desktopFileName)); | ||
704 | }; | 706 | }; | ||
705 | updateAppId(); | 707 | updateAppId(); | ||
706 | w->setSkipTaskbar(skipTaskbar()); | 708 | w->setPid(surface()->client()->processId()); | ||
graesslin: Why is setSkipTaskbar removed? | |||||
709 | surface()->client()->processId(); | ||||
graesslin: What is this line supposed to do? | |||||
707 | w->setShadeable(isShadeable()); | 710 | w->setShadeable(isShadeable()); | ||
708 | w->setShaded(isShade()); | 711 | w->setShaded(isShade()); | ||
709 | w->setResizable(isResizable()); | 712 | w->setResizable(isResizable()); | ||
710 | w->setMovable(isMovable()); | 713 | w->setMovable(isMovable()); | ||
711 | w->setVirtualDesktopChangeable(true); // FIXME Matches Client::actionSupported(), but both should be implemented. | 714 | w->setVirtualDesktopChangeable(true); // FIXME Matches Client::actionSupported(), but both should be implemented. | ||
712 | w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr); | 715 | w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr); | ||
713 | w->setGeometry(geom); | 716 | w->setGeometry(geom); | ||
714 | connect(this, &AbstractClient::skipTaskbarChanged, w, | 717 | connect(this, &AbstractClient::skipTaskbarChanged, w, | ||
▲ Show 20 Lines • Show All 1038 Lines • Show Last 20 Lines |
Why is setSkipTaskbar removed?