mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
parent
760b148a5f
commit
8e6f769d6f
1 changed files with 6 additions and 6 deletions
12
src/query.c
12
src/query.c
|
@ -527,6 +527,8 @@ monitor_select_t make_monitor_select(void)
|
||||||
|
|
||||||
int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
{
|
{
|
||||||
|
dst->node = NULL;
|
||||||
|
|
||||||
coordinates_t ref_copy = *ref;
|
coordinates_t ref_copy = *ref;
|
||||||
ref = &ref_copy;
|
ref = &ref_copy;
|
||||||
char *desc_copy = copy_string(desc, strlen(desc));
|
char *desc_copy = copy_string(desc, strlen(desc));
|
||||||
|
@ -565,8 +567,6 @@ int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
return SELECTOR_BAD_MODIFIERS;
|
return SELECTOR_BAD_MODIFIERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
dst->node = NULL;
|
|
||||||
|
|
||||||
direction_t dir;
|
direction_t dir;
|
||||||
cycle_dir_t cyc;
|
cycle_dir_t cyc;
|
||||||
history_dir_t hdi;
|
history_dir_t hdi;
|
||||||
|
@ -676,6 +676,8 @@ int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
|
|
||||||
int desktop_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
int desktop_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
{
|
{
|
||||||
|
dst->desktop = NULL;
|
||||||
|
|
||||||
if (*desc == '%') {
|
if (*desc == '%') {
|
||||||
locate_desktop(desc + 1, dst);
|
locate_desktop(desc + 1, dst);
|
||||||
goto end;
|
goto end;
|
||||||
|
@ -708,8 +710,6 @@ int desktop_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
return SELECTOR_BAD_MODIFIERS;
|
return SELECTOR_BAD_MODIFIERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
dst->desktop = NULL;
|
|
||||||
|
|
||||||
cycle_dir_t cyc;
|
cycle_dir_t cyc;
|
||||||
history_dir_t hdi;
|
history_dir_t hdi;
|
||||||
uint16_t idx;
|
uint16_t idx;
|
||||||
|
@ -794,6 +794,8 @@ end:
|
||||||
|
|
||||||
int monitor_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
int monitor_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
{
|
{
|
||||||
|
dst->monitor = NULL;
|
||||||
|
|
||||||
if (*desc == '%') {
|
if (*desc == '%') {
|
||||||
locate_monitor(desc + 1, dst);
|
locate_monitor(desc + 1, dst);
|
||||||
goto end;
|
goto end;
|
||||||
|
@ -825,8 +827,6 @@ int monitor_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
|
||||||
return SELECTOR_BAD_MODIFIERS;
|
return SELECTOR_BAD_MODIFIERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
dst->monitor = NULL;
|
|
||||||
|
|
||||||
direction_t dir;
|
direction_t dir;
|
||||||
cycle_dir_t cyc;
|
cycle_dir_t cyc;
|
||||||
history_dir_t hdi;
|
history_dir_t hdi;
|
||||||
|
|
Loading…
Add table
Reference in a new issue