X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontrol.c;h=f0c3357fc8018fb74ba33f4445597b6fa57f3a5a;hb=326681cd9c807e5be2fc9fd8e13d3026b7ec39a8;hp=ae47c9e34083c0f9d98173263f850eb1c39a992f;hpb=e2a0d9f8c960209bc03a24e04323603b3f231032;p=geometrycompositor.git diff --git a/source/control.c b/source/control.c index ae47c9e..f0c3357 100644 --- a/source/control.c +++ b/source/control.c @@ -31,8 +31,8 @@ GeometryCorrection *get_corrections(Display *display) char *name_ptr; root = DefaultRootWindow(display); - monitors_atom = XInternAtom(display, "GEOMETRY_CORRECTION_MONITORS", False); - correction_atom = XInternAtom(display, "GEOMETRY_CORRECTION", False); + monitors_atom = XInternAtom(display, "_MSP_GEOMETRY_CORRECTION_MONITORS", False); + correction_atom = XInternAtom(display, "_MSP_GEOMETRY_CORRECTION", False); XGetWindowProperty(display, root, monitors_atom, 0, 64, False, XA_STRING, &prop_type, &prop_format, &names_length, &overflow, (unsigned char **)&names); @@ -47,7 +47,7 @@ GeometryCorrection *get_corrections(Display *display) return NULL; } - ncorrections = 0; + ncorrections = (names_length>0); for(i=0; i