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);
}
}
-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)
KeyCode ob_keycode(ObKey key);
-/* cuz i have nowhere better to put it right now... */
-gboolean ob_pointer_pos(int *x, int *y);
-
#endif
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);
+}
Rect *screen_area_monitor(guint desktop, guint head);
+gboolean screen_pointer_pos(int *x, int *y);
+
#endif