Accepting request 245052 from home:michalsrb:branches:X11:XOrg
- u_tigervnc-check-shm-harder.patch * Check if SHM really works before deciding to use it. (bnc#890580) OBS-URL: https://build.opensuse.org/request/show/245052 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/tigervnc?expand=0&rev=36
This commit is contained in:
parent
f8d64d14e7
commit
e6fe369154
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 18 11:07:09 UTC 2014 - msrb@suse.com
|
||||
|
||||
- u_tigervnc-check-shm-harder.patch
|
||||
* Check if SHM really works before deciding to use it.
|
||||
(bnc#890580)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 4 10:37:08 UTC 2014 - msrb@suse.com
|
||||
|
||||
|
@ -109,12 +109,14 @@ Patch6: u_tigervnc-dont-send-ascii-control-characters.patch
|
||||
Patch7: u_tigervnc-ignore-epipe-on-write.patch
|
||||
Patch8: n_tigervnc-date-time.patch
|
||||
Patch9: U_include-vencrypt-only-if-any-subtype-present.patch
|
||||
Patch10: u_tigervnc-check-shm-harder.patch
|
||||
|
||||
# Xserver patches
|
||||
Patch10: tigervnc-1.2.80-fix-int-to-pointer.patch
|
||||
Patch11: u_aarch64-support.patch
|
||||
Patch12: N_xorg-server-xdmcp.patch
|
||||
Patch13: n_tigervnc-dont-build-gtf.patch
|
||||
Patch14: u_arch-Fix-image-and-bitmap-byte-order-for-ppc64le.patch
|
||||
Patch20: tigervnc-1.2.80-fix-int-to-pointer.patch
|
||||
Patch21: u_aarch64-support.patch
|
||||
Patch22: N_xorg-server-xdmcp.patch
|
||||
Patch23: n_tigervnc-dont-build-gtf.patch
|
||||
Patch24: u_arch-Fix-image-and-bitmap-byte-order-for-ppc64le.patch
|
||||
|
||||
%description
|
||||
TigerVNC is a high-performance, platform-neutral implementation of VNC (Virtual Network Computing),
|
||||
@ -150,13 +152,15 @@ fi
|
||||
%patch7 -p0
|
||||
%patch8 -p1
|
||||
%patch9 -p0
|
||||
%patch10 -p0
|
||||
|
||||
pushd unix/xserver
|
||||
patch -p1 < ../xserver114.patch
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
%patch14 -p1
|
||||
%patch20 -p1
|
||||
%patch21 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
%patch24 -p1
|
||||
popd
|
||||
|
||||
%build
|
||||
|
26
u_tigervnc-check-shm-harder.patch
Normal file
26
u_tigervnc-check-shm-harder.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: vncviewer/X11PixelBuffer.cxx
|
||||
===================================================================
|
||||
--- vncviewer/X11PixelBuffer.cxx (revision 5186)
|
||||
+++ vncviewer/X11PixelBuffer.cxx (working copy)
|
||||
@@ -158,6 +158,8 @@
|
||||
Bool pixmaps;
|
||||
XErrorHandler old_handler;
|
||||
Status status;
|
||||
+ Window test_window;
|
||||
+ GC test_gc;
|
||||
|
||||
if (!XShmQueryVersion(fl_display, &major, &minor, &pixmaps))
|
||||
return 0;
|
||||
@@ -187,6 +189,12 @@
|
||||
old_handler = XSetErrorHandler(XShmAttachErrorHandler);
|
||||
|
||||
XShmAttach(fl_display, shminfo);
|
||||
+ test_window = XCreateSimpleWindow(fl_display, XDefaultRootWindow(fl_display), 0, 0, width(), height(), 0, 0, 0);
|
||||
+ test_gc = XCreateGC(fl_display, test_window, 0, 0);
|
||||
+ XShmPutImage(fl_display, test_window, test_gc, xim, 0, 0, 0, 0, width(), height(), False);
|
||||
+ XFreeGC(fl_display, test_gc);
|
||||
+ XDestroyWindow(fl_display, test_window);
|
||||
+
|
||||
XSync(fl_display, False);
|
||||
|
||||
XSetErrorHandler(old_handler);
|
Loading…
Reference in New Issue
Block a user