From kde-bugs-dist Tue Jun 03 13:09:13 2014 From: Stefan Westerfeld Date: Tue, 03 Jun 2014 13:09:13 +0000 To: kde-bugs-dist Subject: [kwin] [Bug 335367] kwin gets stacking order and focus wrong for simple gtk+-2.0 testcase program Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=140180096321972 https://bugs.kde.org/show_bug.cgi?id=335367 --- Comment #4 from Stefan Westerfeld --- 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.