Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 180752 Details for
Bug 305696
Eclipse editor losing keyboard shortcuts focus after autocompletion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed workaround
bug305696_workaround.diff (text/plain), 1.32 KB, created by
ppdkseth222
on 2010-10-13 07:19:51 EDT
(
hide
)
Description:
Proposed workaround
Filename:
MIME Type:
Creator:
ppdkseth222
Created:
2010-10-13 07:19:51 EDT
Size:
1.32 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java,v >retrieving revision 1.297.2.1 >diff -u -r1.297.2.1 Shell.java >--- Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java 6 Aug 2010 20:15:53 -0000 1.297.2.1 >+++ Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java 13 Oct 2010 11:01:32 -0000 >@@ -534,9 +534,15 @@ > * window, gdk_window_focus() does not give focus to the > * window. The fix is to use XSetInputFocus() to force > * the focus. >+ * >+ * NOTE: Temporary workaround for bug #305696. The code below >+ * that makes use of XSetInputFocus() seems to be causing the >+ * loss of focus described in bug #305696. The workaround here >+ * bypasses the use of XSetInputFocus() for GTK+ 2.17.x and >+ * later. > */ > int /*long*/ window = OS.GTK_WIDGET_WINDOW (shellHandle); >- if ((xFocus || (style & SWT.ON_TOP) != 0) && OS.GDK_WINDOWING_X11 ()) { >+ if ( OS.GTK_VERSION < OS.VERSION (2, 17, 0) && ((xFocus || (style & SWT.ON_TOP) != 0) && OS.GDK_WINDOWING_X11 ()) ) { > int /*long*/ xDisplay = OS.gdk_x11_drawable_get_xdisplay (window); > int /*long*/ xWindow = OS.gdk_x11_drawable_get_xid (window); > OS.gdk_error_trap_push ();
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 305696
: 180752