summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-04 17:22:05 +0100
committerSven Gothel <[email protected]>2014-01-04 17:22:05 +0100
commit661fea5aa92b1e3c0b888035b67612307fa79a35 (patch)
treec1d376f3946aa90d981a297511ec53ad3d1234ba /src/newt
parent2d3a311b7863ed598865f19833417abb6e27a513 (diff)
Bug 935: NEWT Windows Window-Icon: Fix Window-Icon Visibility after Reparenting CHILD -> TOP
Hiding the window via 'ShowWindow(.., SW_HIDE)' before reparenting and subsequent style change incl. visibility renders the Window-Icon visible.
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/native/WindowsWindow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c
index 2a16dce57..8671ee2e0 100644
--- a/src/newt/native/WindowsWindow.c
+++ b/src/newt/native/WindowsWindow.c
@@ -2217,6 +2217,10 @@ JNIEXPORT void JNICALL Java_jogamp_newt_driver_windows_WindowDriver_reconfigureW
//
if( TST_FLAG_CHANGE_PARENTING(flags) && NULL == hwndP ) {
// TOP: in -> out
+
+ // HIDE to allow setting ICONs (Windows bug?) .. WS_VISIBLE (style) will reset visibility
+ ShowWindow(hwnd, SW_HIDE);
+
SetParent(hwnd, NULL);
}