Skip to content
Browse files

Don't set urgent hint if window has focus

Some apps (urxvt is a notable example) will set their own urgent hints *even
if* they already have focus. This commit prevents that.
  • Loading branch information...
1 parent d36be22 commit d6daa50078ae0a3be46b1c95124a7758c3c6da48 @tych0 tych0 committed Nov 27, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 libqtile/
5 libqtile/
@@ -233,8 +233,9 @@ def updateHints(self):
if h and 'UrgencyHint' in h['flags']:
- self.hints['urgent'] = True
-'client_urgent_hint_changed', self)
+ if self.qtile.currentWindow != self:
+ self.hints['urgent'] = True
+'client_urgent_hint_changed', self)
elif self.urgent:
self.hints['urgent'] = False'client_urgent_hint_changed', self)

0 comments on commit d6daa50

Please sign in to comment.
Something went wrong with that request. Please try again.