Bug 38481 - WindowMaker titlebar flickering issues with GTK2 applications
Bug#: 38481 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnustep@gentoo.org Reported By: prox@prolixium.com
Component: Applications
URL: 
Summary: WindowMaker titlebar flickering issues with GTK2 applications
Keywords:  
Status Whiteboard: 
Opened: 2004-01-16 21:27 0000
Description:   Opened: 2004-01-16 21:27 0000
In WindowMaker, it seems that GTK2 applications can cause a focus/flicker
problem when switching workspaces.  For example, when the user switches to a
workspace containing overlapping GTK2 windows, the titlebars flicker and focus
seems to infinitely jump between the GTK2 windows.  This bug manifests itself
when sloppy focus is enabled. (Input focus mode: Auto)

I believe this is a known issue, but has not yet been resolved by the
WindowMaker folks.  Debian includes a patch in their package to resolve this
issue, as noted in the changelog, which can be found at the following address:

http://packages.debian.org/changelogs/pool/main/w/wmaker/wmaker_0.80.1-8/changelog

Reproducible: Sometimes
Steps to Reproduce:
1.Open multiple overlapping GTK2 windows (eg., MozillaFirebird), positioning
the mouse above the topmost window
2.Switch to another workspace, without moving the mouse
3.Switch back to the workspace containing the GTK2 windows

Actual Results:  
In roughly 3/4 of the trials, the window focus jumped between the two
overlapping GTK2 windows, causing the title bar to exhibit a flickering effect.
 In some of the trials, this ceased after a couple of seconds, and gave focus
to
the bottom window.

Expected Results:  
Given the topmost GTK2 window focus.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.24)
=================================================================
System uname: 2.4.24 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo http://gentoo.noved.org/
rsync://gentoo.seren.com/gentoo http://gentoo.seren.com/gentoo
http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://acm.cs.rpi.edu/gentoo-portage"
USE="X aalib acpi apm avi berkdb cardbus cdr crypt cups dvd encode esd
foomaticdb gd gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde ldap libg++
libwww
mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pcmcia
pdflib perl png pnp python qt quicktime readline scanner sdl slang spell sse
ssl
tcpd truetype x86 xml2 xmms xv zlib video_cards_radeon"

------- Comment #1 From Dizzy 2004-03-02 06:19:23 0000 -------
check this out:
http://blog.sergiocarvalho.com/7448/

------- Comment #2 From Matt Taylor 2004-05-02 22:54:20 0000 -------
I see this with Bittorrent and gaim all the time.  Its really annoying and
leaves me wondering what is using 100% of my cpu all the time.  I don't use
sloppy foucus though.  And I only see it when new windows are opening, not when
switching desktops.  I'll test the patch and update this bug.

------- Comment #3 From Nick Hadaway 2004-05-03 11:14:02 0000 -------
I will also test the patches.  I have seen this before but I never thought much
about it.  I'll get this fix in asap if it does what it's supposed to.

------- Comment #4 From Matt Taylor 2004-05-04 22:47:40 0000 -------
Well I've been using the patch for 3 days and I haven't seen the flickering.  I
did probably 20 - 30 actions that used to cause it frequently, and no
flickering.

------- Comment #5 From Matt Taylor 2004-05-04 22:48:29 0000 -------
er... make that 2 days...silly timezones

------- Comment #6 From R. Bosch 2004-06-07 04:26:48 0000 -------
I Used the debian patch in the past and I can testify that the flickering is
gone.
I used it for 6 months or so....

------- Comment #7 From Nick Hadaway 2004-06-07 06:42:56 0000 -------
-r4 is now in portage and includes this fix.  Thanks for being so patient while
this made it's way into portage.  If you find any problems, feel free to
re-open this bug.