From b1abcff44d9ae164262fdb8e25a952cf62662e98 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 17 Sep 2020 16:01:24 +0000 Subject: [PATCH] CtrlCore: Gtk3 LXDesktop fix git-svn-id: svn://ultimatepp.org/upp/trunk@15063 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/GtkCreate.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/uppsrc/CtrlCore/GtkCreate.cpp b/uppsrc/CtrlCore/GtkCreate.cpp index 1267b721b..e60c5d02a 100644 --- a/uppsrc/CtrlCore/GtkCreate.cpp +++ b/uppsrc/CtrlCore/GtkCreate.cpp @@ -4,7 +4,7 @@ namespace Upp { -#define LLOG(x) // DLOG(x) +#define LLOG(x) // DLOG(x) void Ctrl::Create(Ctrl *owner, bool popup) { @@ -72,19 +72,18 @@ void Ctrl::Create(Ctrl *owner, bool popup) g_signal_connect(top->im_context, "commit", G_CALLBACK(IMCommit), (gpointer)(uintptr_t)top->id); WndShow(IsShown()); - + + SweepConfigure(true); FocusSync(); if(!popup) SetWndFocus(); - SweepConfigure(true); + activeCtrl = this; DndInit(); StateH(OPEN); - activeCtrl = this; - GdkModifierType mod; Point m = GetMouseInfo(gdk(), mod); r = GetWndScreenRect().GetSize();