mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
UI/Qt: Send the rect of the window itself to WebContent
This ensures that the live values we return to WPT match the requested values.
This commit is contained in:
parent
54f6db01af
commit
e4f0e745a4
|
|
@ -1168,7 +1168,7 @@ void BrowserWindow::resizeEvent(QResizeEvent* event)
|
|||
QWidget::resizeEvent(event);
|
||||
|
||||
for_each_tab([&](auto& tab) {
|
||||
tab.view().set_window_size({ frameSize().width(), frameSize().height() });
|
||||
tab.view().set_window_size({ width(), height() });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -1177,7 +1177,7 @@ void BrowserWindow::moveEvent(QMoveEvent* event)
|
|||
QWidget::moveEvent(event);
|
||||
|
||||
for_each_tab([&](auto& tab) {
|
||||
tab.view().set_window_position({ event->pos().x(), event->pos().y() });
|
||||
tab.view().set_window_position({ x(), y() });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user