mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
output: fix invisible cursor after wlopm --off && wlopm --on
Use the same fix/workaround as in output_update_for_layout_change() to make sure that the cursor is also visible after (re-)enabling an output in handle_output_power_manager_set_mode().
This commit is contained in:
parent
3aa3edd356
commit
125bab4796
1 changed files with 7 additions and 0 deletions
|
|
@ -568,6 +568,8 @@ output_usable_area_in_layout_coords(struct output *output)
|
||||||
void
|
void
|
||||||
handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
|
handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
|
struct server *server = wl_container_of(listener, server,
|
||||||
|
output_power_manager_set_mode);
|
||||||
struct wlr_output_power_v1_set_mode_event *event = data;
|
struct wlr_output_power_v1_set_mode_event *event = data;
|
||||||
|
|
||||||
switch (event->mode) {
|
switch (event->mode) {
|
||||||
|
|
@ -581,6 +583,11 @@ handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
|
||||||
wlr_output_rollback(event->output);
|
wlr_output_rollback(event->output);
|
||||||
}
|
}
|
||||||
wlr_output_commit(event->output);
|
wlr_output_commit(event->output);
|
||||||
|
/*
|
||||||
|
* Re-set the cursor image so that the cursor
|
||||||
|
* isn't invisible on the newly enabled output.
|
||||||
|
*/
|
||||||
|
cursor_update_image(&server->seat);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue