Hi,
I managed to test my patch for color and pattern wallpaper in multi
monitor setup with different resolution.
The pattern wallpaper has proper result compared the color wallpaper.

I think, i miss understood the kephal::primaryScreen function in color
wallpaper so the result was not correct(both monitor has same
thumbnail size).

Below are the codes in pattern wallpaper:
QDesktopWidget *desktop = QApplication::desktop();
int activeScreen = desktop->screenNumber(parent);
QRect geom = desktop->screenGeometry(activeScreen);

I could not find something like QDesktopWidget::screenNumber in kephal,
the closest i think only Kephal::ScreenUtils::screenId(QPoint p),
which return id, then pass to Kephal::ScreenUtils::screenGeometry(int
id) to get the size.

Should i use kephal or better change to QDesktopWidget?

Regards,
Reza
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to