mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
Fixed spurious drag going from the menu
This commit is contained in:
parent
e959dddf05
commit
d4b318922b
2 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LOG_EVENTS _DBG_
|
||||
// #define LOG_EVENTS _DBG_
|
||||
|
||||
BiVector<Ctrl::GEvent> Ctrl::Events;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue