From kde-bugs-dist Mon May 26 12:47:47 2014 From: Stefan Westerfeld Date: Mon, 26 May 2014 12:47:47 +0000 To: kde-bugs-dist Subject: [kwin] [Bug 335367] New: kwin gets stacking order and focus wrong for simple gtk+-2.0 testcase progr Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=140110847309536 https://bugs.kde.org/show_bug.cgi?id=335367 Bug ID: 335367 Summary: kwin gets stacking order and focus wrong for simple gtk+-2.0 testcase program Classification: Unclassified Product: kwin Version: 4.11.9 Platform: Ubuntu Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: kwin-bugs-null@kde.org Reporter: stefan@space.twc.de I'm working on the gst123 media player, which is written using gtk+-2.0. In some cases the stacking order and input focus kwin assigns is not the one that seems logical to me. To spare you the work to actually test with real media files against the gst123 program, I isolated the problem and produced a simple testcase, called test-show-hide[.cc]. It works like this: - compile it - start test-show-hide in a maximized konsole window - type a key (such as x) * a window will open, on top of the other windows, with focus (so far thats what I'd expect) - type a key * the window will close (thats expected, too) - type a key again * kwin behaves unexepected here: I'd assume thet a window opens on top of the other windows with focus, but the window will open *behind* the maximized konsole window, and *without input focus* It wouldn't be much of a problem if only the testcase was affected, but the same problem occures in gst123 when stepping from song/video to song/video in the playlist. I'll attach the source code of test-show-hide. Other window managers handle this program just fine. On kubuntu 14.04 "trusty": test-show-hide built against gtk+-2.0: 2.24.23 It fails with kwin: Qt: 4.8.6 KDE: 4.13.0 KWin: 4.11.9 It works with: metacity 2.34.13 sawfish version 1.5.3 On ubuntu 12.04 "precise": test-show-hide built against gtk+-2.0: 2.24.10 * It fails with kwin: Qt: 4.8.1 KDE Development Platform: 4.8.5 (4.8.5) KWin: 4.8.5 (4.8.5) * It works with: metacity 2.34.1 sawfish version 1.5.3 Reproducible: Always -- You are receiving this mail because: You are watching all bug changes.