34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From b4328f5e462cae744a74ed968088fc4118d46aab Mon Sep 17 00:00:00 2001
|
|
From: youzhengcai <youzhengcai@kylinsec.com.cn>
|
|
Date: Fri, 19 Jan 2024 18:08:57 +0800
|
|
Subject: [PATCH 1006/1008] fix(menu):Fixed the issue where the taskbar close
|
|
window used the wrong timestamp.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 修复了任务栏关闭窗口函数使用了错误的时间戳问题
|
|
|
|
Related #26368
|
|
---
|
|
lib/window.cpp | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/window.cpp b/lib/window.cpp
|
|
index 4a9d844..eaf2211 100644
|
|
--- a/lib/window.cpp
|
|
+++ b/lib/window.cpp
|
|
@@ -483,8 +483,7 @@ void Window::close()
|
|
KLOG_PROFILE("xid: %" PRIu64 ", name: %s.", this->get_xid(), this->get_name().c_str());
|
|
|
|
g_return_if_fail(this->wnck_window_ != nullptr);
|
|
- uint64_t now = Glib::DateTime::create_now_local().to_unix();
|
|
- wnck_window_close(this->wnck_window_, now);
|
|
+ wnck_window_close(this->wnck_window_, gtk_get_current_event_time());
|
|
}
|
|
|
|
WindowGeometry Window::get_geometry()
|
|
--
|
|
2.27.0
|
|
|