]> git.sesse.net Git - vlc/commitdiff
Use long instead of int32_t when passing 32-bits value to XChangeProperty.
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 11 Mar 2007 15:52:45 +0000 (15:52 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 11 Mar 2007 15:52:45 +0000 (15:52 +0000)
This seems to be the (stupid) way it has to be done - closes #670

modules/gui/skins2/x11/x11_window.cpp
modules/video_output/x11/xcommon.h

index 8ee0b069959727a6d6b55b3604a59b73177ed3dc..b97649776fe5f67748950e2178181f44830aa649 100644 (file)
@@ -73,11 +73,11 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
 
     // Changing decorations
     struct {
-        uint32_t flags;
-        uint32_t functions;
-        uint32_t decorations;
-        int32_t  input_mode;
-        uint32_t status;
+        unsigned long flags;
+        unsigned long functions;
+        unsigned long decorations;
+        signed   long input_mode;
+        unsigned long status;
     } motifWmHints;
     Atom hints_atom = XInternAtom( XDISPLAY, "_MOTIF_WM_HINTS", False );
     motifWmHints.flags = 2;    // MWM_HINTS_DECORATIONS;
index 749ac7cfbef4452ef247ab9bce644323e3d13afa..b16768b5255becb892041f9947ec7c2f9299dba4 100644 (file)
@@ -242,11 +242,11 @@ struct picture_sys_t
 
 typedef struct mwmhints_t
 {
-    uint32_t flags;
-    uint32_t functions;
-    uint32_t decorations;
-    int32_t  input_mode;
-    uint32_t status;
+    unsigned long flags;
+    unsigned long functions;
+    unsigned long decorations;
+    signed   long input_mode;
+    unsigned long status;
 } mwmhints_t;
 
 /*****************************************************************************