Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(linux/x11): use config value for output_name #2294

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/platform/linux/x11grab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,8 @@ namespace platf {

BOOST_LOG(info) << "Detecting monitors"sv;

x11::xdisplay_t xdisplay { x11::OpenDisplay(nullptr) };
std::string display = config::video.output_name; // get display name from config
x11::xdisplay_t xdisplay { x11::OpenDisplay(display.empty() ? nullptr : display.c_str()) }; // if config empty, nullptr will use the DISPLAY env var
if (!xdisplay) {
return {};
}
Expand Down
Loading