summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Edmundson <[email protected]>2025-05-28 10:36:41 +0300
committerDavid Edmundson <[email protected]>2025-05-29 23:06:50 +0300
commite9eba1ef0d6a4f39da1c58f93f000e0bbcf1c25f (patch)
treef0651115c89791226fffa02ad196d10e6c7f26bc
parent27283b02ca5f30f2f57b24c306a986c572e87cd6 (diff)
wayland: Drop ShellIntegration::handleExpose
This was effectively deprecated when the virtual isExposed was added and we moved towards a state based system. The region of the exposed geometry is something we want to phase out and is of no use to shells. The other usage in XdgShell was for updating contentGeometry on first show, but this is now an explicit call updated by QWaylandWindow directly. Change-Id: I09a083fcfcc69c444ca4270f425b591b046e0617 Reviewed-by: Vlad Zahorodnii <[email protected]>
-rw-r--r--src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp11
-rw-r--r--src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell_p.h1
-rw-r--r--src/plugins/platforms/wayland/qwaylandshellsurface_p.h1
-rw-r--r--src/plugins/platforms/wayland/qwaylandwindow.cpp5
4 files changed, 1 insertions, 17 deletions
diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
index e6ef7767768..8ac5f2d7bf4 100644
--- a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
+++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
@@ -410,15 +410,6 @@ bool QWaylandXdgSurface::isExposed() const
return m_configured;
}
-bool QWaylandXdgSurface::handleExpose(const QRegion &region)
-{
- if (!isExposed() && !region.isEmpty()) {
- return true;
- }
- setContentGeometry(window()->windowContentGeometry());
- return false;
-}
-
void QWaylandXdgSurface::applyConfigure()
{
// It is a redundant ack_configure, so skipped.
@@ -451,7 +442,7 @@ void QWaylandXdgSurface::propagateSizeHints()
void QWaylandXdgSurface::setContentGeometry(const QRect &rect)
{
- if (!window()->isExposed() || m_lastGeometry == rect)
+ if (!isExposed() || m_lastGeometry == rect)
return;
set_window_geometry(rect.x(), rect.y(), rect.width(), rect.height());
diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell_p.h b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell_p.h
index f7d223b51d0..236d34c351c 100644
--- a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell_p.h
+++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell_p.h
@@ -57,7 +57,6 @@ public:
void setWindowFlags(Qt::WindowFlags flags) override;
bool isExposed() const override;
- bool handleExpose(const QRegion &) override;
bool handlesActiveState() const { return m_toplevel; }
void applyConfigure() override;
bool wantsDecorations() const override;
diff --git a/src/plugins/platforms/wayland/qwaylandshellsurface_p.h b/src/plugins/platforms/wayland/qwaylandshellsurface_p.h
index 88adb338ca3..273586a106a 100644
--- a/src/plugins/platforms/wayland/qwaylandshellsurface_p.h
+++ b/src/plugins/platforms/wayland/qwaylandshellsurface_p.h
@@ -51,7 +51,6 @@ public:
virtual void setWindowFlags(Qt::WindowFlags flags);
virtual bool isExposed() const { return true; }
- virtual bool handleExpose(const QRegion &) { return false; }
virtual void raise() {}
virtual void lower() {}
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp
index 7475fe6608c..ad43fa8f124 100644
--- a/src/plugins/platforms/wayland/qwaylandwindow.cpp
+++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp
@@ -593,11 +593,6 @@ void QWaylandWindow::resizeFromApplyConfigure(const QSize &sizeWithMargins, cons
void QWaylandWindow::sendExposeEvent(const QRect &rect)
{
- if (mShellSurface && mShellSurface->handleExpose(rect)) {
- qCDebug(lcQpaWayland) << "sendExposeEvent: intercepted by shell extension, not sending";
- return;
- }
-
static bool sQtTestMode = qEnvironmentVariableIsSet("QT_QTESTLIB_RUNNING");
mLastExposeGeometry = rect;