summaryrefslogtreecommitdiff
path: root/user/lxqt-config/revert-kscren-bump.patch
blob: bb9461b72a670dc5a293430d38de1faa11178114 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
diff '--color=auto' -Nurd lxqt-config-1.4.0/CMakeLists.txt lxqt-config-1.4.0.new/CMakeLists.txt
--- lxqt-config-1.4.0/CMakeLists.txt	2023-11-05 03:36:31.000000000 -0800
+++ lxqt-config-1.4.0.new/CMakeLists.txt	2023-11-26 02:44:43.889325759 -0800
@@ -26,7 +26,7 @@
 set(CMAKE_AUTORCC ON)
 
 set(KF5_MINIMUM_VERSION "5.36.0")
-set(KF5SCREEN_MINIMUM_VERSION "5.27.0")
+set(KF5SCREEN_MINIMUM_VERSION "5.2.0")
 set(LXQT_MINIMUM_VERSION "1.4.0")
 set(QT_MINIMUM_VERSION "5.15.0")
 
diff '--color=auto' -Nurd lxqt-config-1.4.0/lxqt-config-monitor/kscreenutils.cpp lxqt-config-1.4.0.new/lxqt-config-monitor/kscreenutils.cpp
--- lxqt-config-1.4.0/lxqt-config-monitor/kscreenutils.cpp	2023-11-05 03:36:31.000000000 -0800
+++ lxqt-config-1.4.0.new/lxqt-config-monitor/kscreenutils.cpp	2023-11-26 02:45:27.458971215 -0800
@@ -63,7 +63,7 @@
         output->setPos(pos);
         output->setEnabled(true);
         //first left one as primary
-        output->setPriority(width == 0 ? 1 : 0);
+		output->setPrimary(width == 0);
         KScreen::ModePtr mode(output->currentMode());
         //if (!mode)
         {
diff '--color=auto' -Nurd lxqt-config-1.4.0/lxqt-config-monitor/loadsettings.cpp lxqt-config-1.4.0.new/lxqt-config-monitor/loadsettings.cpp
--- lxqt-config-1.4.0/lxqt-config-monitor/loadsettings.cpp	2023-11-05 03:36:31.000000000 -0800
+++ lxqt-config-1.4.0.new/lxqt-config-monitor/loadsettings.cpp	2023-11-26 02:46:05.328663054 -0800
@@ -133,7 +133,7 @@
                 if( !output->isConnected() )
                     continue;
                 output->setEnabled( monitor.enabled );
-                output->setPriority( monitor.primary ? 1 : 0 );
+				output->setPrimary( monitor.primary );
                 output->setPos( QPoint(monitor.xPos, monitor.yPos) );
                 output->setRotation( (KScreen::Output::Rotation)(monitor.rotation) );
                 // output->setCurrentModeId could fail. KScreen sometimes changes mode Id.
diff '--color=auto' -Nurd lxqt-config-1.4.0/lxqt-config-monitor/monitorwidget.cpp lxqt-config-1.4.0.new/lxqt-config-monitor/monitorwidget.cpp
--- lxqt-config-1.4.0/lxqt-config-monitor/monitorwidget.cpp	2023-11-05 03:36:31.000000000 -0800
+++ lxqt-config-1.4.0.new/lxqt-config-monitor/monitorwidget.cpp	2023-11-26 02:47:02.698196214 -0800
@@ -138,7 +138,7 @@
     if (config->connectedOutputs().count() == 1) {
         setOnlyMonitor(true);
         // There isn't always a primary output. Gross.
-        output->setPriority(1);
+		output->setPrimary(true);
     }
 
     ui.xPosSpinBox->setValue(output->pos().x());
@@ -208,7 +208,7 @@
     ui.xPosSpinBox->setVisible(idx == ExtendDisplay);
     ui.yPosSpinBox->setVisible(idx == ExtendDisplay);
 
-    output->setPriority(idx == PrimaryDisplay ? 1 : 0);
+	output->setPrimary(idx == PrimaryDisplay);
     if(idx == PrimaryDisplay)
         emit primaryOutputChanged(this);
 }