mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-18 05:23:47 -07: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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user