summaryrefslogtreecommitdiff
path: root/desktop/fvwm3/cmd_geometrywindow-move_null_check.patch
blob: 7d3c7b2f3f1df509f53192dc13f090d21c595ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- fvwm3-1.0.4.orig/fvwm/move_resize.c	2021-07-17 18:03:08.000000000 +0300
+++ fvwm3-1.0.4/fvwm/move_resize.c	2021-07-21 01:20:34.428964491 +0300
@@ -3269,13 +3269,14 @@
 
 static void set_geom_win_visible_val(char *token, bool val)
 {
-	if (token == NULL)
-		return;
-
 	Scr.gs.do_hide_position_window = !val;
 	Scr.gs.do_hide_resize_window = !val;
 
-	if (StrEquals(token, "never"))
+	if (token == NULL)
+	{
+		return;
+	}
+	else if (StrEquals(token, "never"))
 	{
 		Scr.gs.do_hide_position_window = val;
 		Scr.gs.do_hide_resize_window = val;