]> Dogcows Code - chaz/openbox/commitdiff
rename the 'root' context to 'desktop'
authorDana Jansens <danakj@orodu.net>
Wed, 20 Aug 2003 23:13:40 +0000 (23:13 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 20 Aug 2003 23:13:40 +0000 (23:13 +0000)
data/rc3
openbox/frame.c
openbox/frame.h
openbox/mouse.c

index b4a68acf0c95986b9156765603abe0789e70aa51..a3375704a210246238944df17f8de26cc4c5001f 100644 (file)
--- a/data/rc3
+++ b/data/rc3
       <action name="close"/>
     </mousebind>
   </context>
-  <context name="root">
+  <context name="desktop">
     <mousebind button="A-Up" action="click">
       <action name="desktopright"/>
     </mousebind>
index a38bcfbed5d084f49902a34a9149a3fa2f77d294..2f1fae309e941b4b4d3e8ab16b7486b8829de2e6 100644 (file)
@@ -603,8 +603,8 @@ static void layout_title(ObFrame *self)
 
 ObFrameContext frame_context_from_string(char *name)
 {
-    if (!g_ascii_strcasecmp("root", name))
-        return OB_FRAME_CONTEXT_ROOT;
+    if (!g_ascii_strcasecmp("desktop", name))
+        return OB_FRAME_CONTEXT_DESKTOP;
     else if (!g_ascii_strcasecmp("client", name))
         return OB_FRAME_CONTEXT_CLIENT;
     else if (!g_ascii_strcasecmp("titlebar", name))
@@ -640,22 +640,23 @@ ObFrameContext frame_context(ObClient *client, Window win)
 {
     ObFrame *self;
 
-    if (win == RootWindow(ob_display, ob_screen)) return OB_FRAME_CONTEXT_ROOT;
+    if (win == RootWindow(ob_display, ob_screen))
+        return OB_FRAME_CONTEXT_DESKTOP;
     if (client == NULL) return OB_FRAME_CONTEXT_NONE;
     if (win == client->window) {
-        /* conceptually, this is the root window, as far as users are
+        /* conceptually, this is the desktop, as far as users are
            concerned */
         if (client->type == OB_CLIENT_TYPE_DESKTOP)
-            return OB_FRAME_CONTEXT_ROOT;
+            return OB_FRAME_CONTEXT_DESKTOP;
         return OB_FRAME_CONTEXT_CLIENT;
     }
 
     self = client->frame;
     if (win == self->plate) {
-        /* conceptually, this is the root window, as far as users are
+        /* conceptually, this is the desktop, as far as users are
            concerned */
         if (client->type == OB_CLIENT_TYPE_DESKTOP)
-            return OB_FRAME_CONTEXT_ROOT;
+            return OB_FRAME_CONTEXT_DESKTOP;
         return OB_FRAME_CONTEXT_CLIENT;
     }
 
index 5072d091926e8a47650395df23d3728ea76157f2..333580b4a838a2db1de71b78155efec0fff99107 100644 (file)
@@ -10,7 +10,7 @@ struct _ObClient;
 
 typedef enum {
     OB_FRAME_CONTEXT_NONE,
-    OB_FRAME_CONTEXT_ROOT,
+    OB_FRAME_CONTEXT_DESKTOP,
     OB_FRAME_CONTEXT_CLIENT,
     OB_FRAME_CONTEXT_TITLEBAR,
     OB_FRAME_CONTEXT_HANDLE,
index 58dc07c952aef5fb2c983086e543a74e82b86f47..2e8507c347784011916350573a336a0f5cd9ec3f 100644 (file)
@@ -19,7 +19,7 @@ typedef struct {
 } ObMouseBinding;
 
 #define CLIENT_CONTEXT(co, cl) ((cl && cl->type == OB_CLIENT_TYPE_DESKTOP) ? \
-                                co == OB_FRAME_CONTEXT_ROOT : \
+                                co == OB_FRAME_CONTEXT_DESKTOP : \
                                 co == OB_FRAME_CONTEXT_CLIENT)
 
 /* Array of GSList*s of PointerBinding*s. */
This page took 0.030161 seconds and 4 git commands to generate.