コード例 #1
0
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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
ファイル: Event.py プロジェクト: nibeon/pytyle-for-python3
 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