mhsabbagh / green-recorder

A simple screen recorder for Linux desktop. Supports Wayland & Xorg
GNU General Public License v3.0
616 stars 118 forks source link

Blank settings window #54

Closed ettavolt closed 6 years ago

ettavolt commented 6 years ago

... if settings window is closed via window control, not 'close' button at the bottom. 3.0.1.2.r2.ge7f877d

mhsabbagh commented 6 years ago

Which is why we included a close button. This is a weird bug in GTK. Not sure about a fix for it.

ettavolt commented 6 years ago

What about catching delete-event? There is even a premade handler.

P.S. It may be worth to make it modal.

mhsabbagh commented 6 years ago

For some reason they don't seem to work with me. Catching delete-even changed nothing and preferenceswindow.hide_on_delete() didn't add anything. Not sure if I am doing it wrong or.

ettavolt commented 6 years ago

Turns out it's not that simple under python. This way it seem to work:

def hide_on_delete(widget, event):
    widget.hide()
    return True

preferenceswindow.connect("delete-event", hide_on_delete)