]> Dogcows Code - chaz/openbox/commitdiff
use dock_get_area instead of accessing dock struct directly
authorMikael Magnusson <mikachu@comhem.se>
Fri, 13 Jul 2007 14:14:02 +0000 (16:14 +0200)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 13 Jul 2007 14:14:02 +0000 (16:14 +0200)
openbox/client.c
openbox/dock.c

index f38a0c01d11a9460642884789b55f44849fd1158..787ed673739e4a72d75d6d4c3074baf1d3f759d7 100644 (file)
@@ -64,8 +64,6 @@ typedef struct
 
 GList            *client_list          = NULL;
 
-extern ObDock *dock;
-
 static GSList *client_destroy_notifies = NULL;
 
 static void client_get_all(ObClient *self, gboolean real);
@@ -3948,6 +3946,7 @@ void client_find_edge_directional(ObClient *self, ObDirection dir,
 {
     GList *it;
     Rect *a, *mon;
+    Rect dock_area;
     gint edge;
 
     a = screen_area(self->desktop, SCREEN_AREA_ALL_MONITORS,
@@ -4004,7 +4003,8 @@ void client_find_edge_directional(ObClient *self, ObDirection dir,
         detect_edge(cur->frame->area, dir, my_head, my_size, my_edge_start,
                     my_edge_size, dest, near_edge);
     }
-    detect_edge(dock->area, dir, my_head, my_size, my_edge_start,
+    dock_get_area(&dock_area);
+    detect_edge(dock_area, dir, my_head, my_size, my_edge_start,
                 my_edge_size, dest, near_edge);
 }
 
index 22e4523cc219afc7d3341a031f48a783518c6fb2..8cb40fb6c7ca6614c65d95272bc284fada96fbd4 100644 (file)
@@ -31,7 +31,7 @@
                          EnterWindowMask | LeaveWindowMask)
 #define DOCKAPP_EVENT_MASK (StructureNotifyMask)
 
-ObDock *dock;
+static ObDock *dock;
 
 StrutPartial dock_strut;
 
This page took 0.029164 seconds and 4 git commands to generate.