win32: Implement the set_accept_focus() vfunc

Implement the ClutterStageWindow::set_accept_focus() virtual function in
the win32 backend.

If accept_focus is set to be TRUE then we call SetforegroundWindow()
after calling ShowWindow(). This is similar to what GDK does when
dealing with the same situation.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2500
This commit is contained in:
Emmanuele Bassi
2010-12-28 18:04:00 +00:00
parent 497f39e2f4
commit 9d6a33d0c8
2 changed files with 24 additions and 5 deletions

View File

@ -50,15 +50,17 @@ struct _ClutterStageWin32
gint win_height;
gint scroll_pos;
RECT fullscreen_rect;
gboolean is_foreign_win;
gboolean tracking_mouse;
wchar_t *wtitle;
gboolean is_cursor_visible;
ClutterBackendWin32 *backend;
ClutterStageState state;
ClutterStage *wrapper;
guint is_foreign_win : 1;
guint tracking_mouse : 1;
guint is_cursor_visible : 1;
guint accept_focus : 1;
};
struct _ClutterStageWin32Class