From 4bfdba74c6a6626dc4188f06290d2efc9819330b Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Thu, 5 Mar 2026 09:15:37 +0900
Subject: Rename KWinModule to TWinModule

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 kkbswitch/kbswitchapp.cpp   | 10 +++++-----
 kkbswitch/kbswitchapp.h     |  8 ++++----
 kkbswitch/windowwatcher.cpp |  2 +-
 kkbswitch/windowwatcher.h   |  4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/kkbswitch/kbswitchapp.cpp b/kkbswitch/kbswitchapp.cpp
index 70c3925..b05cd30 100644
--- a/kkbswitch/kbswitchapp.cpp
+++ b/kkbswitch/kbswitchapp.cpp
@@ -40,7 +40,7 @@ KBSwitchApp::KBSwitchApp()
     XklSetSecondaryGroupsMask(12); /* binary 1100 */
 #else
   //resetWindowMap();
-  //enableKWinModule();
+  //enableTWinModule();
   enableWatcher();
 #endif
 
@@ -78,7 +78,7 @@ KBSwitchApp::KBSwitchApp()
 
 KBSwitchApp::~KBSwitchApp(){
 #ifndef HAVE_LIBXKLAVIER  	
-  //disableKWinModule();
+  //disableTWinModule();
   disableWatcher();
 #endif
 }
@@ -312,10 +312,10 @@ void KBSwitchApp::resetWindowMap()
 }*/
 
 /** Enable window manager notifications */
-/*void KBSwitchApp::enableKWinModule()
+/*void KBSwitchApp::enableTWinModule()
 {
   if (m_twin_module == NULL) {
-    m_twin_module = new KWinModule();
+    m_twin_module = new TWinModule();
     connect(m_twin_module, TQ_SIGNAL(activeWindowChanged(WId)), TQ_SLOT(slotWindowChanged(WId)));
     connect(m_twin_module, TQ_SIGNAL(windowRemoved(WId)), TQ_SLOT(slotWindowRemoved(WId)));
     resetWindowMap();
@@ -325,7 +325,7 @@ void KBSwitchApp::resetWindowMap()
 }*/
 
 /** Disable window manager notifications */
-/*void KBSwitchApp::disableKWinModule()
+/*void KBSwitchApp::disableTWinModule()
 {
   if (m_twin_module) {
     m_twin_module->disconnect();
diff --git a/kkbswitch/kbswitchapp.h b/kkbswitch/kbswitchapp.h
index 1bbad28..31ff128 100644
--- a/kkbswitch/kbswitchapp.h
+++ b/kkbswitch/kbswitchapp.h
@@ -34,7 +34,7 @@
 #include "kbswitchintf.h"
 #include "windowwatcher.h"
 
-/*class KWinModule;
+/*class TWinModule;
 
 typedef struct _KBWinInfo {
   int groupno;
@@ -68,7 +68,7 @@ private: // Private attributes
   KBSwitchIntf *m_intf;
 #ifndef HAVE_LIBXKLAVIER  
   /** Window manager interface */
-  //KWinModule *m_twin_module;
+  //TWinModule *m_twin_module;
   /** Maps Window IDs to their keyboard groups */
   //KBWindowMap m_window_map;
   //KBWindowMap::iterator m_active_window;
@@ -93,9 +93,9 @@ private: // Private methods
   /** initialize Window groups map */
   //void resetWindowMap();
   /** Disable window manager notifications */
-  //void disableKWinModule();
+  //void disableTWinModule();
   /** Enable window manager notifications */
-  //void enableKWinModule();
+  //void enableTWinModule();
   /** adds a new window to the internal window map */
   //void addWindowToMap(WId window_id);
   void enableWatcher();
diff --git a/kkbswitch/windowwatcher.cpp b/kkbswitch/windowwatcher.cpp
index 56aa184..33cd108 100644
--- a/kkbswitch/windowwatcher.cpp
+++ b/kkbswitch/windowwatcher.cpp
@@ -25,7 +25,7 @@ WindowWatcher::WindowWatcher(KBConfig *kbconf, TQObject *parent, const char *nam
  : TQObject(parent, name)
 {
   m_kbconf = kbconf;
-  m_twin_module = new KWinModule(this);
+  m_twin_module = new TWinModule(this);
   connect(m_twin_module, TQ_SIGNAL(windowAdded(WId)), TQ_SLOT(windowAdded(WId)));
   connect(m_twin_module, TQ_SIGNAL(windowRemoved(WId)), TQ_SLOT(windowRemoved(WId)));
   connect(m_twin_module, TQ_SIGNAL(activeWindowChanged(WId)), TQ_SLOT(activeWindowChanged(WId)));
diff --git a/kkbswitch/windowwatcher.h b/kkbswitch/windowwatcher.h
index c2a803a..0ec02e8 100644
--- a/kkbswitch/windowwatcher.h
+++ b/kkbswitch/windowwatcher.h
@@ -25,7 +25,7 @@
 #include <tqobject.h>
 
 class KBConfig;
-class KWinModule;
+class TWinModule;
 
 /**
 @author Leonid Zeitlin
@@ -36,7 +36,7 @@ class WindowWatcher : public TQObject {
   TQ_OBJECT
 protected:
   KBConfig *m_kbconf;
-  KWinModule *m_twin_module;
+  TWinModule *m_twin_module;
 protected slots:    
   virtual void windowAdded(WId id) = 0;
   virtual void windowRemoved(WId id) = 0;
-- 
cgit v1.2.3

