From b7f85fec0ea92883dc9accfb24d3790246e166aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Sun, 24 Nov 2019 12:55:52 +0100 Subject: [PATCH] ... --- virtTiling.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/virtTiling.js b/virtTiling.js index 6a5560c..6281f25 100644 --- a/virtTiling.js +++ b/virtTiling.js @@ -16,10 +16,14 @@ let prefs = { minimum_margin: 3, } +var virtStage = null + function repl() { - virtStage.destroy() + if (virtStage) + virtStage.destroy() + let stageStyle = `background-color: white;` - let virtStage = new St.Widget({ + virtStage = new St.Widget({ style: stageStyle, height: 80, width: 800 }) @@ -73,8 +77,7 @@ function repl() { workArea, prefs ) - monitor.x - columns[1][0].x + movecolumntoviewportposition(tilingContainer, monitor, columns[1][0], 30) virtStage.hide() @@ -123,8 +126,8 @@ function fromSpace(space) { /** Render a dummy view of the windows */ function render(columns) { let windowStyle = `border: black solid 1px; background-color: red` - let tilingStyle = `background-color: yellow` - tilingStyle = "" + let tilingStyle = `background-color: rgba(190, 190, 0, 0.5);` + // tilingStyle = "" let tiling = new St.Widget({name: "tiling", style: tilingStyle}) function createWindowActor(window) {