[Xfce4-commits] <xfwm4:master> Allow only regular windows to be placed either above or below.

Olivier Fourdan noreply at xfce.org
Wed Feb 24 20:28:01 CET 2010


Updating branch refs/heads/master
         to 98561a5d1f99212eb5be60a71cf9f36f4959686f (commit)
       from 88b0f9105f8a8a688a72743ccf75907f2fed2497 (commit)

commit 98561a5d1f99212eb5be60a71cf9f36f4959686f
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Feb 24 20:26:52 2010 +0100

    Allow only regular windows to be placed either above or below.

 src/client.c |    6 ++++--
 src/client.h |    4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/client.c b/src/client.c
index ea26f70..c603d96 100644
--- a/src/client.c
+++ b/src/client.c
@@ -3087,7 +3087,8 @@ void clientToggleLayerAbove (Client * c)
     g_return_if_fail (c != NULL);
     TRACE ("entering clientToggleAbove");
 
-    if (!clientIsTransientOrModal (c) &&
+    if ((c->type & WINDOW_REGULAR_FOCUSABLE) &&
+        !clientIsTransientOrModal (c) &&
         !FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
     {
         FLAG_UNSET (c->flags, CLIENT_FLAG_BELOW);
@@ -3101,7 +3102,8 @@ void clientToggleLayerBelow (Client * c)
     g_return_if_fail (c != NULL);
     TRACE ("entering clientToggleBelow");
 
-    if (!clientIsTransientOrModal (c) &&
+    if ((c->type & WINDOW_REGULAR_FOCUSABLE) &&
+        !clientIsTransientOrModal (c) &&
         !FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
     {
         FLAG_UNSET (c->flags, CLIENT_FLAG_ABOVE);
diff --git a/src/client.h b/src/client.h
index fdb59fa..acba0c4 100644
--- a/src/client.h
+++ b/src/client.h
@@ -193,8 +193,8 @@
                                          WINDOW_UTILITY | \
                                          WINDOW_SPLASHSCREEN)
 #define WINDOW_REGULAR_FOCUSABLE        (WINDOW_NORMAL | \
-                                         WINDOW_DIALOG | \
-                                         WINDOW_MODAL_DIALOG)
+                                         WINDOW_TYPE_DIALOG | \
+                                         WINDOW_UTILITY)
 #define WINDOW_TYPE_DONT_FOCUS          (WINDOW_SPLASHSCREEN | \
                                          WINDOW_DOCK)
 



More information about the Xfce4-commits mailing list