Skip to content

Commit 2cff273

Browse files
luk1337ReenigneArcher
authored andcommitted
Don't skip disconnected X11 outputs
This change lets me use HDMI-0 (with HDMI dummy plugged in) as a Sunshine exclusive output when using the following do/undo commands: * xrandr --output HDMI-0 --mode 1920x1080 --right-of DP-0 * xrandr --output HDMI-0 --off
1 parent 79cf382 commit 2cff273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/linux/x11grab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ struct x11_attr_t : public display_t {
409409
int monitor = 0;
410410
for(int x = 0; x < output; ++x) {
411411
output_info_t out_info { x11::rr::GetOutputInfo(xdisplay.get(), screenr.get(), screenr->outputs[x]) };
412-
if(out_info && out_info->connection == RR_Connected) {
412+
if(out_info) {
413413
if(monitor++ == streamedMonitor) {
414414
result = std::move(out_info);
415415
break;

0 commit comments

Comments
 (0)