File dmxviewer-buildfix.diff of Package dmxviewer

--- src/dmxviewer.c
+++ src/dmxviewer.c
@@ -480,12 +480,12 @@
 	free (dmx_atom_rep);
     }
 
-    wm_hints = xcb_alloc_wm_hints ();
+    wm_hints = calloc(1, sizeof(xcb_wm_hints_t));
     if (wm_hints)
     {
 	xcb_wm_hints_set_input (wm_hints, 1);
 	xcb_set_wm_hints (c, w, wm_hints);
-	xcb_free_wm_hints (wm_hints);
+	free (wm_hints);
     }
 
     wm_protocols_rep = xcb_intern_atom_reply (c, wm_protocols, NULL);
@@ -503,7 +503,7 @@
     }
     
     if (wm_take_focus_atom)
-	xcb_set_wm_protocols (c, w, 1, &wm_take_focus_atom);
+	xcb_set_wm_protocols (c, wm_protocols_atom, w, 1, &wm_take_focus_atom);
 
     if (fullscreen)
     {
openSUSE Build Service is sponsored by