diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index 3d22ec6..9e0c1f2 100644
Binary files a/schemas/gschemas.compiled and b/schemas/gschemas.compiled differ
diff --git a/schemas/org.gnome.shell.extensions.org-scrollwm.gschema.xml b/schemas/org.gnome.shell.extensions.org-scrollwm.gschema.xml
index 4b22d91..e9c2406 100644
--- a/schemas/org.gnome.shell.extensions.org-scrollwm.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.org-scrollwm.gschema.xml
@@ -169,10 +169,6 @@
''
The background image
-
- false
- Wether to hide the top bar or not
-
''
The background color
diff --git a/tiling.js b/tiling.js
index 24c3bac..f15e3a2 100644
--- a/tiling.js
+++ b/tiling.js
@@ -370,9 +370,9 @@ class Space extends Array {
this._inLayout = false;
return;
}
- let availableHeight = (workArea.y - this.monitor.y + workArea.height -
- (panelBox.height)*this.showTopBar - prefs.vertical_margin);
- let y0 = (panelBox.height)*this.showTopBar + prefs.vertical_margin;
+
+ let availableHeight = (workArea.height - prefs.vertical_margin);
+ let y0 = workArea.y - this.monitor.y + prefs.vertical_margin;
let fixPointAttempCount = 0;
for (let i=0; i {
- if (this.settings.get_boolean('show-top-bar')) {
- this.showTopBar = 1;
- TopBar.show();
- } else {
- this.showTopBar = 1;
- TopBar.hide();
- }
-
- this.layout.bind(this);
- });
}
updateColor() {
@@ -2017,7 +2003,7 @@ function animateDown(metaWindow) {
let buffer = metaWindow.get_buffer_rect();
let clone = metaWindow.clone;
Tweener.addTween(metaWindow.clone, {
- y: (panelBox.height + prefs.vertical_margin)*0 ,
+ y: panelBox.height + prefs.vertical_margin,
time: prefs.animation_time,
transition: 'easeInOutQuad'
});
diff --git a/topbar.js b/topbar.js
index 9fab24c..7ca0f7d 100644
--- a/topbar.js
+++ b/topbar.js
@@ -157,12 +157,6 @@ class WorkspaceMenu extends PanelMenu.Button {
this._contentBox.add_actor(this.colors.actor);
this.menu.box.add_actor(this._contentBox);
- this._zenItem = new PopupMenu.PopupSwitchMenuItem('show top bar', true);
- this.menu.addMenuItem(this._zenItem);
- this._zenItem.connect('toggled', item => {
- Tiling.spaces.selectedSpace.settings.set_boolean('show-top-bar', item.state);
- });
-
this.prefsIcon = new St.Button({ reactive: true,
can_focus: true,
track_hover: true,
@@ -386,7 +380,6 @@ class WorkspaceMenu extends PanelMenu.Button {
this.colors.actor.hint_text = space.name;
}
- this._zenItem._switch.setToggleState(space.settings.get_boolean('show-top-bar'));
}
workspaceSwitched(wm, fromIndex, toIndex) {
@@ -447,26 +440,8 @@ function enable () {
updateWorkspaceIndicator(to);
}));
- signals.connect(Main.overview, 'showing', show);
- signals.connect(Main.overview, 'hidden', () => {
- if (Tiling.spaces.selectedSpace.settings.get_boolean('show-top-bar'))
- return;
- hide();
- });
-
- signals.connect(panelBox, 'show', () => {
- if (Tiling.spaces.selectedSpace.settings.get_boolean('show-top-bar'))
- show();
- else {
- if (Main.overview.visible)
- return;
- hide();
- }
- });
+ signals.connect(panelBox, 'show', show);
signals.connect(panelBox, 'hide', () => {
- if (!Tiling.spaces.selectedSpace.settings.get_boolean('show-top-bar'))
- return;
-
if (display.focus_window.fullscreen) {
hide();
} else {
@@ -491,9 +466,6 @@ function disable() {
}
function show() {
- if (!Main.overview.visible &&
- !Tiling.spaces.selectedSpace.settings.get_boolean('show-top-bar'))
- return;
panelBox.show();
Tweener.addTween(panelBox, {
scale_y: 1,
@@ -505,7 +477,6 @@ function show() {
}
function hide() {
- panelBox.hide();
Tweener.addTween(panelBox, {
scale_y: 0,
time: prefs.animation_time,