aboutsummaryrefslogtreecommitdiff
path: root/c/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/layout.h')
-rw-r--r--c/layout.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/c/layout.h b/c/layout.h
index 5ea9c2b..1b78945 100644
--- a/c/layout.h
+++ b/c/layout.h
@@ -5,6 +5,7 @@
#include "common.h"
#include "datalistview.h"
+#include "pl.h"
void UpdateLayout(int w = 0, int h = 0);
@@ -44,6 +45,7 @@ inline bool Dragger::HandleDown()
if (IsDouble()) {
extern DataListView* g_dlv;
g_dlv->SetHeight(0);
+ Pl("cfg","set_dlv_height",0);
UpdateLayout();
return false;
} else
@@ -62,10 +64,13 @@ inline bool Dragger::HandleMove()
SetCursor(g_hcSizeNs);
else
r = false;
- if (m_bActive)
- Drag(pt.x, pt.y);
- if (!IsDown())
+ if (!m_bActive) return r;
+ Drag(pt.x, pt.y);
+ if (!IsDown()) {
+ extern DataListView* g_dlv;
m_bActive = false;
+ Pl("cfg","set_dlv_height",g_dlv->Height());
+ }
return r;
}