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

List:       kde-core-devel
Subject:    fix for cookie window
From:       <pbrown () redhat ! com>
Date:       2000-09-06 23:18:01
[Download RAW message or body]

currently, the cookie window always pops up on virtual desktop #1.  Very
annoying if you are browsing w/konqy on desktop #2; looks like everything
has hung.

Here's my patch.  Someone who is doing commits probably wants to commit it
or come up with something better.  IDeally, the window should be moved to
the current desktop, but I could _not_ find a way to do this with the
interface provided to the window manager in kwin.h and netwm.h.  Probably
someone closer to that code (Matthias, hee hee) could do better, but this
works just fine.

--
  Preston Brown
  pbrown@redhat.com                                Red Hat, Inc. 

["fixcookiewin.diff" (TEXT/PLAIN)]

Index: kcookieserver.cpp
===================================================================
RCS file: /home/kde/kdelibs/kio/http/kcookiejar/kcookieserver.cpp,v
retrieving revision 1.20
diff -u -r1.20 kcookieserver.cpp
--- kcookieserver.cpp	2000/08/30 19:38:28	1.20
+++ kcookieserver.cpp	2000/09/06 23:15:59
@@ -33,6 +33,7 @@
 
 #include <kdebug.h>
 #include <kapp.h>
+#include <kwin.h>
 #include <kcmdlineargs.h>
 #include <kstddirs.h>
 #include <qtimer.h>
@@ -239,6 +240,8 @@
                     kdDebug(7104) << "Asking user for advice for cookie from " << \
cookie->host() << endl;  mPendingCookies->prepend(cookie);
                     KCookieWin *kw = new KCookieWin( 0L, cookie, mCookieJar);
+		    KWin::setOnAllDesktops(kw->winId(), true);
+		    
                     userAdvice = (KCookieAdvice) kw->advice(mCookieJar);
                     delete kw;
                     mPendingCookies->take(0);



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

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