From df9bbc10e16df720d30d8926151a204e722f530a Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 4 Aug 2024 23:04:05 -0400 Subject: [PATCH] raise window when clicked --- mouse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mouse.c b/mouse.c index 7b38672..4931d7c 100644 --- a/mouse.c +++ b/mouse.c @@ -19,7 +19,6 @@ typedef struct { static void resize_frame(Client* client) { - (void)client; if (X.curr_ev->xbutton.y > MIN_HEIGHT) { X.mode = M_RESIZE; @@ -35,8 +34,7 @@ static void toggle_float(Client* client) static void close_client(Client* client) { - (void)client; -// client_close(client); + Client_Close(client); } static void shade_client(Client* client) @@ -149,6 +147,7 @@ void Mouse_Down(XButtonEvent* ev) X.edge = E_NONE; } + Client_Raise(client); ProcessMouseEvent(ev, c, Floating, sizeof(Floating)/sizeof(Floating[0])); } } -- 2.52.0