fix for blank client area after restoring a "rolled up" tlw
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -366,13 +366,20 @@ gtk_frame_map_callback( GtkWidget* widget,
|
|||||||
win->m_width = rect.width;
|
win->m_width = rect.width;
|
||||||
win->m_height = rect.height;
|
win->m_height = rect.height;
|
||||||
decorSize = size;
|
decorSize = size;
|
||||||
wxSizeEvent event(win->GetSize(), win->GetId());
|
|
||||||
event.SetEventObject(win);
|
|
||||||
win->GetEventHandler()->ProcessEvent(event);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
win->SetIconizeState(false);
|
win->SetIconizeState(false);
|
||||||
|
|
||||||
|
// Because GetClientSize() returns (0,0) when IsIconized() is true,
|
||||||
|
// a size event must be sent here, just in case GetClientSize() was
|
||||||
|
// called while iconized.
|
||||||
|
// This specifically happens when restoring a tlw that was "rolled up"
|
||||||
|
// with some WMs.
|
||||||
|
wxSizeEvent event(win->GetSize(), win->GetId());
|
||||||
|
event.SetEventObject(win);
|
||||||
|
win->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user