mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
wayland: fix invalid wl_output_mode dimensions sent
This commit is contained in:
parent
5b6d54cae0
commit
10e02076b1
@ -52,7 +52,7 @@ void CWLOutputResource::updateState() {
|
||||
if (resource->version() >= 2)
|
||||
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)
|
||||
resource->sendDone();
|
||||
|
Loading…
Reference in New Issue
Block a user