forked from openkylin/ukui-panel
fix(panel):增加QT_WAYLAND_DISABLE_FIXED_POSITIONS环境变量
This commit is contained in:
parent
d90297b114
commit
998a75086d
|
@ -51,6 +51,9 @@ int main(int argc, char *argv[])
|
|||
QString display(qgetenv(displayEnv.toUtf8().data()));
|
||||
QString appid = QString("ukui-panel-%1").arg(display);
|
||||
qDebug() << "ukui-panel start on display:" << display << "displayEnv:" << displayEnv << "sessionType:" << sessionType;
|
||||
if(sessionType == "wayland") {
|
||||
qputenv("QT_WAYLAND_DISABLE_FIXED_POSITIONS", "true");
|
||||
}
|
||||
|
||||
QtSingleApplication app(appid, argc, argv);
|
||||
if (app.isRunning()) {
|
||||
|
|
|
@ -376,6 +376,10 @@ void Panel::initWidgets()
|
|||
void Panel::updateGeometry()
|
||||
{
|
||||
refreshRect();
|
||||
|
||||
if(m_container->geometry().width() == 0 || m_container->geometry().height() == 0) {
|
||||
return;
|
||||
}
|
||||
m_windowProxy->setGeometry(m_container->geometry());
|
||||
updateMask();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue