Created
July 3, 2012 19:21
-
-
Save heldr/3042145 to your computer and use it in GitHub Desktop.
Avoid skype window attention on Cinnamon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sudo vim /usr/share/cinnamon/js/ui/windowAttentionHandler.js | |
_onWindowDemandsAttention : function(display, window) { | |
// We don't want to show the notification when the window is already focused, | |
// because this is rather pointless. | |
// Some apps (like GIMP) do things like setting the urgency hint on the | |
// toolbar windows which would result into a notification even though GIMP itself is | |
// focused. | |
// We are just ignoring the hint on skip_taskbar windows for now. | |
// (Which is the same behaviour as with metacity + panel) | |
// if (!window || window.has_focus() || window.is_skip_taskbar() || window.is_skype_window()) | |
// return; | |
//if (this._tracker.is_window_interesting(window)) { | |
//window.activate(global.get_current_time()); | |
//} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment