Lines Matching defs:dmxScreen

126     DMXScreenInfo *dmxScreen;
137 dmxScreen = &dmxScreens[(*ppScreen)->myNum];
139 && localX < dmxScreen->rootWidth
141 && localY < dmxScreen->rootHeight)
145 globalX = dmxScreen->rootXOrigin + localX;
146 globalY = dmxScreen->rootYOrigin + localY;
152 dmxScreen = &dmxScreens[(*ppScreen)->myNum];
153 if (globalX >= dmxScreen->rootXOrigin
154 && globalX < dmxScreen->rootXOrigin + dmxScreen->rootWidth
155 && globalY >= dmxScreen->rootYOrigin
156 && globalY < dmxScreen->rootYOrigin + dmxScreen->rootHeight)
162 dmxScreen = &dmxScreens[i];
163 if (globalX >= dmxScreen->rootXOrigin
164 && globalX < dmxScreen->rootXOrigin + dmxScreen->rootWidth
165 && globalY >= dmxScreen->rootYOrigin
166 && globalY < dmxScreen->rootYOrigin + dmxScreen->rootHeight) {
167 if (dmxScreen->index == (*ppScreen)->myNum)
169 *ppScreen = screenInfo.screens[dmxScreen->index];
170 *x = globalX - dmxScreen->rootXOrigin;
171 *y = globalY - dmxScreen->rootYOrigin;
356 DMXScreenInfo *dmxScreen = &dmxScreens[i];
357 dmxLogOutput(dmxScreen,
360 dmxScreen->scrnWidth, dmxScreen->scrnHeight,
361 dmxScreen->scrnX, dmxScreen->scrnY,
363 dmxScreen->rootWidth, dmxScreen->rootHeight,
364 dmxScreen->rootX, dmxScreen->rootY,
366 dmxScreen->rootXOrigin, dmxScreen->rootYOrigin,
367 dmxScreen->beWidth, dmxScreen->beHeight,
368 dmxScreen->beDepth, dmxScreen->beBPP);
384 DMXScreenInfo *dmxScreen = &dmxScreens[i];
385 dmxLogOutput(dmxScreen,
388 dmxScreen->scrnWidth, dmxScreen->scrnHeight,
389 dmxScreen->scrnX, dmxScreen->scrnY,
391 dmxScreen->rootWidth, dmxScreen->rootHeight,
392 dmxScreen->rootX, dmxScreen->rootY,
394 dmxScreen->whereX, dmxScreen->whereY,
395 dmxScreen->where,
397 dmxScreen->beWidth, dmxScreen->beHeight,
398 dmxScreen->beDepth, dmxScreen->beBPP);
404 DMXScreenInfo *dmxScreen = &dmxScreens[i];
405 dmxScreen->rootXOrigin = screenInfo.screens[i]->x;
406 dmxScreen->rootYOrigin = screenInfo.screens[i]->y;
413 * screen window of the \a dmxScreen. */
414 int dmxOnScreen(int x, int y, DMXScreenInfo *dmxScreen)
419 dmxScreen->index, x, y,
420 dmxScreen->rootWidth, dmxScreen->rootHeight,
421 dmxScreen->rootX, dmxScreen->rootY,
422 dmxScreen->rootXOrigin, dmxScreen->rootYOrigin,
423 dmxScreen->scrnWidth, dmxScreen->scrnHeight,
424 dmxScreen->scrnX, dmxScreen->scrnY);
426 if (x >= dmxScreen->rootXOrigin
427 && x < dmxScreen->rootXOrigin + dmxScreen->rootWidth
428 && y >= dmxScreen->rootYOrigin
429 && y < dmxScreen->rootYOrigin + dmxScreen->rootHeight) return 1;
473 static void *dmxPrintOverlap(DMXScreenInfo *dmxScreen, void *closure)
476 if (dmxScreen != a) {
477 if (dmxScreen->cursorNotShared)
478 dmxLogOutputCont(a, " [%d/%s]", dmxScreen->index, dmxScreen->name);
480 dmxLogOutputCont(a, " %d/%s", dmxScreen->index, dmxScreen->name);
489 void *(*f)(DMXScreenInfo *dmxScreen, void *),
584 DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
605 for (i = 0; i < dmxScreen->beNumPixmapFormats; i++) {
606 if (dmxScreen->bePixmapFormats[i].depth == 1) {
608 gc = XCreateGC(dmxScreen->beDisplay, dmxScreen->scrnDefDrawables[i],
616 src = XCreatePixmap(dmxScreen->beDisplay, dmxScreen->scrnWin,
618 msk = XCreatePixmap(dmxScreen->beDisplay, dmxScreen->scrnWin,
621 img = XCreateImage(dmxScreen->beDisplay,
622 dmxScreen->beVisuals[dmxScreen->beDefVisualIndex].visual,
625 BitmapPad(dmxScreen->beDisplay), 0);
627 XPutImage(dmxScreen->beDisplay, src, gc, img, 0, 0, 0, 0,
632 img = XCreateImage(dmxScreen->beDisplay,
633 dmxScreen->beVisuals[dmxScreen->beDefVisualIndex].visual,
636 BitmapPad(dmxScreen->beDisplay), 0);
638 XPutImage(dmxScreen->beDisplay, msk, gc, img, 0, 0, 0, 0,
651 pCursorPriv->cursor = XCreatePixmapCursor(dmxScreen->beDisplay,
656 XFreePixmap(dmxScreen->beDisplay, src);
657 XFreePixmap(dmxScreen->beDisplay, msk);
658 XFreeGC(dmxScreen->beDisplay, gc);
660 dmxSync(dmxScreen, FALSE);
665 DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
677 if (!dmxScreen->beDisplay)
687 DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
691 XFreeCursor(dmxScreen->beDisplay, pCursorPriv->cursor);
701 DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
706 if (dmxScreen->beDisplay) {
717 DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
718 int newX = x + dmxScreen->rootX;
719 int newY = y + dmxScreen->rootY;
726 if (dmxScreen->beDisplay) {
727 XWarpPointer(dmxScreen->beDisplay, None, dmxScreen->scrnWin,
729 dmxSync(dmxScreen, TRUE);
735 DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
741 if (pCursorPriv && dmxScreen->curCursor != pCursorPriv->cursor) {
742 if (dmxScreen->beDisplay)
743 XDefineCursor(dmxScreen->beDisplay, dmxScreen->scrnWin,
745 dmxScreen->cursor = pCursor;
746 dmxScreen->curCursor = pCursorPriv->cursor;
747 dmxScreen->cursorVisible = 1;
751 if (dmxScreen->beDisplay)
752 XDefineCursor(dmxScreen->beDisplay, dmxScreen->scrnWin,
753 dmxScreen->noCursor);
754 dmxScreen->cursor = NULL;
755 dmxScreen->curCursor = (Cursor)0;
756 dmxScreen->cursorVisible = 0;
758 if (dmxScreen->beDisplay) dmxSync(dmxScreen, TRUE);
924 void dmxHideCursor(DMXScreenInfo *dmxScreen)
927 ScreenPtr pScreen = screenInfo.screens[dmxScreen->index];
947 DMXScreenInfo *dmxScreen = &dmxScreens[i];
948 pScreen = screenInfo.screens[dmxScreen->index];
950 if (!dmxOnScreen(x, y, dmxScreen)) {
954 x - dmxScreen->rootXOrigin,
955 y - dmxScreen->rootYOrigin);
957 if (!dmxScreen->cursor) {
960 if ((pCursor = dmxFindCursor(dmxScreen))) {
961 _dmxRealizeCursor(pScreen, dmxScreen->cursor = pCursor);
964 _dmxSetCursor(pScreen, dmxScreen->cursor,
965 x - dmxScreen->rootXOrigin,
966 y - dmxScreen->rootYOrigin);