Skip to content

Commit

Permalink
set default kbd group for new windows
Browse files Browse the repository at this point in the history
  • Loading branch information
baverman committed Oct 28, 2016
1 parent 7473a91 commit ca38569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orcsome/wm.py
Expand Up @@ -467,6 +467,8 @@ def handle_focus(self, event):
prop = X.get_window_property(self.dpy, event.window, self.atom['_ORCSOME_KBD_GROUP'])
if prop:
X.set_kbd_group(self.dpy, prop[0])
else:
X.set_kbd_group(self.dpy, 0)
else:
if event.mode == 3 and self.track_kbd_layout:
X.set_window_property(self.dpy, event.window, self.atom['_ORCSOME_KBD_GROUP'],
Expand Down

0 comments on commit ca38569

Please sign in to comment.