!7 fix screensaver bug#125460
This commit is contained in:
parent
f914519a5c
commit
4ef66df0e5
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
path="/usr/lib/`/usr/bin/dpkg-architecture -qDEB_TARGET_MULTIARCH`/libukcc.so.1.0.0"
|
||||||
|
path1="/usr/lib/`/usr/bin/dpkg-architecture -qDEB_TARGET_MULTIARCH`/libukcc.so.1"
|
||||||
|
path2="/usr/lib/`/usr/bin/dpkg-architecture -qDEB_TARGET_MULTIARCH`/libukcc.so.1.0"
|
||||||
|
dpkg-divert --package libukcc3 --rename --divert "$path"".old" --add $path
|
||||||
|
dpkg-divert --package libukcc3 --rename --divert "$path1"".old" --add $path1
|
||||||
|
dpkg-divert --package libukcc3 --rename --divert "$path2"".old" --add $path2
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
#include <QButtonGroup>
|
#include <QButtonGroup>
|
||||||
#include "widgets/Label/fixlabel.h"
|
#include "widgets/Label/fixlabel.h"
|
||||||
|
#include "../../../shell/utils/utils.h"
|
||||||
|
|
||||||
#define SSTHEMEPATH "/usr/share/applications/screensavers/"
|
#define SSTHEMEPATH "/usr/share/applications/screensavers/"
|
||||||
#define ID_PREFIX "screensavers-ukui-"
|
#define ID_PREFIX "screensavers-ukui-"
|
||||||
|
@ -397,6 +398,10 @@ void Screensaver::startupScreensaver()
|
||||||
//关闭屏保
|
//关闭屏保
|
||||||
closeScreensaver();
|
closeScreensaver();
|
||||||
|
|
||||||
|
if (Utils::isWayland()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QWindow *preWidFromWin = QWindow::fromWinId(ui->previewWidget->winId());
|
QWindow *preWidFromWin = QWindow::fromWinId(ui->previewWidget->winId());
|
||||||
previewWind->winId();
|
previewWind->winId();
|
||||||
previewWind->setParent(preWidFromWin);
|
previewWind->setParent(preWidFromWin);
|
||||||
|
|
|
@ -1,25 +1,41 @@
|
||||||
|
##对预编译宏做处理
|
||||||
include(../env.pri)
|
include(../env.pri)
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
SUBDIRS = \
|
|
||||||
devices/shortcut \
|
SUBDIRS = devices/printer \
|
||||||
devices/printer \
|
|
||||||
devices/mouse \
|
devices/mouse \
|
||||||
devices/keyboard \
|
|
||||||
application/defaultapp \
|
|
||||||
application/autoboot \
|
|
||||||
system/about \
|
system/about \
|
||||||
system/power \
|
system/power \
|
||||||
system/display \
|
|
||||||
system/notice \
|
|
||||||
system/vino \
|
|
||||||
personalized/wallpaper \
|
personalized/wallpaper \
|
||||||
personalized/theme \
|
personalized/theme \
|
||||||
personalized/screenlock \
|
personalized/screenlock \
|
||||||
personalized/fonts \
|
|
||||||
personalized/screensaver \
|
|
||||||
network/vpn \
|
network/vpn \
|
||||||
network/proxy \
|
network/proxy \
|
||||||
account/userinfo \
|
|
||||||
time-language/datetime \
|
time-language/datetime \
|
||||||
time-language/area
|
time-language/area
|
||||||
|
|
||||||
|
if(contains(DEFINES, SP2)){
|
||||||
|
SUBDIRS += devices/shortcut \
|
||||||
|
devices/keyboard \
|
||||||
|
application/defaultapp \
|
||||||
|
application/autoboot \
|
||||||
|
system/notice \
|
||||||
|
system/display \
|
||||||
|
system/vino \
|
||||||
|
personalized/fonts \
|
||||||
|
personalized/screensaver \
|
||||||
|
account/userinfo \
|
||||||
|
security-updates/backup \
|
||||||
|
}
|
||||||
|
|
||||||
|
if(contains(DEFINES, PANGUW)){
|
||||||
|
SUBDIRS += system/display_hw \
|
||||||
|
system/vino_hw \
|
||||||
|
}
|
||||||
|
|
||||||
|
if(contains(DEFINES, MAVIS)){
|
||||||
|
SUBDIRS += system/display \
|
||||||
|
system/backup_intel \
|
||||||
|
account/userinfo_intel \
|
||||||
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ QIcon DisplaySet::icon() const
|
||||||
|
|
||||||
bool DisplaySet::isEnable() const
|
bool DisplaySet::isEnable() const
|
||||||
{
|
{
|
||||||
return !Utils::isWayland();
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplaySet::requestBackend()
|
void DisplaySet::requestBackend()
|
||||||
|
|
|
@ -84,7 +84,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
{
|
{
|
||||||
mate_mixer_init();
|
mate_mixer_init();
|
||||||
qApp->installEventFilter(this);
|
qApp->installEventFilter(this);
|
||||||
is_ExitBluetooth = isExitBluetooth();
|
|
||||||
is_ExitPower = isExitsPower();
|
is_ExitPower = isExitsPower();
|
||||||
initUI();
|
initUI();
|
||||||
hideComponent();
|
hideComponent();
|
||||||
|
@ -610,7 +609,6 @@ void MainWindow::loadPlugins(){
|
||||||
#endif
|
#endif
|
||||||
qDebug() << "Scan Plugin: " << fileName;
|
qDebug() << "Scan Plugin: " << fileName;
|
||||||
if (!fileName.endsWith(".so") ||
|
if (!fileName.endsWith(".so") ||
|
||||||
("libukcc-bluetooth.so" == fileName && !is_ExitBluetooth) ||
|
|
||||||
("libpower.so" == fileName && !is_ExitPower)) {
|
("libpower.so" == fileName && !is_ExitPower)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1043,18 +1041,6 @@ void MainWindow::initStyleSheet() {
|
||||||
closeBtn->setIcon(QIcon::fromTheme("window-close-symbolic"));
|
closeBtn->setIcon(QIcon::fromTheme("window-close-symbolic"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainWindow::isExitBluetooth() {
|
|
||||||
QProcess process;
|
|
||||||
process.start("rfkill list");
|
|
||||||
process.waitForFinished();
|
|
||||||
QByteArray output = process.readAllStandardOutput();
|
|
||||||
QString str_output = output;
|
|
||||||
bool isDevice = str_output.contains(QString("hci"), Qt::CaseInsensitive);
|
|
||||||
bool isAddress = true;
|
|
||||||
|
|
||||||
return isDevice && isAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::changeSearchSlot() {
|
void MainWindow::changeSearchSlot() {
|
||||||
// int fontSize = m_fontSetting->get("system-font-size").toInt();
|
// int fontSize = m_fontSetting->get("system-font-size").toInt();
|
||||||
// m_searchWidget->setFixedHeight((fontSize - 11) * 2 + 32);
|
// m_searchWidget->setFixedHeight((fontSize - 11) * 2 + 32);
|
||||||
|
|
|
@ -60,7 +60,6 @@ public:
|
||||||
public:
|
public:
|
||||||
QMap<QString, QObject *> exportModule(int);
|
QMap<QString, QObject *> exportModule(int);
|
||||||
void setModuleBtnHightLight(int id);
|
void setModuleBtnHightLight(int id);
|
||||||
static bool isExitBluetooth();
|
|
||||||
void bootOptionsFilter(QString opt, bool firstIn = true); // 模块跳转
|
void bootOptionsFilter(QString opt, bool firstIn = true); // 模块跳转
|
||||||
void moveEvent(QMoveEvent *event);
|
void moveEvent(QMoveEvent *event);
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event);
|
||||||
|
|
Loading…
Reference in New Issue