mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
output: remove lx, ly
Fixes https://github.com/swaywm/wlroots/issues/1610
This commit is contained in:
parent
930e37eae9
commit
1515c56cae
7 changed files with 34 additions and 48 deletions
|
|
@ -23,7 +23,7 @@ static void output_send_to_resource(struct wl_resource *resource) {
|
|||
struct wlr_output *output = wlr_output_from_resource(resource);
|
||||
const uint32_t version = wl_resource_get_version(resource);
|
||||
if (version >= WL_OUTPUT_GEOMETRY_SINCE_VERSION) {
|
||||
wl_output_send_geometry(resource, output->lx, output->ly,
|
||||
wl_output_send_geometry(resource, 0, 0,
|
||||
output->phys_width, output->phys_height, output->subpixel,
|
||||
output->make, output->model, output->transform);
|
||||
}
|
||||
|
|
@ -223,22 +223,6 @@ void wlr_output_set_transform(struct wlr_output *output,
|
|||
wlr_signal_emit_safe(&output->events.transform, output);
|
||||
}
|
||||
|
||||
void wlr_output_set_position(struct wlr_output *output, int32_t lx,
|
||||
int32_t ly) {
|
||||
if (lx == output->lx && ly == output->ly) {
|
||||
return;
|
||||
}
|
||||
|
||||
output->lx = lx;
|
||||
output->ly = ly;
|
||||
|
||||
// TODO: only send geometry and done
|
||||
struct wl_resource *resource;
|
||||
wl_resource_for_each(resource, &output->resources) {
|
||||
output_send_to_resource(resource);
|
||||
}
|
||||
}
|
||||
|
||||
void wlr_output_set_scale(struct wlr_output *output, float scale) {
|
||||
if (output->scale == scale) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -127,10 +127,6 @@ static void output_layout_reconfigure(struct wlr_output_layout *layout) {
|
|||
max_x += box->width;
|
||||
}
|
||||
|
||||
wl_list_for_each(l_output, &layout->outputs, link) {
|
||||
wlr_output_set_position(l_output->output, l_output->x, l_output->y);
|
||||
}
|
||||
|
||||
wlr_signal_emit_safe(&layout->events.change, layout);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -122,8 +122,6 @@ struct wlr_output_configuration_head_v1 *
|
|||
config_head->state.custom_mode.width = output->width;
|
||||
config_head->state.custom_mode.height = output->height;
|
||||
config_head->state.custom_mode.refresh = output->refresh;
|
||||
config_head->state.x = output->lx;
|
||||
config_head->state.y = output->ly;
|
||||
config_head->state.transform = output->transform;
|
||||
config_head->state.scale = output->scale;
|
||||
return config_head;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue