update code
This commit is contained in:
commit
aaf9d63373
33
0001-Switch-to-using-dixChangeWindowProperty.patch
Normal file
33
0001-Switch-to-using-dixChangeWindowProperty.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From 8706f60ab457867c120dd44e812b8fadc2be7179 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Thu, 14 Jan 2016 10:30:40 +1000
|
||||||
|
Subject: [PATCH xf86-video-dummy] Switch to using dixChangeWindowProperty
|
||||||
|
|
||||||
|
eb36924ead40564325aa56d54a973dc8fb4eae83 removed ChangeWindowProperty from the
|
||||||
|
server.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
|
||||||
|
---
|
||||||
|
src/dummy_driver.c | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
|
||||||
|
index 470e125..9d4d5bf 100644
|
||||||
|
--- a/src/dummy_driver.c
|
||||||
|
+++ b/src/dummy_driver.c
|
||||||
|
@@ -790,8 +790,9 @@ DUMMYCreateWindow(WindowPtr pWin)
|
||||||
|
if (! ValidAtom(VFB_PROP))
|
||||||
|
VFB_PROP = MakeAtom(VFB_PROP_NAME, strlen(VFB_PROP_NAME), 1);
|
||||||
|
|
||||||
|
- ret = ChangeWindowProperty(pWinRoot, VFB_PROP, XA_STRING,
|
||||||
|
- 8, PropModeReplace, (int)4, (pointer)"TRUE", FALSE);
|
||||||
|
+ ret = dixChangeWindowProperty(serverClient, pWinRoot, VFB_PROP,
|
||||||
|
+ XA_STRING, 8, PropModeReplace,
|
||||||
|
+ (int)4, (pointer)"TRUE", FALSE);
|
||||||
|
if( ret != Success)
|
||||||
|
ErrorF("Could not set VFB root window property");
|
||||||
|
dPtr->prop = TRUE;
|
||||||
|
--
|
||||||
|
2.9.3
|
||||||
|
|
||||||
BIN
xf86-video-dummy-0.3.7.tar.bz2
Normal file
BIN
xf86-video-dummy-0.3.7.tar.bz2
Normal file
Binary file not shown.
46
xorg-x11-drv-dummy.spec
Normal file
46
xorg-x11-drv-dummy.spec
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
%global moduledir %(pkg-config xorg-server --variable=moduledir )
|
||||||
|
|
||||||
|
%undefine _hardened_build
|
||||||
|
|
||||||
|
Name: xorg-x11-drv-dummy
|
||||||
|
Version: 0.3.7
|
||||||
|
Release: 9
|
||||||
|
License: MIT
|
||||||
|
Summary: Xorg X11 dummy video driver
|
||||||
|
URL: https://www.x.org
|
||||||
|
Source0: https://ftp.x.org/pub/individual/driver/xf86-video-dummy-%{version}.tar.bz2
|
||||||
|
Patch0: 0001-Switch-to-using-dixChangeWindowProperty.patch
|
||||||
|
|
||||||
|
BuildRequires: xorg-x11-server-devel autoconf automake libtool
|
||||||
|
|
||||||
|
Requires: Xorg %(xserver-sdk-abi-requires ansic) Xorg %(xserver-sdk-abi-requires videodrv)
|
||||||
|
|
||||||
|
%description
|
||||||
|
X.Org X11 dummy video driver.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n xf86-video-dummy-%{version} -p1
|
||||||
|
autoreconf -ivf
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
%delete_la
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license COPYING
|
||||||
|
%{moduledir}/drivers/dummy_drv.so
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README ChangeLog
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.7-9
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user