Bask in his glory on multiple monitors

This commit is contained in:
Mark Furneaux 2015-08-02 13:52:21 -04:00
parent 6ffa9b2459
commit 3265abfdfc

View File

@ -27,6 +27,7 @@
#include "ui/albumcoverchoicecontroller.h"
#include "ui/iconloader.h"
#include <QDesktopWidget>
#include <QMenu>
#include <QMovie>
#include <QPainter>
@ -653,7 +654,10 @@ void NowPlayingWidget::SearchCoverAutomatically() {
}
void NowPlayingWidget::Bask() {
QDesktopWidget desktop;
int current_screen = desktop.screenNumber(this);
big_hypnotoad_.reset(new FullscreenHypnotoad);
big_hypnotoad_->setGeometry(desktop.screenGeometry(current_screen));
big_hypnotoad_->showFullScreen();
}