mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
scene_graph: Port ext_session_v1
This commit is contained in:
parent
0639bde9fb
commit
9a57966606
12 changed files with 280 additions and 192 deletions
|
|
@ -95,24 +95,6 @@ struct sway_node *node_at_coords(
|
|||
double ox = lx, oy = ly;
|
||||
wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy);
|
||||
|
||||
if (server.session_lock.locked) {
|
||||
if (server.session_lock.lock == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
struct wlr_session_lock_surface_v1 *lock_surf;
|
||||
wl_list_for_each(lock_surf, &server.session_lock.lock->surfaces, link) {
|
||||
if (lock_surf->output != wlr_output) {
|
||||
continue;
|
||||
}
|
||||
|
||||
*surface = wlr_surface_surface_at(lock_surf->surface, ox, oy, sx, sy);
|
||||
if (*surface != NULL) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// layer surfaces on the overlay layer are rendered on top
|
||||
if ((*surface = layer_surface_at(output,
|
||||
&output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue