Thread: can't detect minimize with unity and pygtk
with gtk, should possible determine when application window minimized , whether application window minimized. xfce, lxde, , gnome2 (haven't tried gnome3), works expected: when minimize button clicked, window-state-event fires indicates iconified state has changed. when window minimized, possible use gtk.widget.get_state() determine case.
started using unity, , noticed pygtk application wrote not receive window-state-event when window minimized, , not indicate window minimized in return gtk.widget.get_state(). when window minimized due call gtk.window.iconify, no window-state-event fires, possible determine whether window minimized gtk.window.iconify_initially.
application can configured use status tray icon, , when tray icon in use, left click on icon meant minimize/unminimize window , window meant hidden launcher bar when minimized. unity, can't figure out when hide launcher icon due missing window-state-event, , when minimize button used, takes 2 status icon clicks unminimize (first click erroneously calls iconify, second click correctly calls deiconify).
know how reliable notification of minimize in pygtk when using unity? , how determine whether window minimized? there way make existing mechanisms work correctly?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk can't detect minimize with unity and pygtk
Ubuntu
Comments
Post a Comment