diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-06-30 19:49:51 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-06-30 19:49:51 +0200 |
commit | 91de9fcd6374cbd7b07929057c41fa46b5040be3 (patch) | |
tree | a8d13ff2ccafbbf26e605dceb17c2121094454ce /sys/src/cmd/mothra/mothra.c | |
parent | fe0b72e93ce7eb24a8f7cabbb2540af40c1d152f (diff) |
mothra: fix scrollbar mouse grab behaviour
by default, scrollbars captured the mouse unless
all mouse buttons where released. this makes sense
in mothra main window, but makes drop down menus
with scrollbar unusable.
the patch lets one select the behaviour using the
USERFL-flag. if set, the scrollbar will capture
the mouse. if not set, scrollbar will release
the mouse when outside the scrollbar rect.
Diffstat (limited to 'sys/src/cmd/mothra/mothra.c')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index aec45f062..497c832e3 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -179,7 +179,7 @@ void mkpanels(void){ cururl=pllabel(p, PACKE|EXPAND, "---"); plplacelabel(cururl, PLACEW); p=plgroup(root, PACKN|EXPAND); - bar=plscrollbar(p, PACKW); + bar=plscrollbar(p, PACKW|USERFL); text=pltextview(p, PACKE|EXPAND, Pt(0, 0), 0, dolink); plscroll(text, 0, bar); plgrabkb(cmd); |