ecere/XInterface: 64 bit X11 fixes
authorJerome St-Louis <jerome@ecere.com>
Mon, 11 Feb 2013 03:39:40 +0000 (22:39 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sat, 16 Feb 2013 06:03:04 +0000 (01:03 -0500)
ecere/ecere.epj
ecere/src/gui/drivers/XInterface.ec

index 8b10c80..a8e9c1c 100644 (file)
@@ -43,7 +43,7 @@
                "GL"
             ],
             "LibraryDirs" : [
-               "../deps/libungif-4.1.1/obj/release.$(PLATFORM)",
+               "../deps/libungif-4.1.1/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
                "/usr/X11R6/lib"
             ]
          }
index fc9f02a..820c162 100644 (file)
@@ -275,7 +275,7 @@ static void RepositionDesktop(bool updateChildren)
       
       if(data)
       {
-         current = *(int *)data;
+         current = *(long *)data;
          XFree(data);
          data = null;
 
@@ -284,7 +284,7 @@ static void RepositionDesktop(bool updateChildren)
    }   
    if(atoms[_net_workarea] != None)
    {
-      int *workareas;
+      long *workareas;
 
       if(XGetWindowProperty(xGlobalDisplay, x_root, atoms[_net_workarea], 0, (4 * 32),
                             False, AnyPropertyType, &type, &format, &len,
@@ -306,7 +306,7 @@ static void RepositionDesktop(bool updateChildren)
   
       if(data)
       {
-         workareas = (int *)data;
+         workareas = (long *)data;
      
          x = workareas[current * 4];
          y = workareas[current * 4 + 1];
@@ -895,11 +895,11 @@ static int MyXIOErrorHandler(X11Display * display)
 
 struct MWM_Hints
 {
-  uint flags;
-  uint functions;
-  uint decorations;
-  int inputMode;
-  uint status;
+  unsigned long flags;
+  unsigned long functions;
+  unsigned long decorations;
+  long inputMode;
+  unsigned long status;
 };
 
 static void WaitForViewableWindow(Window window)
@@ -2218,7 +2218,7 @@ class XInterface : Interface
                 0, 0, 0
             };
             XChangeProperty(xGlobalDisplay, windowHandle, atoms[_motif_wm_hints], atoms[_motif_wm_hints], 32,
-               PropModeReplace, (unsigned char*)&hints, sizeof(hints)/4);
+               PropModeReplace, (unsigned char*)&hints, 5);
          }
          if(atoms[_net_wm_pid] != None)
          {