Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132456 Details for
Bug 194602
media-video/xine-ui-0.99.5 generates keypresses, interfering with normal system use
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xine-ui-fake-key.patch
xine-ui-fake-key.patch (text/plain), 2.82 KB, created by
Peter Alfredsen (RETIRED)
on 2007-10-03 12:53:29 UTC
(
hide
)
Description:
xine-ui-fake-key.patch
Filename:
MIME Type:
Creator:
Peter Alfredsen (RETIRED)
Created:
2007-10-03 12:53:29 UTC
Size:
2.82 KB
patch
obsolete
>--- src/xitk/videowin.c.orig 2007-10-02 22:12:21.000000000 +0200 >+++ src/xitk/videowin.c 2007-10-02 22:12:25.000000000 +0200 >@@ -37,13 +37,10 @@ > #include <X11/extensions/Xinerama.h> > #endif > #ifdef HAVE_XF86VIDMODE > #include <X11/extensions/xf86vmode.h> > #endif >-#ifdef HAVE_XTESTEXTENSION >-#include <X11/extensions/XTest.h> >-#endif > > #ifdef HAVE_ALLOCA_H > #include <alloca.h> > #endif > >@@ -123,14 +120,10 @@ > int depth; > int show; > int borderless; /* borderless window (for windowed mode)? */ > > Bool have_xtest; >-#ifdef HAVE_XTESTEXTENSION >- int fake_key_cur; >- KeyCode fake_keys[2]; /* Fake key to send */ >-#endif > > XWMHints *wm_hint; > > xitk_register_key_t widget_key; > xitk_register_key_t old_widget_key; >@@ -168,17 +161,10 @@ > gVw->zoom_small_stream = cfg->num_value; > } > > static Bool have_xtestextention(void) { > Bool xtestext = False; >-#ifdef HAVE_XTESTEXTENSION >- int dummy1 = 0, dummy2 = 0, dummy3 = 0, dummy4 = 0; >- >- XLockDisplay(gGui->video_display); >- xtestext = XTestQueryExtension(gGui->video_display, &dummy1, &dummy2, &dummy3, &dummy4); >- XUnlockDisplay(gGui->video_display); >-#endif > > return xtestext; > } > > static void _set_window_title(void) { >@@ -1533,15 +1519,10 @@ > > XLockDisplay (gGui->video_display); > gVw->desktopWidth = DisplayWidth(gGui->video_display, gGui->video_screen); > gVw->desktopHeight = DisplayHeight(gGui->video_display, gGui->video_screen); > >-#ifdef HAVE_XTESTEXTENSION >- gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display, XK_Shift_L); >- gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Control_L); >- gVw->fake_key_cur = 0; >-#endif > > snprintf(gVw->window_title, sizeof(gVw->window_title), "%s", "xine"); > > gettimeofday(&gVw->click_time, 0); > >@@ -2273,26 +2254,10 @@ > > void video_window_reset_ssaver(void) { > > if(gGui->ssaver_enabled && (xitk_get_last_keypressed_time() >= (long int) gGui->ssaver_timeout)) { > >-#ifdef HAVE_XTESTEXTENSION >- if(gVw->have_xtest == True) { >- >- gVw->fake_key_cur++; >- >- if(gVw->fake_key_cur >= 2) >- gVw->fake_key_cur = 0; >- >- XLockDisplay(gGui->video_display); >- XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], True, CurrentTime); >- XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], False, CurrentTime); >- XSync(gGui->video_display, False); >- XUnlockDisplay(gGui->video_display); >- } >- else >-#endif > { > /* Reset the gnome screensaver. Look up the command in PATH only once to save time, */ > /* assuming its location and permission will not change during run time of xine-ui. */ > { > static char *gssaver_args[] = { "gnome-screensaver-command", "--poke", NULL };
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 194602
: 132456 |
132459