mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-22 05:34:01 -04:00
updates from PR comment
This commit is contained in:
parent
c050f2484c
commit
25e4d1938b
2 changed files with 464 additions and 464 deletions
|
|
@ -41,10 +41,6 @@ wayland_server = dependency('wayland-server')
|
|||
xkbcommon = dependency('xkbcommon')
|
||||
math = cc.find_library('m')
|
||||
|
||||
# Add wlroots protocol directory to include path
|
||||
wlroots_incdir = wlroots.get_variable('includedir', default_value: '/usr/local/include')
|
||||
add_project_arguments('-I' + wlroots_incdir + '/wlroots-0.19/protocol', language: 'c')
|
||||
|
||||
wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
|
||||
wayland_scanner = find_program('wayland-scanner')
|
||||
wayland_scanner_server = generator(
|
||||
|
|
|
|||
18
output.c
18
output.c
|
|
@ -59,10 +59,15 @@ update_output_manager_config(struct cg_server *server)
|
|||
wlr_output_configuration_head_v1_create(config, wlr_output);
|
||||
struct wlr_box output_box;
|
||||
|
||||
wlr_output_layout_get_box(server->output_layout, wlr_output, &output_box);
|
||||
if (!wlr_box_empty(&output_box)) {
|
||||
config_head->state.x = output_box.x;
|
||||
config_head->state.y = output_box.y;
|
||||
bool in_layout = wlr_output_layout_get(server->output_layout, wlr_output) != NULL;
|
||||
config_head->state.enabled = in_layout;
|
||||
|
||||
if (in_layout) {
|
||||
wlr_output_layout_get_box(server->output_layout, wlr_output, &output_box);
|
||||
if (!wlr_box_empty(&output_box)) {
|
||||
config_head->state.x = output_box.x;
|
||||
config_head->state.y = output_box.y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -454,7 +459,6 @@ handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
|
|||
break;
|
||||
}
|
||||
|
||||
if (wlr_output_test_state(event->output, &state)) {
|
||||
wlr_output_commit_state(event->output, &state);
|
||||
}
|
||||
wlr_output_commit_state(event->output, &state);
|
||||
wlr_output_state_finish(&state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue