hi, Are there any issues which must be considered when switching back from DGA2 to normal (window-)mode under XFree86 4.2.0?
I ask because I run into the following problems: - It happens when switching back from DGA2 that the state of the alt key remains afterward, which makes X unusable, as all key- and mouse events are processed with the alt-key flag set (although the key isn't pressed anymore). Usually window managers do their window-action magic, when the alt key is pressed. Usage is no further possible. Switching forth and back to DGA2 is bound to a combination with Alt and another key (Alt-d). I don't do any magic like Grabbing keyboard or Pointer. - Switching from DGA2 to window mode sometimes results in (client-)segfault in function XFilterEvent(...). This happens especially when XDGASetMode is issued within a (keyboard-)callback function. The callback is installed during window-mode with GTK+ primitives. XFilterEvent() is called from the GTK+/GDK libraries. The client is a Gnome/GTK+ (Gnome-1.4, GTK+ 1.2.9) application. I use: XFree86 Version 4.2.0 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 18 January 2002 [...] Build Operating System: Linux 2.4.9-13smp i686 [ELF] [...] (==) ServerLayout "XFree86 Configured" (**) |-->Screen "Screen0" (0) (**) | |-->Monitor "Iiyama A901AT" (**) | |-->Device "Matrox MGA 2064W" which is a Matrox Millenium II with 4mb RAM. Linux-2.4.19 on a severly upgraded RedHat 7.0. The application is a versatile commodore emulator (Vice) featuring some basic gnome support and (on explicit request at compilation time with --enable-fullscreen) DGA2 support for smooth scroll animations by double buffering the emulation video rendering. Refer to version 1.10 under http://viceteam.bei.t-online.de. I digged through the xpert archives and found one maybe related posting: > From [EMAIL PROTECTED] Tue Jun 11 13:31:43 2002 > From: [EMAIL PROTECTED] (Egbert Eich) > Date: Tue, 11 Jun 2002 14:31:43 +0200 (MEST) > Subject: [Xpert]DGA keyboard state vs. Xkb > Message-ID: <[EMAIL PROTECTED]> > > There is a long standing issue with DGA and xkb: > > When handling the keyboard from inside DGA it tries to keep the > core keyboard state in sync. This is sufficient if no xkb > extension is active. > If the xkb extension is active however its internal state > can get out of sync with unpredictable results if the core > state has changed between start and exit of DGA mode. > > I worked around this by simply not updating the core state > while inside of DGA if the xkb extension is active. > > Is there any deeper reason why DGA keeps the core keyboard > state up to date or is this rather cosmetic? > > Egbert. > Could this topic be related? Is this fixed in XFree86 4.2.1? A short test with XFree86-4.2.1 shows no real improvement regarding this problem. Big thanx in advance! I'm quite clueless how to cope with that problems. The application in DGA2 mode is quite useless when those instabilities remain. However, the smooth animations are worth investigating the issues further. bye, martin _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
