kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=7836d0cf3ee7cd14aec2613d9df956cd6d59a8a8

commit 7836d0cf3ee7cd14aec2613d9df956cd6d59a8a8
Author: Kim Woelders <k...@woelders.dk>
Date:   Mon Jan 6 17:20:30 2020 +0100

    windowmatches: Enable having spaces in name matches
---
 src/windowmatch.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/windowmatch.c b/src/windowmatch.c
index f0729696..3042b9be 100644
--- a/src/windowmatch.c
+++ b/src/windowmatch.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various 
contributors
- * Copyright (C) 2005-2019 Kim Woelders
+ * Copyright (C) 2005-2020 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -135,11 +135,12 @@ WindowMatchConfigLoad(FILE * fs)
    WindowMatch        *wm = 0;
    char                s[FILEPATH_LEN_MAX];
    char                s2[FILEPATH_LEN_MAX];
+   char               *p2;
    int                 i1;
 
    while (GetLine(s, sizeof(s), fs))
      {
-       i1 = ConfigParseline1(s, s2, NULL, NULL);
+       i1 = ConfigParseline1(s, s2, &p2, NULL);
        switch (i1)
          {
          case CONFIG_VERSION:
@@ -168,19 +169,19 @@ WindowMatchConfigLoad(FILE * fs)
             if (!wm)
                break;
             wm->match = MATCH_TYPE_TITLE;
-            wm->value = Estrdup(s2);
+            wm->value = Estrdup(p2);
             break;
          case WINDOWMATCH_MATCHNAME:
             if (!wm)
                break;
             wm->match = MATCH_TYPE_WM_NAME;
-            wm->value = Estrdup(s2);
+            wm->value = Estrdup(p2);
             break;
          case WINDOWMATCH_MATCHCLASS:
             if (!wm)
                break;
             wm->match = MATCH_TYPE_WM_CLASS;
-            wm->value = Estrdup(s2);
+            wm->value = Estrdup(p2);
             break;
 
          case WINDOWMATCH_WIDTH:

-- 


Reply via email to