mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
output: check whether outputs are enabled
This commit is contained in:
parent
a53dca91ce
commit
23f8d609ce
1 changed files with 12 additions and 0 deletions
12
output.c
12
output.c
|
|
@ -235,6 +235,10 @@ handle_output_damage_frame(struct wl_listener *listener, void *data)
|
|||
{
|
||||
struct cg_output *output = wl_container_of(listener, output, damage_frame);
|
||||
|
||||
if (!output->wlr_output->enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool needs_frame;
|
||||
pixman_region32_t damage;
|
||||
pixman_region32_init(&damage);
|
||||
|
|
@ -263,6 +267,10 @@ handle_output_transform(struct wl_listener *listener, void *data)
|
|||
{
|
||||
struct cg_output *output = wl_container_of(listener, output, transform);
|
||||
|
||||
if (!output->wlr_output->enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct cg_view *view;
|
||||
wl_list_for_each(view, &output->server->views, link) {
|
||||
view_position(view);
|
||||
|
|
@ -274,6 +282,10 @@ handle_output_mode(struct wl_listener *listener, void *data)
|
|||
{
|
||||
struct cg_output *output = wl_container_of(listener, output, mode);
|
||||
|
||||
if (!output->wlr_output->enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct cg_view *view;
|
||||
wl_list_for_each(view, &output->server->views, link) {
|
||||
view_position(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue