Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:madlewing:moonfox11
mozilla-xulrunner190
project1.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File project1.diff of Package mozilla-xulrunner190
--- motion-compression.patch.orig +++ motion-compression.patch @@ -1,26 +1,24 @@ -diff -r a5318e0a9112 widget/src/gtk2/nsWindow.cpp ---- a/widget/src/gtk2/nsWindow.cpp Wed Oct 08 16:31:14 2008 -0400 -+++ b/widget/src/gtk2/nsWindow.cpp Wed Oct 08 14:34:34 2008 -0700 -@@ -2202,11 +2202,18 @@ - PRPackedBool synthEvent = PR_FALSE; - #ifdef MOZ_X11 - XEvent xevent; -- -- while (XCheckWindowEvent(GDK_WINDOW_XDISPLAY(aEvent->window), -- GDK_WINDOW_XWINDOW(aEvent->window), -- ButtonMotionMask, &xevent)) { -+ -+ while (XPending (GDK_WINDOW_XDISPLAY(aEvent->window))) { -+ XEvent peeked; -+ XPeekEvent (GDK_WINDOW_XDISPLAY(aEvent->window), &peeked); -+ if (peeked.xany.window != GDK_WINDOW_XWINDOW(aEvent->window) -+ || peeked.type != MotionNotify) -+ break; -+ -+ printf ("compressed out motion event\n"); -+ - synthEvent = PR_TRUE; -+ XNextEvent (GDK_WINDOW_XDISPLAY(aEvent->window), &xevent); - } - - // if plugins still keeps the focus, get it back +--- a/widget/src/gtk2/nsWindow.cpp Wed Oct 08 16:31:14 2008 -0400 ++++ b/widget/src/gtk2/nsWindow.cpp Wed Oct 08 14:34:34 2008 -0700 +@@ -1969,10 +1969,17 @@ + // but not more than that? + XEvent xevent; + PRPackedBool synthEvent = PR_FALSE; +- while (XCheckWindowEvent(GDK_WINDOW_XDISPLAY(aEvent->window), +- GDK_WINDOW_XWINDOW(aEvent->window), +- ButtonMotionMask, &xevent)) { +- synthEvent = PR_TRUE; ++ while (XPending (GDK_WINDOW_XDISPLAY(aEvent->window))) { ++ XEvent peeked; ++ XPeekEvent (GDK_WINDOW_XDISPLAY(aEvent->window), &peeked); ++ if (peeked.xany.window != GDK_WINDOW_XWINDOW(aEvent->window) ++ || peeked.type != MotionNotify) ++ break; ++ ++ printf ("compressed out motion event\n"); ++ ++ synthEvent = PR_TRUE; ++ XNextEvent (GDK_WINDOW_XDISPLAY(aEvent->window), &xevent); + } + + // if plugins still keeps the focus, get it back
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor