mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
gl: win32: Don't steal parent focus when creating internal window
This fix regression introduced by 0acc18c60f
.
https://bugzilla.gnome.org/show_bug.cgi?id=766520
This commit is contained in:
parent
e357e372e1
commit
83bb89f4ec
1 changed files with 6 additions and 1 deletions
|
@ -285,7 +285,12 @@ gst_gl_window_win32_create_window (GstGLWindowWin32 * window_win32,
|
|||
|
||||
GST_LOG ("Created a win32 window");
|
||||
|
||||
set_parent_win_id (window_win32);
|
||||
/* The window has been created as if it had no parent, so there is nothing
|
||||
* else to do in that case. Even if user has already set a window,
|
||||
* parent_win_id could still be 0 at this point, and in that case calling
|
||||
* set_parent_win_id() here would steal focus from the parent window. */
|
||||
if (window_win32->parent_win_id)
|
||||
set_parent_win_id (window_win32);
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue