1
0

Accepting request 519950 from home:13ilya:branches:X11:XOrg

u_cursors-animation.patch fix cursors animation (boo#1020061)

OBS-URL: https://build.opensuse.org/request/show/519950
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=674
This commit is contained in:
Stefan Dirsch 2017-08-31 17:19:55 +00:00 committed by Git OBS Bridge
parent b9edbcffce
commit d43a2fa0a3
3 changed files with 41 additions and 0 deletions

34
u_cursors-animation.patch Normal file
View File

@ -0,0 +1,34 @@
Author: Илья Индиго <ilya@ilya.pp.ua>
Subject: [PATCH] render: Reset animated cursor timer when sprite changes.
Patch-Mainline: To be upstreamed
Git-commit: 1c4545021f835f077362e7364d28752b7d6e968e
References: boo#1020061
Signed-off-by: Michal Srb <msrb@suse.com>
Previously the timer would not reset if the sprite changed and timer from a
previous animated cursor was pending. That caused trouble with non-looped
animated cursors that use very long delay on the last frame to prevent looping.
No animation played after such non-looped animation played once.
---
render/animcur.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/render/animcur.c b/render/animcur.c
index 52e6b8b79..4216c3a40 100644
--- a/render/animcur.c
+++ b/render/animcur.c
@@ -204,11 +204,9 @@ AnimCurDisplayCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor)
pDev->spriteInfo->anim.pCursor = pCursor;
pDev->spriteInfo->anim.pScreen = pScreen;
- if (!as->timer_set) {
- TimerSet(as->timer, TimerAbsolute, pDev->spriteInfo->anim.time,
- AnimCurTimerNotify, pScreen);
- as->timer_set = TRUE;
- }
+ TimerSet(as->timer, TimerAbsolute, pDev->spriteInfo->anim.time,
+ AnimCurTimerNotify, pScreen);
+ as->timer_set = TRUE;
}
}
else

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 31 15:18:20 UTC 2017 - ilya@ilya.pp.ua
- u_cursors-animation.patch fix cursors animation (boo#1020061)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 14 13:52:36 UTC 2017 - sndirsch@suse.com Fri Jul 14 13:52:36 UTC 2017 - sndirsch@suse.com

View File

@ -191,6 +191,7 @@ Patch9: u_xorg-wrapper-build-Build-position-independent-code.patch
Patch100: u_01-Improved-ConfineToShape.patch Patch100: u_01-Improved-ConfineToShape.patch
Patch101: u_02-DIX-ConfineTo-Don-t-bother-about-the-bounding-box-when-grabbing-a-shaped-window.patch Patch101: u_02-DIX-ConfineTo-Don-t-bother-about-the-bounding-box-when-grabbing-a-shaped-window.patch
# PATCH-FIX-UPSTREAM u_x86emu-include-order.patch schwab@suse.de -- Change include order to avoid conflict with system header, remove duplicate definitions # PATCH-FIX-UPSTREAM u_x86emu-include-order.patch schwab@suse.de -- Change include order to avoid conflict with system header, remove duplicate definitions
Patch103: u_cursors-animation.patch
Patch104: u_xorg-server-xdmcp.patch Patch104: u_xorg-server-xdmcp.patch
Patch112: u_render-Cast-color-masks-to-unsigned-long-before-shifting-them.patch Patch112: u_render-Cast-color-masks-to-unsigned-long-before-shifting-them.patch
@ -325,6 +326,7 @@ sh %{SOURCE92} --verify . %{SOURCE91}
# #
%patch100 -p1 %patch100 -p1
#%patch101 -p1 #%patch101 -p1
%patch103 -p1
%patch104 -p1 %patch104 -p1
%patch112 -p1 %patch112 -p1