mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Simplify desktop_view_at()
This commit is contained in:
parent
d2375b025d
commit
231076a58f
1 changed files with 10 additions and 14 deletions
|
|
@ -308,12 +308,18 @@ desktop_view_at(struct server *server, double lx, double ly,
|
||||||
if (!output) {
|
if (!output) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if ((*surface = layer_surface_at(&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
|
||||||
lx, ly, sx, sy))) {
|
*surface = layer_surface_at(
|
||||||
|
&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
||||||
|
lx, ly, sx, sy);
|
||||||
|
if (surface)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if ((*surface = layer_surface_at(&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP],
|
|
||||||
lx, ly, sx, sy))) {
|
*surface = layer_surface_at(
|
||||||
|
&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP],
|
||||||
|
lx, ly, sx, sy);
|
||||||
|
if (surface)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -333,14 +339,4 @@ desktop_view_at(struct server *server, double lx, double ly,
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((*surface = layer_surface_at(&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM],
|
|
||||||
lx, ly, sx, sy))) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
if ((*surface = layer_surface_at(&output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND],
|
|
||||||
lx, ly, sx, sy))) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue