'Bring a window to the front
Parameters
e : xcb event
Click event used to determine window to focus'

def cmd_focus_by_click(self, e):

    wnd = (e.child or e.root)
    if self.config.bring_front_click:
        self.conn.conn.core.ConfigureWindow(wnd, xcffib.xproto.ConfigWindow.StackMode, [xcffib.xproto.StackMode.Above])
    window = self.windowMap.get(wnd)
    if (window and (not window.window.get_property('QTILE_INTERNAL'))):
        self.currentGroup.focus(self.windowMap.get(wnd), False)
        self.windowMap.get(wnd).focus(False)
    self.conn.conn.core.AllowEvents(xcffib.xproto.Allow.ReplayPointer, e.time)
    self.conn.conn.flush()
