qwebirc.ui.WINDOW_CHANNEL = 0x04;
qwebirc.ui.WINDOW_CUSTOM = 0x08;
qwebirc.ui.WINDOW_CONNECT = 0x10;
-qwebirc.ui.WINDOW_MESSAGES = 0x32;
+qwebirc.ui.WINDOW_MESSAGES = 0x20;
qwebirc.ui.CUSTOM_CLIENT = "custom";
this.firstClient = false;
this.commandhistory = new qwebirc.irc.CommandHistory();
this.clientId = 0;
+
+ this.windowFocused = true;
+ window.addEvent("blur", function() { if(this.windowFocused) { this.windowFocused = false; this.focusChange(false); } }.bind(this));
+ window.addEvent("focus", function() { if(!this.windowFocused) { this.windowFocused = true; this.focusChange(true); } }.bind(this));
},
newClient: function(client) {
client.id = this.clientId++;
*/
loginBox: function(callback, initialNickname, initialChannels, autoConnect, autoNick) {
qwebirc.ui.GenericLoginBox(this.parentElement, callback, initialNickname, initialChannels, autoConnect, autoNick, this.options.networkName);
+ },
+ focusChange: function(newValue) {
+ var window_ = this.getActiveWindow();
+ if($defined(window_))
+ window_.focusChange(newValue);
}
});
updateTitle: function(text) {
if(this.__flasher.updateTitle(text))
this.parent(text);
+ },
+ focusChange: function(value) {
+ this.parent(value);
+ this.__flasher.focusChange(value);
}
});