Changeset View
Changeset View
Standalone View
Standalone View
src/server/plasmawindowmanagement_interface.cpp
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | 95 | private: | |||
---|---|---|---|---|---|
114 | QString m_themedIconName; | 114 | QString m_themedIconName; | ||
115 | QIcon m_icon; | 115 | QIcon m_icon; | ||
116 | quint32 m_virtualDesktop = 0; | 116 | quint32 m_virtualDesktop = 0; | ||
117 | quint32 m_state = 0; | 117 | quint32 m_state = 0; | ||
118 | wl_listener listener; | 118 | wl_listener listener; | ||
119 | static const struct org_kde_plasma_window_interface s_interface; | 119 | static const struct org_kde_plasma_window_interface s_interface; | ||
120 | }; | 120 | }; | ||
121 | 121 | | |||
122 | const quint32 PlasmaWindowManagementInterface::Private::s_version = 7; | 122 | const quint32 PlasmaWindowManagementInterface::Private::s_version = 9; | ||
graesslin: you need to increase the version number. | |||||
graesslin: this needs to be 9 | |||||
123 | 123 | | |||
124 | PlasmaWindowManagementInterface::Private::Private(PlasmaWindowManagementInterface *q, Display *d) | 124 | PlasmaWindowManagementInterface::Private::Private(PlasmaWindowManagementInterface *q, Display *d) | ||
125 | : Global::Private(d, &org_kde_plasma_window_management_interface, s_version) | 125 | : Global::Private(d, &org_kde_plasma_window_management_interface, s_version) | ||
126 | , q(q) | 126 | , q(q) | ||
127 | { | 127 | { | ||
128 | } | 128 | } | ||
129 | 129 | | |||
130 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 130 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
▲ Show 20 Lines • Show All 466 Lines • ▼ Show 20 Line(s) | 596 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MAXIMIZABLE) { | |||
597 | emit p->q->maximizeableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MAXIMIZABLE); | 597 | emit p->q->maximizeableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MAXIMIZABLE); | ||
598 | } | 598 | } | ||
599 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_FULLSCREENABLE) { | 599 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_FULLSCREENABLE) { | ||
600 | emit p->q->fullscreenableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_FULLSCREENABLE); | 600 | emit p->q->fullscreenableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_FULLSCREENABLE); | ||
601 | } | 601 | } | ||
602 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR) { | 602 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR) { | ||
603 | emit p->q->skipTaskbarRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR); | 603 | emit p->q->skipTaskbarRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR); | ||
604 | } | 604 | } | ||
605 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPSWITCHER) { | ||||
606 | emit p->q->skipSwitcherRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPSWITCHER); | ||||
607 | } | ||||
605 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADEABLE) { | 608 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADEABLE) { | ||
606 | emit p->q->shadeableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADEABLE); | 609 | emit p->q->shadeableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADEABLE); | ||
607 | } | 610 | } | ||
608 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADED) { | 611 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADED) { | ||
609 | emit p->q->shadedRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADED); | 612 | emit p->q->shadedRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADED); | ||
610 | } | 613 | } | ||
611 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MOVABLE) { | 614 | if (flags & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MOVABLE) { | ||
612 | emit p->q->movableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MOVABLE); | 615 | emit p->q->movableRequested(state & ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MOVABLE); | ||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 758 | { | |||
756 | d->setState(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MINIMIZABLE, set); | 759 | d->setState(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MINIMIZABLE, set); | ||
757 | } | 760 | } | ||
758 | 761 | | |||
759 | void PlasmaWindowInterface::setSkipTaskbar(bool set) | 762 | void PlasmaWindowInterface::setSkipTaskbar(bool set) | ||
760 | { | 763 | { | ||
761 | d->setState(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR, set); | 764 | d->setState(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR, set); | ||
762 | } | 765 | } | ||
763 | 766 | | |||
767 | void PlasmaWindowInterface::setSkipSwitcher(bool skip) | ||||
768 | { | ||||
769 | d->setState(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPSWITCHER, skip); | ||||
770 | } | ||||
771 | | ||||
764 | #ifndef KWAYLANDSERVER_NO_DEPRECATED | 772 | #ifndef KWAYLANDSERVER_NO_DEPRECATED | ||
765 | void PlasmaWindowInterface::setThemedIconName(const QString &iconName) | 773 | void PlasmaWindowInterface::setThemedIconName(const QString &iconName) | ||
766 | { | 774 | { | ||
767 | d->setThemedIconName(iconName); | 775 | d->setThemedIconName(iconName); | ||
768 | } | 776 | } | ||
769 | #endif | 777 | #endif | ||
770 | 778 | | |||
771 | void PlasmaWindowInterface::setIcon(const QIcon &icon) | 779 | void PlasmaWindowInterface::setIcon(const QIcon &icon) | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |
you need to increase the version number.