[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kstart
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2004-06-10 12:07:10
Message-ID: 20040610120710.9B66016AF4 () office ! kde ! org
[Download RAW message or body]

CVS commit by lunakl: 

Options for only vertical or horizontal maximalization.
CCMAIL: 77146-done@bugs.kde.org


  M +10 -0     kstart.cpp   1.49


--- kdebase/kstart/kstart.cpp  #1.48:1.49
@@ -206,4 +206,6 @@ static KCmdLineOptions options[] =
   { "iconify", I18N_NOOP("Iconify the window"), 0 },
   { "maximize", I18N_NOOP("Maximize the window"), 0 },
+  { "maximize-vertical", I18N_NOOP("Maximize the window vertically"), 0 },
+  { "maximize-horizontal", I18N_NOOP("Maximize the window horizontally"), 0 },
   { "fullscreen", I18N_NOOP("Show window fullscreen. Implies type Override."), 0 },
   { "type <type>", I18N_NOOP("The window type: Normal, Desktop, Dock, Tool, \nMenu, \
Dialog, TopMenu or Override"), 0 }, @@ -308,4 +310,12 @@ int main( int argc, char \
*argv[] )  mask |= NET::Max;
   }
+  if ( args->isSet("maximize-vertical") ) {
+      state |= NET::MaxVert;
+      mask |= NET::MaxVert;
+  }
+  if ( args->isSet("maximize-horizontal") ) {
+      state |= NET::MaxHoriz;
+      mask |= NET::MaxHoriz;
+  }
 
   iconify = args->isSet("iconify");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic