Skip to content

Commit 683ed42

Browse files
committed
bug fix
1 parent 5774873 commit 683ed42

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

frame/util/XUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Created by septemberhx on 2020/5/26.
33
//
44

5+
#include <iostream>
56
#include <QImage>
67
#include <QDebug>
78
#include <QApplication>

widgets/ActiveWindowControlWidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <QScreen>
1414
#include <QEvent>
1515
#include <QDesktopWidget>
16+
#include <iostream>
1617

1718
ActiveWindowControlWidget::ActiveWindowControlWidget(QWidget *parent)
1819
: QWidget(parent)
@@ -352,7 +353,7 @@ void ActiveWindowControlWidget::trigger(QClickableLabel *ctx, int idx) {
352353
}
353354

354355
void ActiveWindowControlWidget::windowChanged(WId id, NET::Properties properties, NET::Properties2 properties2) {
355-
if (properties.testFlag(NET::WMGeometry)) {
356+
if (properties.testFlag(NET::WMGeometry) || properties.testFlag(NET::WMName)) {
356357
this->activeWindowInfoChanged();
357358
}
358359

0 commit comments

Comments
 (0)