mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Log media viewer geometry on show
This commit is contained in:
parent
e5d8a1aa3c
commit
36282c450e
1 changed files with 6 additions and 1 deletions
|
@ -337,8 +337,13 @@ OverlayWidget::OverlayWidget()
|
||||||
) | rpl::start_with_next([=](bool shown) {
|
) | rpl::start_with_next([=](bool shown) {
|
||||||
toggleApplicationEventFilter(shown);
|
toggleApplicationEventFilter(shown);
|
||||||
if (shown) {
|
if (shown) {
|
||||||
|
const auto geometry = _widget->geometry();
|
||||||
const auto screenList = QGuiApplication::screens();
|
const auto screenList = QGuiApplication::screens();
|
||||||
DEBUG_LOG(("Viewer Pos: Shown, screen number: %1")
|
DEBUG_LOG(("Viewer Pos: Shown, geometry: %1, %2, %3, %4, screen number: %5")
|
||||||
|
.arg(geometry.x())
|
||||||
|
.arg(geometry.y())
|
||||||
|
.arg(geometry.width())
|
||||||
|
.arg(geometry.height())
|
||||||
.arg(screenList.indexOf(_widget->screen())));
|
.arg(screenList.indexOf(_widget->screen())));
|
||||||
moveToScreen();
|
moveToScreen();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue