Revert "Forcibly update xkblayout module internal state"

This commit is contained in:
Thiago Kenji Okada 2017-01-14 18:16:30 -02:00 committed by GitHub
parent 83a1571814
commit 932feec068

View File

@ -72,14 +72,7 @@ class Xkblayout(IntervalModule):
def change_layout(self, increment=1): def change_layout(self, increment=1):
self._xkb.group_num += increment self._xkb.group_num += increment
def update_state(self):
"""Update internal state if keyboard layout changed externally"""
self._xkb.close_display()
self._xkb.open_display()
def run(self): def run(self):
self.update_state()
cdict = { cdict = {
"num": self._xkb.group_num, "num": self._xkb.group_num,
"name": self._xkb.group_name, "name": self._xkb.group_name,