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

List:       kde-commits
Subject:    kdeutils
From:       George Staikos <staikos () kde ! org>
Date:       2003-02-18 8:23:08
[Download RAW message or body]

CVS commit by staikos: 

more Xinerama obedience


  M +11 -3     kdf/kwikdisk.cpp   1.42
  M +11 -3     klaptopdaemon/daemondock.cpp   1.49


--- kdeutils/kdf/kwikdisk.cpp  #1.41:1.42
@@ -432,6 +432,14 @@ void DockWidget::showPopupMenu( void )
   QRect g = KWin::info(winId()).geometry;
   QSize s = mPopupMenu->sizeHint();
+  KConfig gc("kdeglobals", false, false);
+  gc.setGroup("Windows");
+  QRect desk;
+  if (gc.readBoolEntry("XineramaEnabled", true) &&
+        gc.readBoolEntry("XineramaPlacementEnabled", true)) {
   int scnum = QApplication::desktop()->screenNumber(this);
-  QRect desk = QApplication::desktop()->screenGeometry(scnum);
+    desk = QApplication::desktop()->screenGeometry(scnum);
+  } else {
+    desk = QApplication::desktop()->geometry();
+  }
 
   if( g.x() > desk.center().x() &&

--- kdeutils/klaptopdaemon/daemondock.cpp  #1.48:1.49
@@ -201,6 +201,14 @@ laptop_dock::invokeBrightness()
         }
         if (!brightness_widget->isVisible()) {
+                KConfig gc("kdeglobals", false, false);
+                gc.setGroup("Windows");
+                QRect desktop;
+                if (gc.readBoolEntry("XineramaEnabled", true) &&
+                    gc.readBoolEntry("XineramaPlacementEnabled", true)) {
                 int scnum = QApplication::desktop()->screenNumber(this);
-                QRect desktop = QApplication::desktop()->screenGeometry(scnum);
+                        desktop =QApplication::desktop()->screenGeometry(scnum);
+                } else {
+                        desktop = QApplication::desktop()->geometry();
+                }
                 int sw = desktop.width();
                 int sh = desktop.height();


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

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