diff options
author | Felipe Heidrich <fheidric> | 2011-01-20 21:12:11 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2011-01-20 21:12:11 +0000 |
commit | 3737d971237ad7c6a046b0f97620eabf44adf7b6 (patch) | |
tree | fd08fe3c05baaeb212758ef709d154aa305c813d /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | |
parent | 478edeb5845364e73b9a63bf7615144091d8042f (diff) | |
download | eclipse.platform.swt-3737d971237ad7c6a046b0f97620eabf44adf7b6.tar.gz eclipse.platform.swt-3737d971237ad7c6a046b0f97620eabf44adf7b6.tar.xz eclipse.platform.swt-3737d971237ad7c6a046b0f97620eabf44adf7b6.zip |
Bug 332096 - Browser.print() steals focus
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index d099bd25cb..77f06c4ae0 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -2241,7 +2241,10 @@ void printWidget (int /*long*/ hwnd, int /*long*/ hdc, GC gc) { OS.SetWindowLong (hwnd, OS.GWL_STYLE, (bits1 & ~OS.WS_CHILD) | OS.WS_POPUP); OS.SetWindowLong (hwnd, OS.GWL_EXSTYLE, bits2 | OS.WS_EX_TOOLWINDOW); } + Shell shell = getShell (); + Control savedFocus = shell.savedFocus; OS.SetParent (hwnd, 0); + shell.setSavedFocus (savedFocus); if ((bits1 & OS.WS_VISIBLE) != 0) { OS.DefWindowProc (hwnd, OS.WM_SETREDRAW, 1, 0); } |