From de0129e4a3fa7c4a3ca13c58376649db0453c492 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Tue, 9 Jun 2026 22:26:38 +0300
Subject: Revert "Fix unwanted window resizing. This resolves issue
 TDE/tde#57."

This reverts commit a9bd5b50e9b77b8b360dd3620013a320733139aa. The patch
was quite a dirty hack meant to workaround the underlaying issue that
twin assigned wrong size to the windows that require stepped size
increase.

Note: changes to the header were not reverted for the sake of binary
compat.

Closes: https://mirror.git.trinitydesktop.org/gitea/tde/tde/issues/176
Bug: https://mirror.git.trinitydesktop.org/gitea/tde/tde/issues/57
See-also: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/pulls/750

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 twin/client.cpp   | 9 ---------
 twin/client.h     | 3 +--
 twin/geometry.cpp | 2 --
 3 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/twin/client.cpp b/twin/client.cpp
index af5192e8c..4b867aed3 100644
--- a/twin/client.cpp
+++ b/twin/client.cpp
@@ -128,9 +128,6 @@ Client::Client( Workspace *ws )
     autoRaiseTimer = 0;
     shadeHoverTimer = 0;
 
-    configureRequestTimer = new TQTimer(this);
-    connect(configureRequestTimer, TQ_SIGNAL(timeout()), TQ_SLOT(configureRequestTimeout()));
-
     shadowDelayTimer = new TQTimer(this);
     opacityCache = &activeOpacityCache;
     shadowAfterClient = NULL;
@@ -981,12 +978,6 @@ void Client::setShade( ShadeMode mode )
     updateWindowRules();
     }
 
-void Client::configureRequestTimeout()
-    {
-    moveResizeMode = false;
-    sendSyntheticConfigureNotify();
-    }
-
 void Client::shadeHover()
     {
     setShade( ShadeHover );
diff --git a/twin/client.h b/twin/client.h
index 31612383b..6344fc624 100644
--- a/twin/client.h
+++ b/twin/client.h
@@ -355,7 +355,6 @@ class Client : public TQObject, public KDecorationDefines
     private slots:
         void autoRaise();
         void shadeHover();
-        void configureRequestTimeout();
         void shortcutActivated();
 	void updateOpacityCache();
 
@@ -575,7 +574,7 @@ class Client : public TQObject, public KDecorationDefines
         WinInfo* info;
         TQTimer* autoRaiseTimer;
         TQTimer* shadeHoverTimer;
-        TQTimer* configureRequestTimer;
+        TQTimer* configureRequestTimer; //< BCI: remove me
         Colormap cmap;
         TQCString resource_name;
         TQCString resource_class;
diff --git a/twin/geometry.cpp b/twin/geometry.cpp
index 9c9974c10..0dda2ec6f 100644
--- a/twin/geometry.cpp
+++ b/twin/geometry.cpp
@@ -1451,8 +1451,6 @@ const TQPoint Client::calculateGravitation( bool invert, int gravity ) const
 
 void Client::configureRequest( int value_mask, int rx, int ry, int rw, int rh, int gravity, bool from_tool )
     {
-    moveResizeMode = true;
-    configureRequestTimer->start(100, true);
     if( gravity == 0 ) // default (nonsense) value for the argument
         gravity = xSizeHint.win_gravity;
     if( value_mask & ( CWX | CWY ))
-- 
cgit v1.2.3

