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

List:       kde-core-devel
Subject:    Patch for kdebase/kstart
From:       Antonio Larrosa =?iso-8859-15?q?Jim=E9nez?= <larrosa () kde ! org>
Date:       2002-11-07 15:52:12
[Download RAW message or body]

Hi,

This one fixes kstart so that at least it doesn't accept to move a window 
to a wrong desktop. Note that there are other ways to do that, but at 
least we make it more difficult this way.

Can I commit?

Greetings,

--
Antonio Larrosa Jimenez
KDE core developer - larrosa@kde.org
http://devel-home.kde.org/~larrosa/
Search for beauty, it's the only thing which is worth in this nasty world.



["kstart.diff" (text/x-diff)]

Index: kstart.cpp
===================================================================
RCS file: /home/kde/kdebase/kstart/kstart.cpp,v
retrieving revision 1.39
diff -u -p -r1.39 kstart.cpp
--- kstart.cpp	2002/09/08 10:50:29	1.39
+++ kstart.cpp	2002/11/07 15:24:00
@@ -144,7 +144,7 @@ void KStart::applyStyle(WId w ) {
 
     NETWinInfo info( qt_xdisplay(), w, qt_xrootwin(), NET::WMState );
 
-    if (desktop != 0)
+    if (desktop != 0 && desktop <= kwinmodule->numberOfDesktops() )
 	info.setDesktop( desktop );
 
     if (iconify) {


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

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