summaryrefslogtreecommitdiff
path: root/plugins/xrandr
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-21 19:36:58 +0100
committerLuke from DC <[email protected]>2021-02-01 03:45:51 +0000
commit5c5bc168873c840f64545527cd245b2e87ada488 (patch)
treead0e563b9cf52e45b53f9206385c7cd26f0ff9df /plugins/xrandr
parent2b43bc1c44e26d1ba9c6e25968c6284d448638f4 (diff)
downloadmate-settings-daemon-5c5bc168873c840f64545527cd245b2e87ada488.tar.bz2
mate-settings-daemon-5c5bc168873c840f64545527cd245b2e87ada488.tar.xz
cppcheck warning: known condition is always true
Diffstat (limited to 'plugins/xrandr')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 0e157a8..7e0a8d9 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -2050,11 +2050,10 @@ mirror_outputs_cb(GtkCheckMenuItem *item, gpointer data)
struct MsdXrandrManagerPrivate *priv = manager->priv;
MateRRScreen *screen = priv->rw_screen;
- if (gtk_check_menu_item_get_active(item)){
-
+ if (gtk_check_menu_item_get_active (item)) {
MateRRConfig *config;
- config = make_clone_setup (screen);
- if (!config || config == NULL){
+
+ if ((config = make_clone_setup (screen)) == NULL) {
error_message (manager, _("Mirroring outputs not supported"), NULL, NULL);
}