Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156673 Details for
Bug 243617
CVE-2007-2022 kdebase3 flash-player interaction problem
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
plugin-keyboard-handler.diff (text/plain), 2.30 KB, created by
Mark J. Cox
on 2007-06-10 20:37:38 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Mark J. Cox
Created:
2007-06-10 20:37:38 UTC
Size:
2.30 KB
patch
obsolete
>------------------------------------------------------------------------ >r652585 | lunakl | 2007-04-11 16:26:32 +0200 (Wed, 11 Apr 2007) | 3 lines >Changed paths: > M /branches/KDE/3.5/kdebase/nsplugins/viewer/qxteventloop.cpp > >Fix keyboard events handling. > > >------------------------------------------------------------------------ >Index: nsplugins/viewer/qxteventloop.cpp >=================================================================== >--- nsplugins/viewer/qxteventloop.cpp (revision 652584) >+++ nsplugins/viewer/qxteventloop.cpp (revision 652585) >@@ -32,12 +32,16 @@ > ** not clear to you. > ** > **********************************************************************/ >+ >+#include <config.h> >+ > #include "qxteventloop.h" > > #if QT_VERSION >= 0x030100 > > #include <qapplication.h> > #include <qwidgetintdict.h> >+#include <kglobal.h> > > // resolve the conflict between X11's FocusIn and QEvent::FocusIn > const int XFocusOut = FocusOut; >@@ -52,6 +56,8 @@ const int XKeyRelease = KeyRelease; > > Boolean qmotif_event_dispatcher( XEvent *event ); > >+static void handle_xquerykeymap( Display* dpy, XEvent* event ); >+ > class QXtEventLoopPrivate > { > public: >@@ -147,6 +153,7 @@ void QXtEventLoopPrivate::unhook() > extern bool qt_try_modal( QWidget *, XEvent * ); // defined in qapplication_x11.cpp > Boolean qmotif_event_dispatcher( XEvent *event ) > { >+ handle_xquerykeymap( qt_xdisplay(), event ); > QApplication::sendPostedEvents(); > > QWidgetIntDict *mapper = &static_d->mapper; >@@ -462,6 +469,29 @@ bool QXtEventLoop::processEvents( Proces > return ( (flags & WaitForMore) || ( pendingmask != 0 ) || nevents > 0 ); > } > >+#include <dlfcn.h> >+ >+static char xquerykeymap_data[ 32 ]; >+static int (*real_xquerykeymap)( Display*, char[32] ) = NULL; >+ >+static void handle_xquerykeymap( Display* dpy, XEvent* event ) >+{ >+ if( real_xquerykeymap == NULL ) >+ real_xquerykeymap = (int (*)( Display*, char[32] )) dlsym( RTLD_NEXT, "XQueryKeymap" ); >+ if( event->type == XFocusIn || event->type == XKeyPress || event->type == XKeyRelease ) >+ real_xquerykeymap( dpy, xquerykeymap_data ); >+ if( event->type == XFocusOut ) >+ memset( xquerykeymap_data, 0, 32 ); >+} >+ >+extern "C" KDE_EXPORT >+int XQueryKeymap( Display* , char k[32] ) >+{ >+ memcpy( k, xquerykeymap_data, 32 ); >+ return 1; >+} >+ >+ > #include "qxteventloop.moc" > > #endif
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 243617
: 156673