Skip to content

Instantly share code, notes, and snippets.

@heldr
Created July 3, 2012 19:21
Show Gist options
  • Save heldr/3042145 to your computer and use it in GitHub Desktop.
Save heldr/3042145 to your computer and use it in GitHub Desktop.
Avoid skype window attention on Cinnamon
// 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