summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkwindow-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/win32/gdkwindow-win32.c')
-rw-r--r--gdk/win32/gdkwindow-win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index cf27086685..461f61786f 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -283,6 +283,7 @@ _gdk_windowing_window_init (GdkScreen *screen)
private->abs_y = 0;
private->width = GetSystemMetrics (SM_CXSCREEN);
private->height = GetSystemMetrics (SM_CYSCREEN);
+ private->viewable = TRUE;
gdk_win32_handle_table_insert ((HANDLE *) &draw_impl->handle, _gdk_root);
@@ -758,6 +759,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
else
private->state &= (~GDK_WINDOW_STATE_ABOVE);
private->state &= (~GDK_WINDOW_STATE_BELOW);
+ private->viewable = TRUE;
private->depth = gdk_visual_get_system ()->depth;