Comment 13 for bug 948371

Revision history for this message
Mathieu Comandon (strycore) wrote : Re: After closing last window on workspace, the keyboard doesn't react at any keypress

Got it

I've located the problem and it is related to sticky windows. The following piece of code makes the bug reproducible all the time.

import gtk

class StickyWindow(gtk.Window):
    def __init__(self):
        super(StickyWindow, self).__init__()
        label = gtk.Label("Hello")
        label.show()
        self.add(label)
        self.set_default_size(200, 200)

        self.set_property('accept-focus', False)

        self.show()
        self.stick()

    def main(self):
        gtk.main()

if __name__ == "__main__":
    sticky = StickyWindow()
    sticky.main()