Kaydet (Commit) 9ce8f735 authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: re-enable when in backdrop and receive delete signal

Change-Id: I845a3eda41263a07e1e69eb6ff37ff5ab2576905
üst 0ccefa0c
......@@ -4020,6 +4020,14 @@ gboolean GtkSalFrame::signalDelete( GtkWidget*, GdkEvent*, gpointer frame )
{
GtkSalFrame* pThis = static_cast<GtkSalFrame*>(frame);
#if GTK_CHECK_VERSION(3,0,0)
//If we went into the backdrop we disabled the toplevel window, if we
//receive a delete here, re-enable so we can process it
bool bBackDrop = (gtk_widget_get_state_flags(GTK_WIDGET(pThis->m_pWindow)) & GTK_STATE_FLAG_BACKDROP);
if (bBackDrop)
pThis->GetWindow()->Enable();
#endif
pThis->CallCallback( SALEVENT_CLOSE, NULL );
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment