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

Gnome 3.20 Draws over nitrogen #78

Closed
Flat opened this issue Jun 24, 2016 · 12 comments
Closed

Gnome 3.20 Draws over nitrogen #78

Flat opened this issue Jun 24, 2016 · 12 comments
Assignees
Milestone

Comments

@Flat
Copy link

Flat commented Jun 24, 2016

Using Gnome-Shell 3.20 gnome draws wallpapers over nitrogen's, with seemingly no way to disable Gnome's wallpapers, even using gnome-tweak-tool or dconf-editor

@ikeydoherty
Copy link

GNOME Shell doesn't provide a root xwin, it draws using FBOs via Mutter. i.e. its not an actual window that one can draw over. I doubt there is anything that Nitrogen can do in this respect, given that it specifically draws over the XWindow.

You'd have to use something that provides a root window, typically this is achieved by running a file manager like Nautilus or Nemo, and allowing it to display desktop icons (GNOME Tweak Tool is your friend here)

@Flat
Copy link
Author

Flat commented Sep 15, 2016

Even when running Nautilus Nitrogen does not properly draw over it. I am not as well versed in the land of how desktop wallpapers work as I assume you are, however even when running Nautilus, it provides it's own xwindow instead of using the root 0 window. You can draw over this Nautilus window, but in my opinion it would make more sense to overwrite how Mutter originally does it, or to use gsettings to change the gnome wallpaper.

@ikeydoherty
Copy link

gsettings would be the most portable way of doing it, yes.

@daf
Copy link
Member

daf commented Sep 15, 2016

This is indeed how it is done in Nitrogen, see SetBG.cc.

Typically when these stop working it's because the detection mechanism for finding these fake desktop windows is broken - in the past the class names have changed, or the gsettings keys change, etc... I don't run these environments myself and have a non-existant test-suite for all the possible combinations so I miss when things change.

I've just recently learned how to run DEs inside of docker and show them with Xephyr so hopefully this will improve, and I'll look into this specific issue.

@Flat
Copy link
Author

Flat commented Sep 15, 2016

After updating to git master, the wallpaper is currently correctly set via gsettings; Nitrogen crashes with (nitrogen:7522): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.background' does not contain a key named 'draw-background' after setting the background however. I also appear to have lost support for setting wallpapers separately by monitor (The main reason for using Nitrogen), I am unsure if that is a separate bug or intentional on gnome/mutter though. It appears Arch Linux's nitrogen package is from the last "release" from 2011, which would explain the lack of actually setting the wallpaper. Nitrogen is also missing a picture-options wallpaper key that allows gnome/mutter to span an image correctly across monitors.

@daf daf added this to the 1.6.x milestone Oct 27, 2016
@daf daf self-assigned this Dec 3, 2016
@daf daf modified the milestones: 1.6.1, 1.6.x Dec 3, 2016
@daf daf closed this as completed in 2f86f8a Jan 1, 2017
@daf
Copy link
Member

daf commented Jan 1, 2017

Had to add yet another mechanism to detect Mutter and correctly figure out if GNOME is running, but seems to be working with a modern GNOME setup.

@Flat

Nitrogen is also missing a picture-options wallpaper key that allows gnome/mutter to span an image correctly across monitors.

While testing this, I discovered that the Tiled option in Nitrogen's dropdown sets the key to wallpaper - and I think it's accurate from what I'm seeing. wallpaper does indeed let an image span multiple monitors but leaves seams where the image repeats. I think I was expecting something more akin to zoom-fill mode in Nitrogen's native set modes. Not sure I can do anything else here.

@daf
Copy link
Member

daf commented Jan 1, 2017

Hmm, I see a reference to a picture-options mode named spanned that may be correct, but looks absolutely terrible on my home setup, but lots of things do because I've got a mixed 4k/non-4k multimonitor setup now. I'll see if I can get it on my work machine.

@daf
Copy link
Member

daf commented Jan 1, 2017

May have just been my test image. Going to add spanned to map to "Zoomed Fill" mode.

@Flat
Copy link
Author

Flat commented Jan 1, 2017

Looks like it's working to set it now for me at least. On clicking apply nitrogen crashes with

(nitrogen:31043): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.background' does not contain a key named 'draw-background'
[1]    31043 trace trap (core dumped)  nitrogen

however.

Also, is there a way to set wallpaper by monitor with the GUI or has that been removed since 1.5.2?

@jwhipp
Copy link

jwhipp commented May 19, 2017

This still isn't working, I don't get a crash but the wallpaper isn't changed.

@milouse
Copy link

milouse commented Oct 31, 2017

@Flat I've the same problem, it looks like #43 should be re-opened on gnome 3.26+ :(

I'm compiling nitrogen from HEAD by the way

@daf
Copy link
Member

daf commented Oct 31, 2017

I'll reopen #43.

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

No branches or pull requests

5 participants