Fix the window jump problem when dragging the window

(cherry picked from commit 7730d4e8285cd8faefb6dd39cdb0bdb3b75ad179)
This commit is contained in:
huayadong 2022-09-08 14:37:25 +08:00 committed by openeuler-sync-bot
parent ea09116960
commit c48fbdfadb
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From 04941e0bd5c400905ecb130bdeab327c408cd491 Mon Sep 17 00:00:00 2001
From: huayadong <huayadong@kylinos.cn>
Date: Thu, 8 Sep 2022 14:23:42 +0800
Subject: [PATCH] ssssssssssssss
---
src/topwindow.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/topwindow.cpp b/src/topwindow.cpp
index f55bdc2..2b3d61a 100644
--- a/src/topwindow.cpp
+++ b/src/topwindow.cpp
@@ -1,5 +1,4 @@
#include "topwindow.h"
-
#include <QDebug>
#include <QTimer>
#include <QMimeData>
@@ -399,8 +398,8 @@ void TopWindow::moveEvent(QMoveEvent *e)
void TopWindow::mouseMoveEvent(QMouseEvent *e)
{
- if (m_isMove) {
- move(pos() + e->pos() - m_pressPos);
+ if (m_isMove){
+ move(e->globalPos() - m_pressPos);
}
}
--
2.36.1

View File

@ -2,7 +2,7 @@
Name: kylin-video
Version: 3.1.3
Release: 6
Release: 7
Summary: A powerful video player
License: GPL-2.0-or-later and LGPL-2.0-or-later and BSD
URL: https://github.com/UbuntuKylin/kylin-video
@ -11,6 +11,7 @@ Patch1: 0001-modify-compile-error-of-kylin-video.patch
Patch2: 0002-Fix-the-problem-of-the-help-manual-button.patch
Patch3: 0003-modify-version-is-error.patch
Patch4: 0004-Fix-about-background-not-changing-with-style.patch
Patch5: 0005-fix-the-window-jump-problem-when-dragging-the-window.patch
BuildRequires: qt5-devel
BuildRequires: qtchooser
@ -45,6 +46,7 @@ It supports both x86 and ARM platform, and supports most of the audio and video
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
@ -70,6 +72,9 @@ popd
%changelog
* Thu Sep 8 2022 huayadong <huayadong@kylinos.cn> - 3.1.3-7
Fix the window jump problem when dragging the window
* Mon Aug 22 2022 peijiankang <peijiankang@kylinos.cn> - 3.1.3-6
- Fix about background not changing with style