gtk3: use gtk_window_group_get_current_grab instead of gtk_grab_get_current
now that we are using window groups, otherwise the problem of tdf#99604 comes back Change-Id: I7a940ea72bfd7fd4a7f68f1e60395d5014ce155c
This commit is contained in:
@@ -1440,8 +1440,9 @@ void GtkSalFrame::Show( bool bVisible, bool bNoActivate )
|
|||||||
m_nFloats++;
|
m_nFloats++;
|
||||||
if( ! getDisplay()->GetCaptureFrame() && m_nFloats == 1 )
|
if( ! getDisplay()->GetCaptureFrame() && m_nFloats == 1 )
|
||||||
{
|
{
|
||||||
|
GtkWindowGroup *pWindowGroup = gtk_window_get_group(GTK_WINDOW(m_pWindow));
|
||||||
GtkWidget* pGrabWidgetBeforeShowFloat;
|
GtkWidget* pGrabWidgetBeforeShowFloat;
|
||||||
while ((pGrabWidgetBeforeShowFloat = gtk_grab_get_current()))
|
while ((pGrabWidgetBeforeShowFloat = gtk_window_group_get_current_grab(pWindowGroup)))
|
||||||
{
|
{
|
||||||
m_aGrabWidgetsBeforeShowFloat.push_back(pGrabWidgetBeforeShowFloat);
|
m_aGrabWidgetsBeforeShowFloat.push_back(pGrabWidgetBeforeShowFloat);
|
||||||
gtk_grab_remove(pGrabWidgetBeforeShowFloat);
|
gtk_grab_remove(pGrabWidgetBeforeShowFloat);
|
||||||
|
Reference in New Issue
Block a user