[vbox-dev] How-to bring VirtualBox VM window to focus ?

Alexey Eromenko al4321 at gmail.com
Sat Jun 11 23:38:09 GMT 2011


update: I was able to solve the Linux case (by help of IRC #python channel)

Just 3 lines of code:
======================
import gtk
wrapped_window = gtk.gdk.window_foreign_new(int(hwnd))
wrapped_window.focus()
======================
However, this requires end-users to manually disable "Focus stealing
prevention" in KDE.
Any ideas on how-to make it work out-of-the-box ?

-- 
-Alexey Eromenko "Technologov"




More information about the vbox-dev mailing list