int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
{
+ dst->node = NULL;
+
coordinates_t ref_copy = *ref;
ref = &ref_copy;
char *desc_copy = copy_string(desc, strlen(desc));
return SELECTOR_BAD_MODIFIERS;
}
- dst->node = NULL;
-
direction_t dir;
cycle_dir_t cyc;
history_dir_t hdi;
int desktop_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
{
+ dst->desktop = NULL;
+
if (*desc == '%') {
locate_desktop(desc + 1, dst);
goto end;
return SELECTOR_BAD_MODIFIERS;
}
- dst->desktop = NULL;
-
cycle_dir_t cyc;
history_dir_t hdi;
uint16_t idx;
int monitor_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
{
+ dst->monitor = NULL;
+
if (*desc == '%') {
locate_monitor(desc + 1, dst);
goto end;
return SELECTOR_BAD_MODIFIERS;
}
- dst->monitor = NULL;
-
direction_t dir;
cycle_dir_t cyc;
history_dir_t hdi;