Can't input in Entry (conflict with XIM)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl-tk (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: perl-tk
I have the newest perl-tk package installed in intrepid.
I'm using SCIM as the input method. Sometimes I can't input using keyboard in Entry. I searched and finally got the answer. The perl-tk conflict with the XIM. I also found this solution via google. It works for me. Hope this patch could be accepted.
--- pTk/mTk/
+++ pTk/mTk/
@@ -945,8 +945,10 @@
#endif
}
}
- if (XFilterEvent(
- goto done;
+ if(eventPtr->type == KeyPress || eventPtr->type == KeyRelease) {
+ if(XFilterEvent
+ goto done;
+ }
}
}
#endif /* TK_USE_
--- pTk/mTk/
+++ pTk/mTk/
@@ -308,19 +308,18 @@
TransferXEvent
Display *display;
{
- int numFound;
XEvent event;
- numFound = QLength(display);
-
/*
* Transfer events from the X event queue to the Tk event queue.
*/
- while (numFound > 0) {
+ while (QLength(display) > 0) {
+ if(event.
+ if(XFilterEvent
+ }
- numFound--;
}
}
Fixed in upstream