cmd_geometrywindow-move_null_check.patch 548 B

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