Changeset View
Changeset View
Standalone View
Standalone View
src/server/dpms_interface.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
115 | { | 115 | { | ||
116 | Q_UNUSED(client) | 116 | Q_UNUSED(client) | ||
117 | Private *p = reinterpret_cast<Private*>(wl_resource_get_user_data(resource)); | 117 | Private *p = reinterpret_cast<Private*>(wl_resource_get_user_data(resource)); | ||
118 | wl_resource_destroy(resource); | 118 | wl_resource_destroy(resource); | ||
119 | p->q->deleteLater(); | 119 | p->q->deleteLater(); | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | DpmsInterface::DpmsInterface(OutputInterface *output, wl_resource *parentResource, DpmsManagerInterface *manager) | 122 | DpmsInterface::DpmsInterface(OutputInterface *output, wl_resource *parentResource, DpmsManagerInterface *manager) | ||
123 | : Resource(new Private(this, manager, parentResource, output), manager) | 123 | : Resource(new Private(this, manager, parentResource, output)) | ||
124 | { | 124 | { | ||
125 | connect(output, &OutputInterface::dpmsSupportedChanged, this, | 125 | connect(output, &OutputInterface::dpmsSupportedChanged, this, | ||
126 | [this] { | 126 | [this] { | ||
127 | sendSupported(); | 127 | sendSupported(); | ||
128 | sendDone(); | 128 | sendDone(); | ||
129 | } | 129 | } | ||
130 | ); | 130 | ); | ||
131 | connect(output, &OutputInterface::dpmsModeChanged, this, | 131 | connect(output, &OutputInterface::dpmsModeChanged, this, | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |