Skip to content

Instantly share code, notes, and snippets.

@davedoesdev
Created October 7, 2012 06:40
Show Gist options
  • Save davedoesdev/3847336 to your computer and use it in GitHub Desktop.
Save davedoesdev/3847336 to your computer and use it in GitHub Desktop.
xosdd protocol enhancement
diff -ru packages.orig/xosdd-0.0/osd.c packages/xosdd-0.0/osd.c
--- packages.orig/xosdd-0.0/osd.c 2010-05-02 22:24:15.000000000 +0100
+++ packages/xosdd-0.0/osd.c 2011-04-04 21:42:40.000000000 +0100
@@ -412,6 +412,8 @@
*pos = XOSD_top;
} else if (strcmp(s, "bottom") == 0) {
*pos = XOSD_bottom;
+ } else if (strcmp(s, "middle") == 0) {
+ *pos = XOSD_middle;
} else {
ph_eprintf("can't convert '%s' to position", s);
return EINVAL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment