mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 14:05:59 +01:00
wayland: fix invalid wl_output_mode dimensions sent
This commit is contained in:
parent
5b6d54cae0
commit
10e02076b1
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ void CWLOutputResource::updateState() {
|
||||||
if (resource->version() >= 2)
|
if (resource->version() >= 2)
|
||||||
resource->sendScale(std::ceil(monitor->scale));
|
resource->sendScale(std::ceil(monitor->scale));
|
||||||
|
|
||||||
resource->sendMode((wl_output_mode)(WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED), monitor->vecSize.x, monitor->vecSize.y, monitor->refreshRate * 1000.0);
|
resource->sendMode((wl_output_mode)(WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED), monitor->vecPixelSize.x, monitor->vecPixelSize.y, monitor->refreshRate * 1000.0);
|
||||||
|
|
||||||
if (resource->version() >= 2)
|
if (resource->version() >= 2)
|
||||||
resource->sendDone();
|
resource->sendDone();
|
||||||
|
|
Loading…
Reference in a new issue