mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-01 21:07:12 -05:00
UI: Fix full screen projector on screens that have reserved areas
QScreen::availableGeometry() does not return the full screen size on X11 if areas of the screen are reserved by the window manager. In this case the full screen projector does not cover the whole screen. Using QScreen::geometry() instead fixes this issue.
This commit is contained in:
@@ -1101,7 +1101,7 @@ void OBSBasicSettings::LoadResolutionLists()
|
||||
ui->baseResolution->clear();
|
||||
|
||||
for (QScreen* screen: QGuiApplication::screens()) {
|
||||
QSize as = screen->availableSize();
|
||||
QSize as = screen->size();
|
||||
string res = ResString(as.width(), as.height());
|
||||
ui->baseResolution->addItem(res.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user