]> Dogcows Code - chaz/openbox/commitdiff
move ob_pointer_pos to screen_pointer_pos
authorDana Jansens <danakj@orodu.net>
Thu, 10 Jul 2003 19:07:58 +0000 (19:07 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 10 Jul 2003 19:07:58 +0000 (19:07 +0000)
openbox/focus.c
openbox/openbox.c
openbox/openbox.h
openbox/screen.c
openbox/screen.h

index 0285f40d0a2cae5439d8f0d3ed09e60877a84f2d..9a8cc3ef03e0a4d0769b1f6aaaa4f27d1ce79d47 100644 (file)
@@ -111,7 +111,7 @@ static gboolean focus_under_pointer()
     int x, y;
     GList *it;
 
-    if (ob_pointer_pos(&x, &y)) {
+    if (screen_pointer_pos(&x, &y)) {
         for (it = stacking_list; it != NULL; it = it->next) {
             if (WINDOW_IS_CLIENT(it->data)) {
                 ObClient *c = WINDOW_AS_CLIENT(it->data);
index 747f384063eb7771a06f93f7f2446f8c6e30b255..40e3ef8b813b407ba4158b083c1721d1648cb485 100644 (file)
@@ -542,16 +542,6 @@ static void parse_args(int argc, char **argv)
     }
 }
 
-gboolean ob_pointer_pos(int *x, int *y)
-{
-    Window w;
-    int i;
-    guint u;
-
-    return !!XQueryPointer(ob_display, RootWindow(ob_display, ob_screen),
-                           &w, &w, x, y, &i, &i, &u);
-}
-
 #ifdef USE_SM
 static void sm_save_yourself(SmcConn conn, SmPointer data, int save_type,
                              Bool shutdown, int interact_style, Bool fast)
index 73f84364ea6feb7586c06f8742749efa7c6df843..f5129ecce92a01dfc9734e8dab46ef0b96be38cf 100644 (file)
@@ -38,7 +38,4 @@ Cursor ob_cursor(ObCursor cursor);
 
 KeyCode ob_keycode(ObKey key);
 
-/* cuz i have nowhere better to put it right now... */
-gboolean ob_pointer_pos(int *x, int *y);
-
 #endif
index 4b25a03565fd5d35d338cf3e25b3905d473ca3ff..58c5b2e5943754bf050f18cdc086a1a94f1adc9d 100644 (file)
@@ -807,3 +807,13 @@ static void sn_event_func(SnMonitorEvent *ev, void *data)
         set_root_cursor();
 }
 #endif
+
+gboolean screen_pointer_pos(int *x, int *y)
+{
+    Window w;
+    int i;
+    guint u;
+
+    return !!XQueryPointer(ob_display, RootWindow(ob_display, ob_screen),
+                           &w, &w, x, y, &i, &i, &u);
+}
index 7008854aa0bb8925c22d2c5634be1e1642200f76..1c687036e5a1cb96d2b4be9b56bba033cfac500a 100644 (file)
@@ -70,4 +70,6 @@ Rect *screen_area(guint desktop);
 
 Rect *screen_area_monitor(guint desktop, guint head);
 
+gboolean screen_pointer_pos(int *x, int *y);
+
 #endif
This page took 0.031464 seconds and 4 git commands to generate.