Python: Xlib — How can I raise(bring to top) windows?

前端 未结 3 1645
星月不相逢
星月不相逢 2021-01-13 03:42

I\'ve tried using:

   win.configure(stack_mode=X.TopIf)
   win.set_input_focus(X.RevertToParent, X.CurrentTime)

However even without any fo

3条回答
  •  有刺的猬
    2021-01-13 04:05

    Perhaps this is the solution:
    [Xlib] Force Raise/Map/Focus a given Window

    A solution given (follow the thread) involves using wnck, which in Python is a part of the Gtk+ bindings.

提交回复
热议问题