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

List:       kde-commits
Subject:    [libkscreen] backends/xrandr: Always set the screenSize even if we have nothing to do.
From:       Àlex_Fiestas <afiestas () kde ! org>
Date:       2013-07-31 20:32:13
Message-ID: E1V4d49-0001LO-V3 () scm ! kde ! org
[Download RAW message or body]

Git commit 2e5eedbe5af9c54a7b77a3024bc4c890f8cd566d by Àlex Fiestas.
Committed on 31/07/2013 at 20:25.
Pushed by afiestas into branch 'master'.

Always set the screenSize even if we have nothing to do.

The FGLRX-Legacy driver is a smartass and changes the configuration
for us, so it can happen that the configuration WE want is the same
configuration the DRIVER sets automatically, thing is the driver is
forgetting to set the screenSize.

This adds support for smartass drivers.

M  +3    -0    backends/xrandr/xrandrconfig.cpp

http://commits.kde.org/libkscreen/2e5eedbe5af9c54a7b77a3024bc4c890f8cd566d

diff --git a/backends/xrandr/xrandrconfig.cpp b/backends/xrandr/xrandrconfig.cpp
index 6edb40c..ff20c79 100644
--- a/backends/xrandr/xrandrconfig.cpp
+++ b/backends/xrandr/xrandrconfig.cpp
@@ -235,6 +235,9 @@ void XRandRConfig::applyKScreenConfig(KScreen::Config *config)
 
     //If there is nothing to do, not even bother
     if (toDisable.isEmpty() && toEnable.isEmpty() && toChange.isEmpty()) {
+        if (newSize != m_screen->currentSize()) {
+            setScreenSize(newSize);
+        }
         return;
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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