Skip to content

Commit d8ab387

Browse files
committed
output-layout: make NOOP-1 output larger.
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).
1 parent 54df248 commit d8ab387

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/output-layout.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,9 @@ class output_layout_t::impl
12281228

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

0 commit comments

Comments
 (0)