summaryrefslogtreecommitdiff
path: root/desktop/velox/build-fixes.patch
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-10-23 10:42:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-23 10:42:32 +0700
commita9902270f25119680ae5af532d83b9ec4b74a35e (patch)
tree77e2cf9d4085807e3606d91a221e2cdf492458f3 /desktop/velox/build-fixes.patch
parent7982acf2f8c574ae7c58c6d075480ed26fe8a8c5 (diff)
downloadslackbuilds-a9902270f25119680ae5af532d83b9ec4b74a35e.tar.gz
desktop/velox: Added (simple window manager).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/velox/build-fixes.patch')
-rw-r--r--desktop/velox/build-fixes.patch74
1 files changed, 74 insertions, 0 deletions
diff --git a/desktop/velox/build-fixes.patch b/desktop/velox/build-fixes.patch
new file mode 100644
index 0000000000..730080f434
--- /dev/null
+++ b/desktop/velox/build-fixes.patch
@@ -0,0 +1,74 @@
+diff -up src/velox-0.0.3/modules/alsa.c.orig src/velox-0.0.3/modules/alsa.c
+--- src/velox-0.0.3/modules/alsa.c.orig 2014-03-27 03:59:31.000000000 -0600
++++ src/velox-0.0.3/modules/alsa.c 2014-03-27 04:00:01.000000000 -0600
+@@ -20,8 +20,8 @@
+ #include <stdio.h>
+ #include <assert.h>
+ #include <yaml.h>
+-#include <asoundlib.h>
+-#include <mixer.h>
++#include <alsa/asoundlib.h>
++#include <alsa/mixer.h>
+
+ #include <velox/velox.h>
+ #include <velox/module.h>
+diff -up src/velox-0.0.3/velox/event.c.orig src/velox-0.0.3/velox/event.c
+--- src/velox-0.0.3/velox/event.c.orig 2014-03-27 03:57:53.000000000 -0600
++++ src/velox-0.0.3/velox/event.c 2014-03-27 03:58:00.000000000 -0600
+@@ -272,7 +272,7 @@ static void unmap_notify(xcb_unmap_notif
+
+ xcb_grab_server(c);
+
+- property_values[0] = XCB_WM_STATE_WITHDRAWN;
++ property_values[0] = XCB_ICCCM_WM_STATE_WITHDRAWN;
+ property_values[1] = 0;
+ xcb_change_property(c, XCB_PROP_MODE_REPLACE, window->window_id, WM_STATE, WM_STATE, 32, 2, property_values);
+
+diff -up src/velox-0.0.3/velox/velox.c.orig src/velox-0.0.3/velox/velox.c
+--- src/velox-0.0.3/velox/velox.c.orig 2014-03-27 03:56:23.000000000 -0600
++++ src/velox-0.0.3/velox/velox.c 2014-03-27 03:57:38.000000000 -0600
+@@ -314,7 +314,7 @@ void show_window(xcb_window_t window_id)
+
+ DEBUG_ENTER
+
+- property_values[0] = XCB_WM_STATE_NORMAL;
++ property_values[0] = XCB_ICCCM_WM_STATE_NORMAL;
+ property_values[1] = 0;
+ xcb_change_property(c, XCB_PROP_MODE_REPLACE, window_id, WM_STATE, WM_STATE, 32, 2, property_values);
+
+@@ -327,7 +327,7 @@ void hide_window(xcb_window_t window_id)
+
+ DEBUG_ENTER
+
+- property_values[0] = XCB_WM_STATE_WITHDRAWN; // FIXME: Maybe this should be iconic?
++ property_values[0] = XCB_ICCCM_WM_STATE_WITHDRAWN; // FIXME: Maybe this should be iconic?
+ property_values[1] = 0;
+ xcb_change_property(c, XCB_PROP_MODE_REPLACE, window_id, WM_STATE, WM_STATE, 32, 2, property_values);
+
+@@ -766,7 +766,7 @@ void manage(xcb_window_t window_id)
+
+ xcb_map_window(c, window->window_id);
+
+- property_values[0] = XCB_WM_STATE_NORMAL;
++ property_values[0] = XCB_ICCCM_WM_STATE_NORMAL;
+ property_values[1] = 0;
+ xcb_change_property(c, XCB_PROP_MODE_REPLACE, window->window_id, WM_STATE, WM_STATE, 32, 2, property_values);
+
+@@ -885,7 +885,7 @@ void manage_existing_windows()
+ continue;
+ }
+
+- if (window_attributes_replies[child]->map_state == XCB_MAP_STATE_VIEWABLE || ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_WM_STATE_ICONIC)
++ if (window_attributes_replies[child]->map_state == XCB_MAP_STATE_VIEWABLE || ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_ICCCM_WM_STATE_ICONIC)
+ {
+ manage(children[child]);
+ }
+@@ -894,7 +894,7 @@ void manage_existing_windows()
+ {
+ if (*((xcb_window_t *) xcb_get_property_value(property_replies[child])) &&
+ (window_attributes_replies[child]->map_state == XCB_MAP_STATE_VIEWABLE ||
+- ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_WM_STATE_ICONIC))
++ ((uint32_t *) xcb_get_property_value(state_replies[child]))[0] == XCB_ICCCM_WM_STATE_ICONIC))
+ {
+ manage(children[child]);
+ }