mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
parent
dc303be2cc
commit
c59491c19e
1 changed files with 4 additions and 0 deletions
|
@ -1016,6 +1016,10 @@ bool find_any_node_in(monitor_t *m, desktop_t *d, node_t *n, coordinates_t *ref,
|
||||||
|
|
||||||
void find_first_ancestor(coordinates_t *ref, coordinates_t *dst, node_select_t *sel)
|
void find_first_ancestor(coordinates_t *ref, coordinates_t *dst, node_select_t *sel)
|
||||||
{
|
{
|
||||||
|
if (ref->node == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
coordinates_t loc = {ref->monitor, ref->desktop, ref->node};
|
coordinates_t loc = {ref->monitor, ref->desktop, ref->node};
|
||||||
while ((loc.node = loc.node->parent) != NULL) {
|
while ((loc.node = loc.node->parent) != NULL) {
|
||||||
if (node_matches(&loc, ref, sel)) {
|
if (node_matches(&loc, ref, sel)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue