js/controls/window/window.js in rsence-pre-2.2.0.12 vs js/controls/window/window.js in rsence-pre-2.2.0.13
- old
+ new
@@ -171,27 +171,31 @@
else if(_rect[3]>this.options.maxSize[1]){
_rect[3] = this.options.maxSize[1];
}
return _rect;
},
-
+
+ hasWindowFocus: false,
+
/** Reports to HSystem that this window has the focus and the
* previously active window needs to blur
**/
gainedActiveStatus: function(){
HSystem.windowFocus(this);
},
/** HSystem calls this method, whenever this window is allowed to be focused
**/
windowFocus: function(){
+ this.hasWindowFocus = true;
this.toggleCSSClass(this.elemId, 'inactive', false);
},
/** HSystem calls this method, whenever this window needs to lose its
* focus (another window focused)
**/
windowBlur: function(){
+ this.hasWindowFocus = false;
this.toggleCSSClass(this.elemId, 'inactive', true);
this.setStyle('cursor','default');
},
/** This method gets called, whenever the close button has been clicked