]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: Update SSD hover state in cursor_rebase()
authorJohn Lindgren <john@jlindgren.net>
Tue, 6 Sep 2022 16:05:47 +0000 (12:05 -0400)
committerJohn Lindgren <john@jlindgren.net>
Tue, 6 Sep 2022 22:22:17 +0000 (18:22 -0400)
Fixes an issue where the maximize button would remain highlighted
after maximized a window.

src/cursor.c

index 3fc8efa4b8756db0db6a71efb1e2bf1c363b7661..58df0608dbb93b0e5156ab027c77672f541bb5a6 100644 (file)
@@ -43,6 +43,8 @@ cursor_rebase(struct seat *seat, uint32_t time_msec, bool force)
                surface = lab_wlr_surface_from_node(node);
        }
 
+       ssd_update_button_hover(node, &seat->server->ssd_hover_state);
+
        if (surface) {
                if (!force && surface == seat->seat->pointer_state.focused_surface) {
                        /*