1. 09 Jan, 2020 9 commits
    • Ulrich Sibiller's avatar
      Drawable.c: fix logic broken by scope cleanup · fbfef7e6
      Ulrich Sibiller authored
      xp must be declared outside the while loop!
      
      xp was reset in each interation despite being increased at the
      iteration's end!
      
      To protect against this happening again replace the while loop by a
      for loop that references xp.
      
      Bug introduced by d94f4727
      fbfef7e6
    • Ulrich Sibiller's avatar
    • Ulrich Sibiller's avatar
    • Ulrich Sibiller's avatar
      Pixmap.c: fix variable shadowing · 7977b9f8
      Ulrich Sibiller authored
      Pixmap.c: In function ‘nxagentDisconnectAllPixmaps’:
      Pixmap.c:677:19: warning: declaration of ‘r’ shadows a previous local [-Wshadow=compatible-local]
         for (int i = 0, r = 1; i < MAXCLIENTS; r = 1, i++)
                         ^
      Pixmap.c:652:7: note: shadowed declaration is here
         int r = 1;
             ^
      Pixmap.c: In function ‘nxagentReconnectAllPixmaps’:
      Pixmap.c:840:19: warning: declaration of ‘result’ shadows a previous local [-Wshadow=compatible-local]
         for (int i = 0, result = 1; i < MAXCLIENTS; result = 1, i++)
                         ^~~~~~
      Pixmap.c:807:8: note: shadowed declaration is here
         Bool result = 1;
              ^~~~~~
      7977b9f8
    • Ulrich Sibiller's avatar
      Display.c: fix shadowed/unused variable · a93e2507
      Ulrich Sibiller authored
      Display.c: In function ‘nxagentInitAndCheckVisuals’:
      Display.c:2273:10: warning: declaration of ‘matched’ shadows a previous local [-Wshadow=compatible-local]
           bool matched = false;
                ^~~~~~~
      Display.c:2258:8: note: shadowed declaration is here
         bool matched;
              ^~~~~~~
      Display.c:2258:8: warning: unused variable ‘matched’ [-Wunused-variable]
      a93e2507
    • Ulrich Sibiller's avatar
      Events.c: fix two shadowed variables · 7031219d
      Ulrich Sibiller authored
      Events.c: In function ‘nxagentDispatchEvents’:
      Events.c:1241:21: warning: declaration of ‘pScreen’ shadows a previous local [-Wshadow=compatible-local]
                 ScreenPtr pScreen = nxagentScreen(X.xbutton.window);
                           ^~~~~~~
      Events.c:827:13: note: shadowed declaration is here
         ScreenPtr pScreen = NULL;
                   ^~~~~~~
      Events.c:1383:19: warning: declaration of ‘pScreen’ shadows a previous local [-Wshadow=compatible-local]
               ScreenPtr pScreen = nxagentScreen(X.xmotion.window);
                         ^~~~~~~
      Events.c:827:13: note: shadowed declaration is here
         ScreenPtr pScreen = NULL;
                   ^~~~~~~
      
      Events.c: In function ‘nxagentDispatchEvents’:
      Events.c:1383:19: warning: declaration of ‘pScreen’ shadows a previous local [-Wshadow=compatible-local]
               ScreenPtr pScreen = nxagentScreen(X.xmotion.window);
                         ^~~~~~~
      Events.c:827:13: note: shadowed declaration is here
         ScreenPtr pScreen = NULL;
                   ^~~~~~~
      7031219d
    • Ulrich Sibiller's avatar
      Clipboard.c: fix shadowed variable · c137c2a4
      Ulrich Sibiller authored
      this was harmless but not nice nevertheless.
      
      Clipboard.c: In function ‘nxagentConvertSelection’:
      Clipboard.c:1850:9: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
           int i = nxagentFindCurrentSelectionIndex(selection);
               ^
      Clipboard.c:1736:7: note: shadowed declaration is here
         int i = nxagentFindCurrentSelectionIndex(selection);
             ^
      c137c2a4
    • Ulrich Sibiller's avatar
    • Ulrich Sibiller's avatar
      Drawable.c: fix segfault · 21079cf3
      Ulrich Sibiller authored
      Revert a wrong change that misteriously slipped in via the comment
      reformatting commit 0133d461.
      
      Fixes ArcticaProject/nx-libs#893
      21079cf3
  2. 07 Jan, 2020 1 commit
    • Ulrich Sibiller's avatar
      Rootless.c: fix wring datatype being used · 105cd2be
      Ulrich Sibiller authored
      Using XlibAtom here is wrong. On a 64bit system the size of this type
      is 8 bytes (64bit). At this stage we do not read Xlib datatypes but
      wire datatypes. Over the wire an Atom is always 32bit, so we need to
      use CARD32 here.
      
      Fixes ArcticaProject/nx-libs#894
      105cd2be
  3. 06 Jan, 2020 1 commit
  4. 05 Jan, 2020 29 commits