Skip to content

Commit fb8e16b

Browse files
committed
Yet more fixes around issuing UIE_RESIZE event
1 parent eb54f4e commit fb8e16b

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/main/widgets/base/Widget.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,17 @@ namespace lsp
752752
return false;
753753

754754
// Execute slot and commit size
755-
ws::rectangle_t xr = *r;
756-
sSlots.execute(SLOT_RESIZE, this, &xr);
755+
ws::event_t ev;
756+
ws::init_event(&ev);
757+
758+
ev.nType = ws::UIE_RESIZE;
759+
ev.nTime = system::get_time_millis();
760+
ev.nLeft = r->nLeft;
761+
ev.nTop = r->nTop;
762+
ev.nWidth = r->nWidth;
763+
ev.nHeight = r->nHeight;
764+
765+
sSlots.execute(SLOT_RESIZE, this, &ev);
757766
sSize = *r;
758767
nFlags |= REALIZED;
759768

0 commit comments

Comments
 (0)