timbertson / shellshape

tiling window manager extension for gnome-shell
http://gfxmonk.net/shellshape/
Other
396 stars 38 forks source link

shellshape doesn't plays well with hidetopbar extension #128

Open i5513 opened 10 years ago

i5513 commented 10 years ago

Hello,

When top bar is not show (https://extensions.gnome.org/extension/545/hide-top-bar/) and you have two windows with horizontal tiling, the top space is empty and not used by both windows

Thank you

sugoidogo commented 10 years ago

+1

Lippdo commented 9 years ago

+1

thwischm commented 7 years ago

As a workaround (until options for this are added), you can edit the function that calculates the bounds yourself. In src/gjs/extension.ts at line 636 change

Bounds.prototype.update = function(newMonitor)
{
    if (newMonitor) this.monitor = newMonitor;
    if (!this.monitor) throw new Error("monitor not yet set");
    var panel_height = Main.panel.actor.height;
    this.pos = {
        x: this.monitor.x + self.screen_padding,
        y: this.monitor.y + panel_height + self.screen_padding
    };
    this.size = {
        x: this.monitor.width - (2 * self.screen_padding),
        y: this.monitor.height - panel_height - (2 * self.screen_padding)
    };
};

to

Bounds.prototype.update = function(newMonitor)
{
    if (newMonitor) this.monitor = newMonitor;
    if (!this.monitor) throw new Error("monitor not yet set");
    var panel_height = Main.panel.actor.height;
    this.pos = {
        x: this.monitor.x + self.screen_padding,
        y: this.monitor.y + self.screen_padding
    };
    this.size = {
        x: this.monitor.width - (2 * self.screen_padding),
        y: this.monitor.height - (2 * self.screen_padding)
    };
};

This will remove the space reserved for the top bar.