mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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) {
|
||||
toggleApplicationEventFilter(shown);
|
||||
if (shown) {
|
||||
const auto geometry = _widget->geometry();
|
||||
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())));
|
||||
moveToScreen();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue