From 5dbf2d71aa0aa6b8f0cb8f1334d061e0d759caf8 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周一, 11 12月 2023 22:18:38 +0800
Subject: [PATCH] Add workaround handling misplace

---
 src/widgets/widgetwindowagent.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/widgets/widgetwindowagent.cpp b/src/widgets/widgetwindowagent.cpp
index 43528b5..e859fbd 100644
--- a/src/widgets/widgetwindowagent.cpp
+++ b/src/widgets/widgetwindowagent.cpp
@@ -18,16 +18,16 @@
         bool eventFilter(QObject *obj, QEvent *event) override {
             switch (event->type()) {
                 case QEvent::Paint: {
-                    auto e = static_cast<QPaintEvent *>(event);
+                    auto pe = static_cast<QPaintEvent *>(event);
                     QPainter painter(widget);
-                    QRect rect = e->rect();
-                    QRegion region = e->region();
-                    void *a[] = {
+                    QRect rect = pe->rect();
+                    QRegion region = pe->region();
+                    void *args[] = {
                         &painter,
                         &rect,
                         &region,
                     };
-                    ctx->virtual_hook(AbstractWindowContext::DrawBordersHook, a);
+                    ctx->virtual_hook(AbstractWindowContext::DrawBordersHook, args);
                     return true;
                 }
                 default:

--
Gitblit v1.9.1