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

Xfce4 fix wallpaper setting #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

codedwrench
Copy link

@codedwrench codedwrench commented Nov 13, 2022

This pull requests makes it so that OneShot can set wallpapers and colors properly again on the newest xfce version.

Xfce no longer listens to monitor0 when setting a wallpaper and instead needs the display name, e.g. backdrop/screen0/monitorHDMI1/workspace0/last-image

Colors also didn't seem to work properly, so that has been changed to use rgba1 values, also using xfconf_channel_set_array instead, to make things easier

It sets the wallpaper to all monitors. Resetting when closing the game also works.
Tested through modshot, because i wasn't able to compile using conan, however this file is nearly the same in either fork

image

@codedwrench
Copy link
Author

codedwrench commented Nov 13, 2022

After a lot of messing about with the cmakelists i was able to replace the modules missing in conan with my own and it seems gtk3 is required for the new features. I think I could use the GDKScreen apis instead: https://docs.gtk.org/gdk3/class.Screen.html but most linux systems nowadays should have gtk3

@codedwrench
Copy link
Author

codedwrench commented Nov 13, 2022

image
took a while, but here it is using your fork as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant