Changeset View
Changeset View
Standalone View
Standalone View
backends/kwayland/waylandconfig.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | 300 | Q_FOREACH (auto output, newConfig->outputs()) { | |||
---|---|---|---|---|---|
311 | } | 311 | } | ||
312 | 312 | | |||
313 | // position | 313 | // position | ||
314 | if (device->globalPosition() != output->pos()) { | 314 | if (device->globalPosition() != output->pos()) { | ||
315 | changed = true; | 315 | changed = true; | ||
316 | wlOutputConfiguration->setPosition(o_old->outputDevice(), output->pos()); | 316 | wlOutputConfiguration->setPosition(o_old->outputDevice(), output->pos()); | ||
317 | } | 317 | } | ||
318 | 318 | | |||
319 | if (!qFuzzyCompare(device->scale(), output->scale())) { | 319 | if (!qFuzzyCompare(device->scaleF(), output->scale())) { | ||
320 | changed = true; | 320 | changed = true; | ||
321 | wlOutputConfiguration->setScale(o_old->outputDevice(), output->scale()); | 321 | wlOutputConfiguration->setScaleF(o_old->outputDevice(), output->scale()); | ||
322 | } | 322 | } | ||
323 | 323 | | |||
324 | // rotation | 324 | // rotation | ||
325 | auto r_current = o_old->toKScreenRotation(device->transform()); | 325 | auto r_current = o_old->toKScreenRotation(device->transform()); | ||
326 | auto r_new = output->rotation(); | 326 | auto r_new = output->rotation(); | ||
327 | if (r_current != r_new) { | 327 | if (r_current != r_new) { | ||
328 | changed = true; | 328 | changed = true; | ||
329 | wlOutputConfiguration->setTransform(device, o_old->toKWaylandTransform(r_new)); | 329 | wlOutputConfiguration->setTransform(device, o_old->toKWaylandTransform(r_new)); | ||
Show All 35 Lines |