Skip to content
Browse files

window urgent state field

  • Loading branch information...
1 parent 7ae2e18 commit 1d3edb46e71fa731a71d6e65932dabf03241e32b @baverman committed Nov 1, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 orcsome/core.py
View
8 orcsome/core.py
@@ -25,7 +25,7 @@
load_keysym_group('xf86')
-WindowState = namedtuple('State', 'maximized_vert, maximized_horz, undecorated')
+WindowState = namedtuple('State', 'maximized_vert, maximized_horz, undecorated, urgent')
'''Window state
Has following attributes:
@@ -38,6 +38,9 @@
undecorated
Is window does not have decorations (openbox specific state).
+
+urgent
+ Is window demands attention.
'''
class RestartException(Exception): pass
@@ -652,7 +655,8 @@ def get_window_state(self, window):
return WindowState(
state and self.get_atom('_NET_WM_STATE_MAXIMIZED_VERT') in state.value,
state and self.get_atom('_NET_WM_STATE_MAXIMIZED_HORZ') in state.value,
- state and self.get_atom('_OB_WM_STATE_UNDECORATED') in state.value
+ state and self.get_atom('_OB_WM_STATE_UNDECORATED') in state.value,
+ state and self.get_atom('_NET_WM_STATE_DEMANDS_ATTENTION') in state.value,
)
def decorate_window(self, window, decorate=True):

0 comments on commit 1d3edb4

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