summaryrefslogtreecommitdiffstats
path: root/kstart
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-07 20:26:07 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-07 20:26:07 -0600
commit43d99cc2477266cb9072e179137f0e8485370b3d (patch)
tree0d4d47e5497a1a1465edf8263f57b72725577239 /kstart
parent6354e6b3babad3ed0f5e314735bbbc01d1988eb2 (diff)
downloadtdebase-43d99cc2477266cb9072e179137f0e8485370b3d.tar.gz
tdebase-43d99cc2477266cb9072e179137f0e8485370b3d.zip
Rename kwin to twin (part 1 of 2)
Diffstat (limited to 'kstart')
-rw-r--r--kstart/kstart.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kstart/kstart.cpp b/kstart/kstart.cpp
index 410a1acb8..411ba9a0f 100644
--- a/kstart/kstart.cpp
+++ b/kstart/kstart.cpp
@@ -19,8 +19,8 @@
#include <kdebug.h>
#include <kprocess.h>
#include <klocale.h>
-#include <kwin.h>
-#include <kwinmodule.h>
+#include <twin.h>
+#include <twinmodule.h>
#include <kapplication.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
@@ -43,7 +43,7 @@ static bool fullscreen = false;
static unsigned long state = 0;
static unsigned long mask = 0;
static NET::WindowType windowtype = NET::Unknown;
-static KWinModule* kwinmodule;
+static KWinModule* twinmodule;
KStart::KStart()
:TQObject()
@@ -55,9 +55,9 @@ KStart::KStart()
sendRule();
else {
// connect to window add to get the NEW windows
- connect(kwinmodule, TQT_SIGNAL(windowAdded(WId)), TQT_SLOT(windowAdded(WId)));
+ connect(twinmodule, TQT_SIGNAL(windowAdded(WId)), TQT_SLOT(windowAdded(WId)));
if (windowtitle != 0)
- kwinmodule->doNotManage( windowtitle );
+ twinmodule->doNotManage( windowtitle );
}
// propagate the app startup notification info to the started app
KStartupInfoId id;
@@ -97,7 +97,7 @@ void KStart::sendRule() {
// accept only "normal" windows
message += "types=" + TQCString().setNum( NET::NormalMask | NET::DialogMask ) + "\n";
}
- if ( ( desktop > 0 && desktop <= kwinmodule->numberOfDesktops() )
+ if ( ( desktop > 0 && desktop <= twinmodule->numberOfDesktops() )
|| desktop == NETWinInfo::OnAllDesktops ) {
message += "desktop=" + TQCString().setNum( desktop ) + "\ndesktoprule=3\n";
}
@@ -206,7 +206,7 @@ void KStart::applyStyle(WId w ) {
NETWinInfo info( qt_xdisplay(), w, qt_xrootwin(), NET::WMState );
- if ( ( desktop > 0 && desktop <= kwinmodule->numberOfDesktops() )
+ if ( ( desktop > 0 && desktop <= twinmodule->numberOfDesktops() )
|| desktop == NETWinInfo::OnAllDesktops )
info.setDesktop( desktop );
@@ -312,13 +312,13 @@ int main( int argc, char *argv[] )
for(int i=0; i < args->count(); i++)
proc << args->arg(i);
- kwinmodule = new KWinModule;
+ twinmodule = new KWinModule;
desktop = args->getOption( "desktop" ).toInt();
if ( args->isSet ( "alldesktops") )
desktop = NETWinInfo::OnAllDesktops;
if ( args->isSet ( "currentdesktop") )
- desktop = kwinmodule->currentDesktop();
+ desktop = twinmodule->currentDesktop();
windowtitle = args->getOption( "window" );
windowclass = args->getOption( "windowclass" );