Bugzilla – Attachment 540 Details for
Bug 879
Threads deadlock in native keyboardfocus calls made form multiple threads
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Another workaround patch, tested on Java 6 and 7 on windows 7
focus-workaround.patch (text/plain), 1.98 KB, created by
Harvey Harrison
on 2013-11-12 21:52:37 CET
(
hide
)
Description:
Another workaround patch, tested on Java 6 and 7 on windows 7
Filename:
MIME Type:
Creator:
Harvey Harrison
Created:
2013-11-12 21:52:37 CET
Size:
1.98 KB
patch
obsolete
>diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c >index a19efbc..c162474 100644 >--- a/src/newt/native/WindowsWindow.c >+++ b/src/newt/native/WindowsWindow.c >@@ -972,7 +972,7 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message, WPARAM wParam, LPARAM lP > wud->width, wud->height, wud->mouseInside, wud->touchDownCount, wud->touchDownLastUp); > if( 0 == wud->touchDownLastUp && 0 == wud->touchDownCount ) { > wud->mouseInside = 1; >- (*env)->CallVoidMethod(env, window, requestFocusID, JNI_FALSE); >+ SetFocus(wnd); > (*env)->CallVoidMethod(env, window, sendMouseEventID, > (jshort) EVENT_MOUSE_PRESSED, > GetModifiers( 0 ), >@@ -1008,7 +1008,7 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message, WPARAM wParam, LPARAM lP > wud->width, wud->height, wud->mouseInside, wud->touchDownCount, wud->touchDownLastUp); > if( 0 == wud->touchDownCount ) { > wud->mouseInside = 1; >- (*env)->CallVoidMethod(env, window, requestFocusID, JNI_FALSE); >+ SetFocus(wnd); > (*env)->CallVoidMethod(env, window, sendMouseEventID, > (jshort) EVENT_MOUSE_PRESSED, > GetModifiers( 0 ), >@@ -1041,7 +1041,7 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message, WPARAM wParam, LPARAM lP > wud->width, wud->height, wud->mouseInside, wud->touchDownCount, wud->touchDownLastUp); > if( 0 == wud->touchDownCount ) { > wud->mouseInside = 1; >- (*env)->CallVoidMethod(env, window, requestFocusID, JNI_FALSE); >+ SetFocus(wnd); > (*env)->CallVoidMethod(env, window, sendMouseEventID, > (jshort) EVENT_MOUSE_PRESSED, > GetModifiers( 0 ),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 879
:
531
| 540