From 3a2bf53b8f3d03d0972fd9aae415d91aa5b02e61 Mon Sep 17 00:00:00 2001 From: korei999 Date: Fri, 1 Dec 2023 13:34:22 +0200 Subject: [PATCH] remove wlr_output_damage_whole --- dwl.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/dwl.c b/dwl.c index b30bf66..64ef0c0 100644 --- a/dwl.c +++ b/dwl.c @@ -338,7 +338,6 @@ static void pointerconstraintsetregion(struct wl_listener *listener, void *data) static void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy, uint32_t time); static void printstatus(void); -static void wlr_output_damage_whole(struct wlr_output *output); static void powermgrsetmodenotify(struct wl_listener *listener, void *data); static void quit(const Arg *arg); static void rendermon(struct wl_listener *listener, void *data); @@ -649,7 +648,6 @@ buttonpress(struct wl_listener *listener, void *data) const Button *b; wlr_idle_notifier_v1_notify_activity(idle_notifier, seat); - // handlecursoractivity(false); switch (event->state) { case WLR_BUTTON_PRESSED: @@ -2455,32 +2453,12 @@ printstatus(void) dwl_ipc_output_printstatus(m); } -void -wlr_output_damage_whole(struct wlr_output *output) { - int width, height; - pixman_region32_t damage; - struct wlr_output_event_damage event; - - wlr_output_transformed_resolution(output, &width, &height); - - pixman_region32_init_rect(&damage, 0, 0, width, height); - - event = (struct wlr_output_event_damage){ - .output = output, - .damage = &damage, - }; - wl_signal_emit_mutable(&output->events.damage, &event); - - pixman_region32_fini(&damage); -} void powermgrsetmodenotify(struct wl_listener *listener, void *data) { struct wlr_output_power_v1_set_mode_event *event = data; wlr_output_enable(event->output, event->mode); - if (event->mode) - wlr_output_damage_whole(event->output); wlr_output_commit(event->output); } @@ -3457,7 +3435,8 @@ rotatetags(const Arg *arg) bool shift = false; switch(abs(i)) { - default: break; + default: + break; case SHIFT_R: shift = true; break;