diff options
author | Vaxry <[email protected]> | 2024-09-30 17:42:36 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-09-30 17:42:36 +0100 |
commit | 5c6c300abfea2539ffad9bcbf857325eec5ab765 (patch) | |
tree | 01c01cf879dabce016f344b94b5f07ff8cdf8602 /src | |
parent | 6bd339714160505ab1c4aade659eca6fe426fea5 (diff) | |
download | Hyprland-5c6c300abfea2539ffad9bcbf857325eec5ab765.tar.gz Hyprland-5c6c300abfea2539ffad9bcbf857325eec5ab765.zip |
wayland/output: send geometry in updateState
Diffstat (limited to 'src')
-rw-r--r-- | src/protocols/core/Output.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocols/core/Output.cpp b/src/protocols/core/Output.cpp index 394dc8e2..7b88e0a8 100644 --- a/src/protocols/core/Output.cpp +++ b/src/protocols/core/Output.cpp @@ -21,8 +21,6 @@ CWLOutputResource::CWLOutputResource(SP<CWlOutput> resource_, SP<CMonitor> pMoni PROTO::outputs.at(monitor->szName)->destroyResource(this); }); - resource->sendGeometry(0, 0, monitor->output->physicalSize.x, monitor->output->physicalSize.y, (wl_output_subpixel)monitor->output->subpixel, monitor->output->make.c_str(), - monitor->output->model.c_str(), monitor->transform); if (resource->version() >= 4) { resource->sendName(monitor->szName.c_str()); resource->sendDescription(monitor->szDescription.c_str()); @@ -57,6 +55,9 @@ void CWLOutputResource::updateState() { resource->sendMode((wl_output_mode)(WL_OUTPUT_MODE_CURRENT), monitor->vecPixelSize.x, monitor->vecPixelSize.y, monitor->refreshRate * 1000.0); + resource->sendGeometry(0, 0, monitor->output->physicalSize.x, monitor->output->physicalSize.y, (wl_output_subpixel)monitor->output->subpixel, monitor->output->make.c_str(), + monitor->output->model.c_str(), monitor->transform); + if (resource->version() >= 2) resource->sendDone(); } |