[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [kwin] [Bug 335367] kwin gets stacking order and focus wrong for simple gtk+-2.0 testcase program
From: Stefan Westerfeld <stefan () space ! twc ! de>
Date: 2014-06-03 13:09:13
Message-ID: bug-335367-17878-uzv8regxjs () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=335367
--- Comment #4 from Stefan Westerfeld <stefan@space.twc.de> ---
I've implemented the XSendEvent "_NET_ACTIVE_WINDOW" method in gst123 git now,
so my kwin specific problem is solved.
As for how to do this with gtk+-2.0, the only function I found that sends such
a message is called gdk_window_focus(). However, in this function, the data
members are initialized like this:
xclient.data.l[0] = 1; /* requestor type; we're an app */
xclient.data.l[1] = timestamp;
xclient.data.l[2] = None; /* currently active window */
xclient.data.l[3] = 0;
xclient.data.l[4] = 0;
which didn't do the trick to make my testcase work (changing xclient.data.l[0]
to 2 is is necessary). So unless kwin decides to consider src = 1 good enough
for raising the window, or gtk+ offers a way to send these events with
xclient.data.l[0] = 2, I'll have to send the event myself in gst123.
--
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic