From 178330862395a34c99242eda9c654ca92d6c75a5 Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 29 Jun 2020 20:21:47 +0200 Subject: [PATCH] Opening a popup always raise it to the pop now. [GB.GTK] * BUG: Opening a popup always raises it to the pop now. [GB.GTK3] * BUG: Opening a popup always raises it to the pop now. --- gb.gtk/src/gmainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gb.gtk/src/gmainwindow.cpp b/gb.gtk/src/gmainwindow.cpp index cc24a92c8..b770f4ae8 100644 --- a/gb.gtk/src/gmainwindow.cpp +++ b/gb.gtk/src/gmainwindow.cpp @@ -882,6 +882,8 @@ void gMainWindow::showPopup(int x, int y) move(x, y); gtk_window_resize(GTK_WINDOW(border), bufW, bufH); + raise(); + setFocus(); //reparent(NULL, x, y, GTK_WINDOW_POPUP);