def __grabHotkeysForWindow(self, window):
c = self.app.configManager<EOL>hotkeys = c.hotKeys + c.hotKeyFolders<EOL>window_info = self.get_window_info(window)<EOL>for item in hotkeys:<EOL><INDENT>if item.get_applicable_regex() is not None and item._should_trigger_window_title(window_info):<EOL><INDENT>self.__enqueue(self.__grabHotkey, item.hotKey, item.modifiers, window)<EOL><DEDENT>elif self.__needsMutterWorkaround(item):<EOL><INDENT>self.__enqueue(self.__grabHotkey, item.hotKey, item.modifiers, window)<EOL><DEDENT><DEDENT>
Grab all hotkeys relevant to the window

Used when a new window is created