wnck

Why wxframe isn't raised from a function called with global gtk binder?

好久不见. 提交于 2019-12-25 03:53:45
问题 Ok, why this simple app dosn't work. I've spent one day investigating this and got nothing. import wx, os import gtk import keybinder class FrameWithHotKey(wx.Frame): def __init__(self, *args, **kwargs): wx.Frame.__init__(self, *args, **kwargs) keybinder.bind("<Ctrl>period", self.toggle_shown) def toggle_shown(self): # windowNow id if self.IsShown(): self.Hide() else: self.Show() self.Raise() if __name__ == '__main__': app = wx.PySimpleApp() frame = FrameWithHotKey(None) app.MainLoop() I don

Set WM_CLASS (with wnck, xprop, or something else)

ぐ巨炮叔叔 提交于 2019-12-24 05:49:32
问题 I'm trying to group multiple Chrome standalone windows under the same launcher in Ubuntu 14.04. It doesn't seem to be possible simply to specify multiple WM_CLASS variables in the .desktop file (see comments on this answer). The first solution I hit on is to use xprop to change the WM_CLASS of the extra windows to be the same as a chosen master window, after a short delay. This works if I don't specify which window to change at the command line, let it give me a crosshair, and click on the

Why python Wnck window.activate(int(time.time()))

天涯浪子 提交于 2019-12-22 08:23:15
问题 This to me is VERY strange. Could someone please explain why the activate() function should want a timestamp? Wouldn't 99.9% of the time be NOW or ASAP or "At your earliest convenience"? And furthermore, if you try w.activate(0) you get this warning: Wnck-WARNING: Received a timestamp of 0; window activation may not function properly Every forum thread that I have read about this warning ends with no answer. But they all seem to indicate that the code does not work properly unless you

pygtk window with box that ignores all X(mouse)events (passes them through)

会有一股神秘感。 提交于 2019-12-18 17:25:47
问题 I'd like to do the following: Create a fullscreen, always on top pygtk window with a webkit widget displaying some html, but with a box that is completely transparent, so that the windows below are visible. (This seems to be possible: Is it possible to render web content over a clear background using WebKit?) What I'd like is to (sometimes) pass all mouse events that occur in the transparent box down to the windows below my application's window, so that I can interact with them normally. So

Why python Wnck window.activate(int(time.time()))

对着背影说爱祢 提交于 2019-12-05 15:35:27
This to me is VERY strange. Could someone please explain why the activate() function should want a timestamp? Wouldn't 99.9% of the time be NOW or ASAP or "At your earliest convenience"? And furthermore, if you try w.activate(0) you get this warning: Wnck-WARNING: Received a timestamp of 0; window activation may not function properly Every forum thread that I have read about this warning ends with no answer. But they all seem to indicate that the code does not work properly unless you actually put in the timestamp. And if you put in the (0), things don't work, and you get the warning. However,