Skip to content

Commit

Permalink
output-layout: make NOOP-1 output larger.
Browse files Browse the repository at this point in the history
When outputs are unplugged, views are temporarily moved to the
NOOP-1 output. Because this output is currently only 1280x720,
windoes moved to it get moved and cropped to match its small
screen size.

Make the output 4k so windows stay where they are unless the user
is running a display larger than 4k.

This does not affect the WL-x outputs used when running in
headless mode, which continue to be created as 1280x720 by
wlroots code (attempt_headless_backend).
  • Loading branch information
lcolitti committed Apr 12, 2024
1 parent b99cb04 commit 74c2181
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/output-layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,9 @@ class output_layout_t::impl

if (!noop_output)
{
auto handle = wlr_headless_add_output(noop_backend, 1280, 720);
// NOOP output should be at least as large as actual screen sizes. Otherwise, when
// when windows are temporarily mapped to it, they will be moved/cropped to match it.
auto handle = wlr_headless_add_output(noop_backend, 3840, 2160);
handle->data = WF_NOOP_OUTPUT_MAGIC;
strcpy(handle->name, "NOOP-1");

Expand Down

0 comments on commit 74c2181

Please sign in to comment.