예제 #1
0
 def is_workarea_change(self):
     if self._event and self._event.type == X.PropertyNotify and self._event.atom == PROBE.atom("_NET_WORKAREA"):
         return True
     return False
예제 #2
0
 def is_windowlist_change(self):
     if self._event and self._event.type == X.PropertyNotify and self._event.atom == PROBE.atom("_NET_CLIENT_LIST"):
         return True
     return False
예제 #3
0
 def is_window_change(self):
     if self._event and ((self._event.type == X.ConfigureNotify and self._event.event != PROBE.get_root()) or (self._event.type == X.PropertyNotify and self._event.atom == PROBE.atom("_NET_WM_DESKTOP"))):
         return True
     return False
예제 #4
0
 def is_state_change(self):
     if self._event and self._event.type == X.PropertyNotify and self._event.atom == PROBE.atom("WM_STATE"):
         return True
     return False
예제 #5
0
 def is_screen_change(self):
     if self._event and self._event.type == X.PropertyNotify and (self._event.atom == PROBE.atom("_NET_DESKTOP_GEOMETRY") or self._event.atom == PROBE.atom("_NET_NUMBER_OF_DESKTOPS")):
         return True
     return False
예제 #6
0
 def is_client_message(self):
     if self._event and self._event.type == X.ClientMessage and self._event.client_type == PROBE.atom("_PYTYLE_REMOTE"):
         return True
     return False
예제 #7
0
 def is_desktop_change(self):
     if self._event and self._event.type == X.PropertyNotify and (self._event.atom == PROBE.atom("_NET_CURRENT_DESKTOP") or self._event.atom == PROBE.atom("_NET_DESKTOP_VIEWPORT")):
         return True
     return False
예제 #8
0
 def is_active_change(self):
     if self._event and self._event.type == X.PropertyNotify and self._event.atom == PROBE.atom("_NET_ACTIVE_WINDOW"):
         return True
     return False