!30 [sync] PR-27: Fix the window jump problem when dragging the window
From: @openeuler-sync-bot Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
05dd2490b5
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user