]> git.mdlowis.com Git - proto/anvil.git/commitdiff
raise window when clicked
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 5 Aug 2024 03:04:05 +0000 (23:04 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 5 Aug 2024 03:04:05 +0000 (23:04 -0400)
mouse.c

diff --git a/mouse.c b/mouse.c
index 7b386721df4a97289f466b996d1f00cced81455d..4931d7c45b608f38e5b64f02c7dfe18faab38819 100644 (file)
--- 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]));
     }
 }