-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I can't live without submiting a patch, the result of this OCD is attached.

Cheers,
Uli
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEbBAEBCAAGBQJKOnYwAAoJECLkKOvLj8sGOl8H9RB9hb0XvzoBgs77l5hn9Ann
Zj/YtQafVL46DxCcaQmibUdYX5UUnbxA97Q7ABXWqhzuoog4H/drFNj1bExrjj+x
yYNhBHnn67p0nbHcibI/liRuvZXFMmovWs0GVUnxbwmJej1jpwrS0e/OPN9V6ffU
IMKm96ji4nMFr8SVWuiRRtKu2Wbt26RsyLUi1TN1jt+x7G+xM+2Gt3Rxf8o30c1U
j8OQx7i09pag2WNA8vMOYuYSrbo3KtvM0yxUKPdDkSkOUiIK7yR+TDKbsdUItkKc
c695Boa3zv9+0JhYj1jMQ3Vt8SLMiyQEoAkvhikCFJGptcYWFO+C6++FdVGp3g==
=4Ayn
-----END PGP SIGNATURE-----
>From 6b9b422164fb846c0b0e61575df92d7bc020620b Mon Sep 17 00:00:00 2001
From: Uli Schlachter <psyc...@znc.in>
Date: Thu, 18 Jun 2009 18:33:32 +0200
Subject: [PATCH] Inline client_real_stack()

This function is only called from one place and there is no reason not
to inline it there.

Signed-off-by: Uli Schlachter <psyc...@znc.in>
---
 client.c |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/client.c b/client.c
index c2a3e08..2ad0905 100644
--- a/client.c
+++ b/client.c
@@ -372,12 +372,16 @@ client_layer_translator(client_t *c)
  * \todo It might be worth stopping to restack everyone and only stack `c'
  * relatively to the first matching in the list.
  */
-static void
-client_real_stack(void)
+void
+client_stack_refresh()
 {
     uint32_t config_win_vals[2];
     layer_t layer;
 
+    if (!globalconf.client_need_stack_refresh)
+        return;
+    globalconf.client_need_stack_refresh = false;
+
     config_win_vals[0] = XCB_NONE;
     config_win_vals[1] = XCB_STACK_MODE_ABOVE;
 
@@ -424,15 +428,6 @@ client_real_stack(void)
     }
 }
 
-void
-client_stack_refresh()
-{
-    if (!globalconf.client_need_stack_refresh)
-        return;
-    globalconf.client_need_stack_refresh = false;
-    client_real_stack();
-}
-
 /** Manage a new client.
  * \param w The window.
  * \param wgeom Window geometry.
-- 
1.6.3.1

Reply via email to