!3 fix vnc display issue
From: @dou33 Reviewed-by: @tanyulong2021 Signed-off-by: @tanyulong2021
This commit is contained in:
commit
fa03a83b63
26
0001-fix-vnc-show-issue.patch
Normal file
26
0001-fix-vnc-show-issue.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 90a2ef1e2e7593bd192c6ddf51e16a8914e8517b Mon Sep 17 00:00:00 2001
|
||||||
|
From: dou33 <johnwo3396@hotmail.com>
|
||||||
|
Date: Tue, 26 Oct 2021 17:32:01 +0800
|
||||||
|
Subject: [PATCH] fix vnc show issue
|
||||||
|
|
||||||
|
---
|
||||||
|
src/qtsingleapplication/qtsingleapplication.cpp | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/qtsingleapplication/qtsingleapplication.cpp b/src/qtsingleapplication/qtsingleapplication.cpp
|
||||||
|
index d0fb15d..dc27559 100755
|
||||||
|
--- a/src/qtsingleapplication/qtsingleapplication.cpp
|
||||||
|
+++ b/src/qtsingleapplication/qtsingleapplication.cpp
|
||||||
|
@@ -324,7 +324,8 @@ void QtSingleApplication::activateWindow()
|
||||||
|
{
|
||||||
|
if (actWin) {
|
||||||
|
actWin->setWindowState(actWin->windowState() & ~Qt::WindowMinimized);
|
||||||
|
- actWin->raise();
|
||||||
|
+ actWin->show();//fix vnc display issue
|
||||||
|
+ actWin->raise();
|
||||||
|
actWin->activateWindow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.24.3 (Apple Git-128)
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: indicator-china-weather
|
Name: indicator-china-weather
|
||||||
Version: 3.1.0
|
Version: 3.1.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The weather data are from the heweather API s6 version.
|
Summary: The weather data are from the heweather API s6 version.
|
||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
URL: https://github.com/UbuntuKylin/indicator-china-weather
|
URL: https://github.com/UbuntuKylin/indicator-china-weather
|
||||||
@ -22,6 +22,8 @@ BuildRequires: GeoIP-devel
|
|||||||
# Requires: NetworkManager
|
# Requires: NetworkManager
|
||||||
|
|
||||||
patch0: 0001-remove-about.patch
|
patch0: 0001-remove-about.patch
|
||||||
|
patch1: 0001-fix-vnc-show-issue.patch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Indicator that displays China weather information
|
Indicator that displays China weather information
|
||||||
@ -32,6 +34,7 @@ patch0: 0001-remove-about.patch
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default indicator-china-weather.pro
|
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default indicator-china-weather.pro
|
||||||
@ -63,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/man/man1/indicator-china-weather.1.gz
|
%{_datadir}/man/man1/indicator-china-weather.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 26 2021 douyan <douyan@kylinos.cn> - 3.1.0-3
|
||||||
|
- fix vnc show issue
|
||||||
|
|
||||||
* Tue Jan 19 2021 lvhan <lvhan@kylinos.cn> - 3.1.0-2
|
* Tue Jan 19 2021 lvhan <lvhan@kylinos.cn> - 3.1.0-2
|
||||||
- remove about
|
- remove about
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user