Merge pull request #4974 from TheUbuntuGuy/master
Bask in his glory on multiple monitors
This commit is contained in:
commit
66be5bf144
@ -27,6 +27,7 @@
|
|||||||
#include "ui/albumcoverchoicecontroller.h"
|
#include "ui/albumcoverchoicecontroller.h"
|
||||||
#include "ui/iconloader.h"
|
#include "ui/iconloader.h"
|
||||||
|
|
||||||
|
#include <QDesktopWidget>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QMovie>
|
#include <QMovie>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
@ -653,7 +654,10 @@ void NowPlayingWidget::SearchCoverAutomatically() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NowPlayingWidget::Bask() {
|
void NowPlayingWidget::Bask() {
|
||||||
|
QDesktopWidget desktop;
|
||||||
|
int current_screen = desktop.screenNumber(this);
|
||||||
big_hypnotoad_.reset(new FullscreenHypnotoad);
|
big_hypnotoad_.reset(new FullscreenHypnotoad);
|
||||||
|
big_hypnotoad_->setGeometry(desktop.screenGeometry(current_screen));
|
||||||
big_hypnotoad_->showFullScreen();
|
big_hypnotoad_->showFullScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user