mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
src/view.c: store outputs the view is visible on
This commit is contained in:
parent
e52ccfbcf3
commit
382068e452
3 changed files with 44 additions and 10 deletions
|
|
@ -107,11 +107,10 @@ void
|
|||
foreign_toplevel_update_outputs(struct view *view)
|
||||
{
|
||||
assert(view->toplevel.handle);
|
||||
struct wlr_output_layout *layout = view->server->output_layout;
|
||||
|
||||
struct output *output;
|
||||
wl_list_for_each(output, &view->server->outputs, link) {
|
||||
if (output_is_usable(output) && wlr_output_layout_intersects(
|
||||
layout, output->wlr_output, &view->current)) {
|
||||
if (view_on_output(view, output)) {
|
||||
wlr_foreign_toplevel_handle_v1_output_enter(
|
||||
view->toplevel.handle, output->wlr_output);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue