This commit is contained in:
Matthias Clasen 2008-09-06 02:11:01 +00:00
parent 2091fa83c3
commit f8180a52a0
4 changed files with 23 additions and 8 deletions

View File

@ -1 +1 @@
libxklavier-3.6.tar.bz2
libxklavier-3.7.tar.bz2

View File

@ -1,7 +1,7 @@
Summary: library providing high-level API for X Keyboard Extension
Name: libxklavier
Version: 3.6
Release: 2%{?dist}
Version: 3.7
Release: 1%{?dist}
License: LGPLv2+
Group: Development/Libraries
URL: http://gswitchit.sourceforge.net/
@ -12,11 +12,9 @@ BuildRequires: libX11-devel
BuildRequires: libxml2-devel
BuildRequires: glib2-devel >= 2.6.0
BuildRequires: iso-codes-devel
Source: http://download.gnome.org/sources/libxklavier/3.6/libxklavier-3.6.tar.bz2
Source: http://download.gnome.org/sources/libxklavier/3.7/libxklavier-3.7.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: libxklavier-2.1-vnc-bug.patch
%description
libxklavier is a library providing high-level API for X Keyboard Extension
known as XKB. This library is intended to support XFree86 and other
@ -36,7 +34,6 @@ Libraries, include files, etc you can use to develop libxklavier applications.
%prep
%setup -q
%patch0 -p1 -b .vnc-bug
%build
@ -72,6 +69,9 @@ rm -rf %{buildroot}
%{_datadir}/gtk-doc/html/libxklavier/
%changelog
* Fri Sep 5 2008 Matthias Clasen <mclasen@redhat.com> - 3.7-1
- Update to 3.7
* Fri Jun 27 2008 Ray Strode <rstrode@redhat.com> - 3.6-2
- Apply upstream patch to fix libxklavier crash (bug 452966)

View File

@ -1 +1 @@
eff30f70e4c082e2aa6a0fbecc15253b libxklavier-3.6.tar.bz2
ee167645becd11309d64c6ff3a1600ff libxklavier-3.7.tar.bz2

15
vnc-bug.patch Normal file
View File

@ -0,0 +1,15 @@
diff -up libxklavier-3.6/libxklavier/xklavier_util.c.vnc-bug libxklavier-3.6/libxklavier/xklavier_util.c
--- libxklavier-3.6/libxklavier/xklavier_util.c.vnc-bug 2008-03-01 16:42:49.000000000 -0500
+++ libxklavier-3.6/libxklavier/xklavier_util.c 2008-08-30 12:43:27.000000000 -0400
@@ -118,7 +118,10 @@ xkl_get_debug_window_title(XklEngine * e
static gchar sname[33];
gchar *name;
strcpy(sname, "NULL");
- if (win != (Window) NULL) {
+
+ if (win == (Window *) PointerRoot) {
+ strcpy(sname, "ROOT");
+ } else if (win != (Window *) None) {
name = xkl_engine_get_window_title(engine, win);
if (name != NULL) {
snprintf(sname, sizeof(sname), "%.32s", name);