Skip to content

Commit

Permalink
wayland: send 1280x720 if w/h is 0 in configure
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 31, 2024
1 parent 865cd94 commit 16bbbcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/Wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ Aquamarine::CWaylandOutput::CWaylandOutput(const std::string& name_, Hyprutils::

waylandState.xdgToplevel->setConfigure([this](CCXdgToplevel* r, int32_t w, int32_t h, wl_array* arr) {
backend->backend->log(AQ_LOG_DEBUG, std::format("Output {}: configure toplevel with {}x{}", name, w, h));
if (w == 0 || h == 0) {
backend->backend->log(AQ_LOG_DEBUG, std::format("Output {}: w/h is 0, sending default hardcoded 1280x720", name));
w = 1280;
h = 720;
}
events.state.emit(SStateEvent{.size = {w, h}});
sendFrameAndSetCallback();
});
Expand Down

0 comments on commit 16bbbcb

Please sign in to comment.