mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/view.c: Fix output handling with no outputs available
Reported-by: @Flrian
This commit is contained in:
parent
5d0faa2333
commit
b8995e45dc
1 changed files with 4 additions and 2 deletions
|
|
@ -129,8 +129,8 @@ view_move(struct view *view, double x, double y)
|
||||||
void
|
void
|
||||||
view_moved(struct view *view)
|
view_moved(struct view *view)
|
||||||
{
|
{
|
||||||
view_discover_output(view);
|
|
||||||
wlr_scene_node_set_position(&view->scene_tree->node, view->x, view->y);
|
wlr_scene_node_set_position(&view->scene_tree->node, view->x, view->y);
|
||||||
|
view_discover_output(view);
|
||||||
ssd_update_geometry(view);
|
ssd_update_geometry(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -585,7 +585,9 @@ view_discover_output(struct view *view)
|
||||||
struct output *new_output = view_output(view);
|
struct output *new_output = view_output(view);
|
||||||
if (old_output != new_output) {
|
if (old_output != new_output) {
|
||||||
view->output = new_output;
|
view->output = new_output;
|
||||||
|
if (new_output) {
|
||||||
view_output_enter(view, new_output->wlr_output);
|
view_output_enter(view, new_output->wlr_output);
|
||||||
|
}
|
||||||
if (old_output) {
|
if (old_output) {
|
||||||
view_output_leave(view, old_output->wlr_output);
|
view_output_leave(view, old_output->wlr_output);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue