[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#301971: marked as done (KGlobalAccel conflicts with Mode_switch handling on SunRay)



Your message dated Mon, 25 Apr 2005 23:32:23 -0400
with message-id <E1DQGoB-0001qW-00@newraff.debian.org>
and subject line Bug#301971: fixed in kdelibs 4:3.3.2-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 29 Mar 2005 12:29:09 +0000
>From yoush@cs.msu.su Tue Mar 29 04:29:09 2005
Return-path: <yoush@cs.msu.su>
Received: from zigzag.lvk.cs.msu.su [158.250.17.23] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DGFqH-0005rP-00; Tue, 29 Mar 2005 04:29:09 -0800
Received: from nikita by zigzag.lvk.cs.msu.su with local (Exim 4.50)
	id 1DGFqD-00081b-Jh
	for submit@bugs.debian.org; Tue, 29 Mar 2005 16:29:05 +0400
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Nikita V. Youshchenko" <yoush@cs.msu.su>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: KGlobalAccel conflicts with Mode_switch handling on SunRay
X-Mailer: reportbug 3.8
Date: Tue, 29 Mar 2005 16:29:05 +0400
Message-Id: <E1DGFqD-00081b-Jh@zigzag.lvk.cs.msu.su>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: kdelibs4
Version: 4:3.3.2-4.0.2
Severity: normal
Tags: patch

Kde global accelerators (like Ctrl+Fn to switch desktops, Alt_F2 for Run
Command, etc) don't work on SunRay terminals, served from a Debian Linux
server, if keyboard is in Russian mode. Accelerators work OK when
keyboard is in English mode.

This is caused by the way how SunRay's handle keyboard mode switch. The
X server used (Xnewt) does not support XKB. The only way to implement
two-language keyboard is to write a xmodmap file, that defines 4-keysym
mappings, and maps Mode_switch to mod3 (note that only mapping to mod3
works, mapping to any other X modifier does not).

This makes most things work correctly, but not KGlobalAccel, which
becomes confused by mod3 bit set in state of incoming X
KeyPress/KeyRelease events.

This may be fixed by applying the following patch to libkdecore (patch
done for KDE 3.3, but almost same applies to KDE 3.4).

diff -urN kdecore.orig/kglobalaccel_x11.cpp kdecore/kglobalaccel_x11.cpp
--- kdecore.orig/kglobalaccel_x11.cpp	2004-10-03 11:40:15.000000000 +0400
+++ kdecore/kglobalaccel_x11.cpp	2005-03-29 15:21:45.461660064 +0400
@@ -49,7 +49,8 @@
 	g_keyModMaskXOnOrOff =
 			KKeyServer::modXLock() |
 			KKeyServer::modXNumLock() |
-			KKeyServer::modXScrollLock();
+			KKeyServer::modXScrollLock() |
+			KKeyServer::modXModeSwitch();
 	//kdDebug() << "g_keyModMaskXAccel = " << g_keyModMaskXAccel
 	//	<< "g_keyModMaskXOnOrOff = " << g_keyModMaskXOnOrOff << endl;
 }
diff -urN kdecore.orig/kkeynative.h kdecore/kkeynative.h
--- kdecore.orig/kkeynative.h	2003-08-18 12:45:04.000000000 +0400
+++ kdecore/kkeynative.h	2005-03-29 15:18:46.000000000 +0400
@@ -235,6 +235,13 @@
 	 */
 	static uint modXScrollLock();
 
+	/**
+	 * Returns the X11 Mode_switch modifier mask/flag.
+	 * @return the X11 Mode_switch modifier mask/flag.
+	 * @see accelModMaskX()
+	 */
+	static uint modXModeSwitch();
+
  private:
 	uint m_code, m_mod, m_sym;
 	KKeyNativePrivate* d;
diff -urN kdecore.orig/kkeyserver_x11.cpp kdecore/kkeyserver_x11.cpp
--- kdecore.orig/kkeyserver_x11.cpp	2004-05-23 00:55:09.000000000 +0400
+++ kdecore/kkeyserver_x11.cpp	2005-03-29 15:21:03.000000000 +0400
@@ -283,13 +283,13 @@
 //---------------------------------------------------------------------
 static bool g_bInitializedMods, g_bInitializedVariations, g_bInitializedKKeyLabels;
 static bool g_bMacLabels;
-static uint g_modXNumLock, g_modXScrollLock;
+static uint g_modXNumLock, g_modXScrollLock, g_modXModeSwitch;
 
 bool initializeMods()
 {
 	XModifierKeymap* xmk = XGetModifierMapping( qt_xdisplay() );
 
-	g_rgModInfo[3].modX = g_modXNumLock = g_modXScrollLock = 0;
+	g_rgModInfo[3].modX = g_modXNumLock = g_modXScrollLock = g_modXModeSwitch = 0;
 
         int min_keycode, max_keycode;
         int keysyms_per_keycode = 0;
@@ -313,6 +313,7 @@
 			case XK_Meta_L:
 			case XK_Meta_R:      if( !g_rgModInfo[3].modX ) g_rgModInfo[3].modX = mask; break; // Win alternate
 			case XK_Scroll_Lock: g_modXScrollLock = mask; break;  // Normally Mod5Mask
+			case XK_Mode_switch: g_modXModeSwitch = mask; break;
 		}
 	}
 
@@ -533,6 +534,7 @@
 uint modXNumLock()    { if( !g_bInitializedMods ) { initializeMods(); } return g_modXNumLock; }
 uint modXWin()        { if( !g_bInitializedMods ) { initializeMods(); } return g_rgModInfo[3].modX; }
 uint modXScrollLock() { if( !g_bInitializedMods ) { initializeMods(); } return g_modXScrollLock; }
+uint modXModeSwitch() { if( !g_bInitializedMods ) { initializeMods(); } return g_modXModeSwitch; }
 
 uint accelModMaskX()
 {

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (620, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686-smp
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages kdelibs4 depends on:
ii  kdelibs-bin            4:3.3.2-4.0.2     KDE core binaries
ii  kdelibs-data           4:3.3.2-4         KDE core shared data
ii  libart-2.0-2           2.3.17-1          Library of functions for 2D graphi
ii  libarts1               1.3.2-2           aRts Sound system
ii  libasound2             1.0.8-3           ALSA library
ii  libaspell15            0.60.2+20050121-1 The GNU Aspell spell-checker runti
ii  libaudio2              1.7-2             The Network Audio System (NAS). (s
ii  libaudiofile0          0.2.3-4           The Audiofile Library
ii  libbz2-1.0             1.0.2-1           A high-quality block-sorting file 
ii  libc6                  2.3.2.ds1-20      GNU C Library: Shared libraries an
ii  libcupsys2-gnutls10    1.1.23-7          Common UNIX Printing System(tm) - 
ii  libesd0                0.2.35-2          Enlightened Sound Daemon - Shared 
ii  libfam0c102            2.7.0-6           client library to control the FAM 
ii  libgcc1                1:3.4.3-6         GCC support library
ii  libglib2.0-0           2.6.3-1           The GLib library of C routines
ii  libice6                4.3.0.dfsg.1-10   Inter-Client Exchange library
ii  libidn11               0.5.13-1.0        GNU libidn library, implementation
ii  libjack0.80.0-0        0.99.0-6          JACK Audio Connection Kit (librari
ii  libjasper-1.701-1      1.701.0-2         The JasPer JPEG-2000 runtime libra
ii  libjpeg62              6b-9              The Independent JPEG Group's JPEG 
ii  libmad0                0.15.1b-1         MPEG audio decoder library
ii  libogg0                1.1.0-1           Ogg Bitstream Library
ii  libopenexr2            1.2.2-1           runtime files for the OpenEXR imag
ii  libpcre3               4.5-1.1           Perl 5 Compatible Regular Expressi
ii  libpng12-0             1.2.8rel-1        PNG library - runtime
ii  libqt3c102-mt          3:3.3.3-8         Qt GUI Library (Threaded runtime v
ii  libsm6                 4.3.0.dfsg.1-10   X Window System Session Management
ii  libstdc++5             1:3.3.5-8         The GNU Standard C++ Library v3
ii  libtiff4               3.7.1-4           Tag Image File Format (TIFF) libra
ii  libvorbis0a            1.0.1-1           The Vorbis General Audio Compressi
ii  libvorbisenc2          1.0.1-1           The Vorbis General Audio Compressi
ii  libvorbisfile3         1.0.1-1           The Vorbis General Audio Compressi
ii  libx11-6               4.3.0.dfsg.1-10   X Window System protocol client li
ii  libxext6               4.3.0.dfsg.1-10   X Window System miscellaneous exte
ii  libxml2                2.6.16-4          GNOME XML library
ii  libxrender1            0.8.3-7           X Rendering Extension client libra
ii  libxslt1.1             1.1.12-6          XSLT processing library - runtime 
ii  libxt6                 4.3.0.dfsg.1-10   X Toolkit Intrinsics
ii  xbase-clients          4.3.0.dfsg.1-10   miscellaneous X clients
ii  xlibs                  4.3.0.dfsg.1-10   X Keyboard Extension (XKB) configu
ii  zlib1g                 1:1.2.2-3         compression library - runtime

-- no debconf information

---------------------------------------
Received: (at 301971-close) by bugs.debian.org; 26 Apr 2005 03:52:30 +0000
>From katie@ftp-master.debian.org Mon Apr 25 20:52:30 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DQH7e-0006qk-00; Mon, 25 Apr 2005 20:52:30 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DQGoB-0001qW-00; Mon, 25 Apr 2005 23:32:23 -0400
From: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
To: 301971-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#301971: fixed in kdelibs 4:3.3.2-5
Message-Id: <E1DQGoB-0001qW-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 25 Apr 2005 23:32:23 -0400
Delivered-To: 301971-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: kdelibs
Source-Version: 4:3.3.2-5

We believe that the bug you reported is fixed in the latest version of
kdelibs, which is due to be installed in the Debian FTP archive:

kdelibs-bin_3.3.2-5_i386.deb
  to pool/main/k/kdelibs/kdelibs-bin_3.3.2-5_i386.deb
kdelibs-data_3.3.2-5_all.deb
  to pool/main/k/kdelibs/kdelibs-data_3.3.2-5_all.deb
kdelibs4-dev_3.3.2-5_i386.deb
  to pool/main/k/kdelibs/kdelibs4-dev_3.3.2-5_i386.deb
kdelibs4-doc_3.3.2-5_all.deb
  to pool/main/k/kdelibs/kdelibs4-doc_3.3.2-5_all.deb
kdelibs4_3.3.2-5_i386.deb
  to pool/main/k/kdelibs/kdelibs4_3.3.2-5_i386.deb
kdelibs_3.3.2-5.diff.gz
  to pool/main/k/kdelibs/kdelibs_3.3.2-5.diff.gz
kdelibs_3.3.2-5.dsc
  to pool/main/k/kdelibs/kdelibs_3.3.2-5.dsc
kdelibs_3.3.2-5_all.deb
  to pool/main/k/kdelibs/kdelibs_3.3.2-5_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 301971@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> (supplier of updated kdelibs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 22 Apr 2005 11:21:11 -0400
Source: kdelibs
Binary: kdelibs4 kdelibs-bin kdelibs kdelibs4-doc kdelibs-data kdelibs4-dev
Architecture: source i386 all
Version: 4:3.3.2-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Description: 
 kdelibs    - KDE core libraries metapackage
 kdelibs-bin - KDE core binaries
 kdelibs-data - KDE core shared data
 kdelibs4   - KDE core libraries
 kdelibs4-dev - KDE core libraries (development files)
 kdelibs4-doc - KDE core library documentation
Closes: 301971 304465
Changes: 
 kdelibs (4:3.3.2-5) unstable; urgency=medium
 .
   +++ Changes by Christopher Martin:
 .
   * KDE_3_3_BRANCH update. Includes fixes for CAN-2005-1046, a series of
     vulnerabilities involving improper input validation for image files,
     potentially resulting in arbitrary code execution. (Closes: #304465)
 .
   * Add GFDL to debian/copyright.
 .
   * Add another kaccel patch that fixes non-English keyboards on
     SunRay terminals. Thanks to Nikita Youshchenko. (Closes: #301971)
Files: 
 302d5be112caad72df4ee219b471033e 1302 libs optional kdelibs_3.3.2-5.dsc
 6e6cc22ea66e784da55d64fffed9cd99 402866 libs optional kdelibs_3.3.2-5.diff.gz
 dcd0c521a4681f6560afafb06f628f3d 863424 libs optional kdelibs-bin_3.3.2-5_i386.deb
 4b316b6e243d43dc6895b92f910e877d 8202038 libs optional kdelibs4_3.3.2-5_i386.deb
 eb6e3a32dab1a3010ba71ab8d6cb6941 1239838 libdevel optional kdelibs4-dev_3.3.2-5_i386.deb
 1d8d240dfde8fed60157b8da61730bcd 27608 kde optional kdelibs_3.3.2-5_all.deb
 bcd465f6de994d1512b518ec53514346 7093826 libs optional kdelibs-data_3.3.2-5_all.deb
 6859715d1f014bd1ad337a85e3e3f7ab 11531790 doc optional kdelibs4-doc_3.3.2-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Signed by Isaac Clerencia <isaac@warp.es>

iD8DBQFCbTTAQET2GFTmct4RAv5bAJ9X6C8V+E+SN86od6prJKO6ilYPbACffW+7
u3+ocxx4I/d5qBnYNR3o0js=
=8ue0
-----END PGP SIGNATURE-----



Reply to: