mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
wlr_scene: Ignore disabled outputs
This commit is contained in:
parent
f0e31e806f
commit
ceff381747
1 changed files with 6 additions and 1 deletions
|
@ -313,6 +313,10 @@ static void update_node_update_outputs(struct wlr_scene_node *node,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!scene_output->output->enabled) {
|
||||
continue;
|
||||
}
|
||||
|
||||
struct wlr_box output_box = {
|
||||
.x = scene_output->x,
|
||||
.y = scene_output->y,
|
||||
|
@ -1154,7 +1158,8 @@ static void scene_output_handle_commit(struct wl_listener *listener, void *data)
|
|||
|
||||
if (event->committed & (WLR_OUTPUT_STATE_MODE |
|
||||
WLR_OUTPUT_STATE_TRANSFORM |
|
||||
WLR_OUTPUT_STATE_SCALE)) {
|
||||
WLR_OUTPUT_STATE_SCALE |
|
||||
WLR_OUTPUT_STATE_ENABLED)) {
|
||||
scene_output_update_geometry(scene_output);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue