mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 15:12:32 +01:00
Remove commented code in xinerama.c
This commit is contained in:
committed by
Carlos R. Mafra
parent
0a47a19b3e
commit
e42586c712
@@ -220,45 +220,6 @@ int wGetHeadForWindow(WWindow * wwin)
|
||||
return wGetHeadForRect(wwin->screen_ptr, rect);
|
||||
}
|
||||
|
||||
/*
|
||||
int
|
||||
wGetHeadForPoint(WScreen *scr, WMPoint point, int *flags)
|
||||
{
|
||||
int i;
|
||||
|
||||
// paranoia
|
||||
if (flags == NULL) {
|
||||
static int tmp;
|
||||
flags = &tmp;
|
||||
}
|
||||
*flags = XFLAG_NONE;
|
||||
|
||||
for (i = 0; i < scr->xine_info.count; i++) {
|
||||
#if 0
|
||||
int yy, xx;
|
||||
|
||||
xx = scr->xine_info.screens[i].pos.x + scr->xine_info.screens[i].size.width;
|
||||
yy = scr->xine_info.screens[i].pos.y + scr->xine_info.screens[i].size.height;
|
||||
if (point.x >= scr->xine_info.screens[i].pos.x &&
|
||||
point.y >= scr->xine_info.screens[i].pos.y &&
|
||||
point.x < xx && point.y < yy) {
|
||||
return i;
|
||||
}
|
||||
#else
|
||||
XineramaScreenInfo *xsi = &scr->xine_info.screens[i];
|
||||
|
||||
if ((unsigned)(point.x - xsi->x_org) < xsi->width &&
|
||||
(unsigned)(point.y - xsi->y_org) < xsi->height)
|
||||
return i;
|
||||
#endif
|
||||
}
|
||||
|
||||
*flags |= XFLAG_DEAD;
|
||||
|
||||
return scr->xine_primary_head;
|
||||
}
|
||||
*/
|
||||
|
||||
int wGetHeadForPoint(WScreen * scr, WMPoint point)
|
||||
{
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user