Giter VIP home page Giter VIP logo

Comments (6)

RensAlthuis avatar RensAlthuis commented on May 26, 2024

I've already looked into this a bit, apparently not as straight forward as I'd hoped. But it's high on the list of things to fix.

from vertical-overview.

romgrk avatar romgrk commented on May 26, 2024

That would need to be done in workspaceThumbnails.js, right? I'll try to take a look at it later.

from vertical-overview.

RensAlthuis avatar RensAlthuis commented on May 26, 2024

Yeah, you'd need to figure out how to load the background image and display it on each thumbnail behind the windows.

from vertical-overview.

romgrk avatar romgrk commented on May 26, 2024

Yeah ok so you know what I've looked at this and it's not as easy as it seems.

from vertical-overview.

romgrk avatar romgrk commented on May 26, 2024

Ok, I think I got it, see the PR there.

from vertical-overview.

blipk avatar blipk commented on May 26, 2024

I've been using this with my extension Customised Workspaces https://github.com/blipk/Customised-Workspaces which restores the wallpaper and allows setting a different one for each workspace.

It's enough to change _addWindowClone:

this.addInjection('workspaceThumbnail.ThumbnailsBox.prototype._addWindowClone',
  function(win) {
    let clone = new workspaceThumbnail.ThumbnailsBox.WindowClone(win);
    clone.connect('selected', (o, time) => { this.activate(time); });
    clone.connect('drag-begin', () => { Main.overview.beginWindowDrag(clone.metaWindow); });
    clone.connect('drag-cancelled', () => { Main.overview.cancelledWindowDrag(clone.metaWindow); });
    clone.connect('drag-end', () => { Main.overview.endWindowDrag(clone.metaWindow); });
    clone.connect('destroy', () => { this._removeWindowClone(clone.metaWindow); });
    this._contents.add_actor(clone);
    if (this._windows.length == 0) clone.setStackAbove(this._bgManager.backgroundActor);
    else clone.setStackAbove(this._windows[this._windows.length - 1]);
    this._windows.push(clone);
  return clone;        
});

Then something like the following in workspaceThumbnail.ThumbnailsBox.prototype.addThumbnails

_newbg = new Meta.Background({ meta_display: global.screen || global.display });
let bg = extensionUtils.getSettings('org.gnome.desktop.background').get_string('picture-uri').replace("file://", "");
_newbg.set_file(Gio.file_new_for_path(bg), imports.gi.GDesktopEnums.BackgroundStyle.ZOOM);

if (!thumbnailBox._bgManager)
    thumbnailBox._bgManager = new background.BackgroundManager({ monitorIndex: Main.layoutManager.primaryIndex,
                                                                    container: thumbnailBox._contents,
                                                                    vignette: false });

thumbnailBox._bgManager.backgroundActor.content.background = thumbnailBox._newbg;

from vertical-overview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.