I noticed eesh doesn't have an option to get a window's layer. Did I
miss it? Anyway, this patch lets you do

win_op <windowid> layer ?

like you can do with desktop, move, or resize.

-- 
BAM - Are you a turtle? 
diff -ruN e16.orig/e/src/ipc.c e16/e/src/ipc.c
--- e16.orig/e/src/ipc.c	2003-06-27 20:20:30.000000000 -0400
+++ e16/e/src/ipc.c	2003-06-27 20:22:26.000000000 -0400
@@ -4165,10 +4165,18 @@
 		    }
 		  else if (!strcmp(operation, "layer"))
 		    {
-		       word(params, 3, param1);
-		       ewin->layer = atoi(param1);
-		       RaiseEwin(ewin);
-		       RememberImportantInfoForEwin(ewin);
+		      word(params, 3, param1);
+		      if (!strcmp(param1, "?"))
+			{
+			  Esnprintf(buf, sizeof(buf),
+				    "window layer: %d", ewin->layer);
+			}
+		      else
+			{
+			  ewin->layer = atoi(param1);
+			  RaiseEwin(ewin);
+			  RememberImportantInfoForEwin(ewin);
+			}
 		    }
 		  else if (!strcmp(operation, "border"))
 		    {

Reply via email to