Fixed spurious drag going from the menu

This commit is contained in:
Mirek Fidler 2026-01-16 13:51:29 +01:00
parent e959dddf05
commit d4b318922b
2 changed files with 3 additions and 2 deletions

View file

@ -128,7 +128,7 @@ void Ctrl::SetCustomBarDragPrevention()
void Ctrl::SyncPreventCustomBarDragPrevention()
{
TopWindow *tw = dynamic_cast<TopWindow *>(this);
prevent_custombar_drag = tw && tw->custom_bar_frame;
prevent_custombar_drag = !(tw && !tw->custom_bar_frame); // prevent for popup too to avoid problems with menu
SetCustomBarDragPrevention();
}
@ -150,6 +150,7 @@ void TopWindow::DoZoom()
void TopWindow::DoMoveWindow()
{
DLOG(">>>>> MoveWindow");
#if GTK_CHECK_VERSION(3, 22, 0)
if(CurrentEvent.device)
gdk_window_begin_move_drag_for_device(gdk(), CurrentEvent.device,

View file

@ -9,7 +9,7 @@
namespace Upp {
#define LLOG(x) // DLOG(x)
#define LOG_EVENTS _DBG_
// #define LOG_EVENTS _DBG_
BiVector<Ctrl::GEvent> Ctrl::Events;