mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 18:25:59 +01:00
output: dont cast enum out of range (#7448)
avoid casting non typed enum out of range, looks like WL_OUTPUT_MODE_CURRENT was the intention here.
This commit is contained in:
parent
946ed1f32a
commit
3e7325af57
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,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->vecPixelSize.x, monitor->vecPixelSize.y, monitor->refreshRate * 1000.0);
|
||||
resource->sendMode((wl_output_mode)(WL_OUTPUT_MODE_CURRENT), monitor->vecPixelSize.x, monitor->vecPixelSize.y, monitor->refreshRate * 1000.0);
|
||||
|
||||
if (resource->version() >= 2)
|
||||
resource->sendDone();
|
||||
|
|
Loading…
Reference in a new issue