mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Display (Linux): fix preferred resolution detection for wayland
This commit is contained in:
@@ -69,7 +69,7 @@ static void waylandKdeCurrentModeListener(void* data, FF_MAYBE_UNUSED struct kde
|
||||
wldata->refreshRate = m->refreshRate;
|
||||
if (++set == 2) break;
|
||||
}
|
||||
else if (m->preferred)
|
||||
if (m->preferred)
|
||||
{
|
||||
wldata->preferredWidth = m->width;
|
||||
wldata->preferredHeight = m->height;
|
||||
|
||||
@@ -78,7 +78,7 @@ static void waylandZwlrCurrentModeListener(void* data, FF_MAYBE_UNUSED struct zw
|
||||
wldata->refreshRate = m->refreshRate;
|
||||
if (++set == 2) break;
|
||||
}
|
||||
else if (m->preferred)
|
||||
if (m->preferred)
|
||||
{
|
||||
wldata->preferredWidth = m->width;
|
||||
wldata->preferredHeight = m->height;
|
||||
|
||||
Reference in New Issue
Block a user