diff --git a/index.html b/index.html index eddf36ea..0a67b11d 100755 --- a/index.html +++ b/index.html @@ -18,9 +18,9 @@ -
+
Loading...
-
+
-
+
    diff --git a/js/skin-sprites.js b/js/skin-sprites.js index c68fd47b..fcdcbaa6 100644 --- a/js/skin-sprites.js +++ b/js/skin-sprites.js @@ -150,7 +150,7 @@ var SKIN_SPRITES = [ img: "TITLEBAR", sprites: [ { selectors: ["#title-bar"], x: 27, y: 15, width: 275, height: 14}, - { selectors: ["#title-bar.selected"], x: 27, y: 0, width: 275, height: 14}, + { selectors: [".selected #title-bar"], x: 27, y: 0, width: 275, height: 14}, { selectors: [".lllama #title-bar"], x: 27, y: 61, width: 275, height: 14}, { selectors: [".lllama #title-bar.selected"], x: 27, y: 57, width: 275, height: 14}, { selectors: ["#title-bar #option"], x: 0, y: 0, width: 9, height: 9}, diff --git a/js/window-manager.js b/js/window-manager.js index 033a7f62..bd10dc43 100644 --- a/js/window-manager.js +++ b/js/window-manager.js @@ -8,6 +8,13 @@ WindowManager = { this.windows[name] = body; + body.addEventListener('mousedown',function(e){ + for (var name in self.windows) { + self.windows[name].classList.remove('selected'); + } + this.classList.add('selected'); + }); + // Make window dragable handle.addEventListener('mousedown',function(e){ if(e.target.classList.contains('ui')) {