From 9692e398d510f185d5311f0def1c65ecec08049b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Sep 2007 11:41:03 +0200 Subject: [PATCH] return DefaultScreen instead of 0 --- screen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screen.c b/screen.c index a2cf44d0..972f3f10 100644 --- a/screen.c +++ b/screen.c @@ -91,7 +91,7 @@ get_display_info(Display *disp, int screen, Statusbar *statusbar) return si; } -/** Return the Xinerama screen number where the window is placed +/** Return the Xinerama screen number where the coordinates belongs to * \param disp Display ref * \param x x coordinate of the window * \param y y coordinate of the window @@ -105,7 +105,7 @@ get_screen_bycoord(Display *disp, int x, int y) /* don't waste our time */ if(!XineramaIsActive(disp)) - return 0; + return DefaultScreen(disp); si = get_screen_info(disp, 0, NULL, &screen_number); @@ -118,7 +118,7 @@ get_screen_bycoord(Display *disp, int x, int y) } XFree(si); - return 0; + return DefaultScreen(disp); } /** Return the actual screen count