comparison mde/gui/widget/miscContent.d @ 177:af40e9679436

Release-clicks don't cause problems now.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 12 Sep 2009 09:50:33 +0200
parents d5d5fe04ca6c
children
comparison
equal deleted inserted replaced
176:d5d5fe04ca6c 177:af40e9679436
117 override int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) { 117 override int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) {
118 // Also display if dragging 118 // Also display if dragging
119 return super.clickEvent (cx,cy, b, state) | 4; 119 return super.clickEvent (cx,cy, b, state) | 4;
120 } 120 }
121 121
122 override bool dragRelease (wdabs cx, wdabs cy, IChildWidget widg) { 122 override bool dragRelease (wdabs cx, wdabs cy, ubyte b, IChildWidget widg) {
123 super.dragRelease (cx, cy, widg); 123 super.dragRelease (cx, cy, b, widg);
124 if (widg !is this) { // don't copy content to self 124 if (widg !is this) { // don't copy content to self
125 widg.dropContent (content_); 125 widg.dropContent (content_);
126 } 126 }
127 return true; 127 return true;
128 } 128 }