Lines Matching refs:window
272 /* The GLUT overlay can come and go, and the overlay window has
273 a distinct X window ID. Logically though, GLUT treats the
274 normal and overlay windows as a unified window. In
275 particular, X input events typically go to the overlay window
276 since it is "on top of" the normal window. When an overlay
277 window ID is destroyed (due to glutRemoveOverlay or a call to
279 still keep track of the overlay window ID until we get back a
280 DestroyNotify event for the overlay window. Otherwise, we
282 overlay. To avoid this, we keep the destroyed overlay window
283 ID on a "stale window" list. This lets us properly route X
285 proper GLUT window. */
287 addStaleWindow(GLUTwindow * window, Window win)
294 entry->window = window;
362 GLUTwindow *window;
372 window = __glutCurrentWindow;
376 if (window->overlay) {
378 addStaleWindow(window, window->overlay->win);
380 __glutFreeOverlay(window->overlay);
394 window->ctx = __glut_glXCreateContextWithConfigSGIX(__glutDisplay, fbc,
419 wa.event_mask = window->eventMask & GLUT_OVERLAY_EVENT_FILTER_MASK;
425 window->win,
426 0, 0, window->width, window->height, 0,
431 if (window->children) {
432 /* Overlay window must be lowered below any GLUT
442 window->forceReshape = True;
445 __glutPutOnWorkList(__glutToplevelOf(window), GLUT_COLORMAP_WORK);
448 window->overlay = overlay;
460 GLUTwindow *window = __glutCurrentWindow;
463 if (!window->overlay)
467 if (window->renderWin == overlay->win) {
471 addStaleWindow(window, overlay->win);
474 window->overlay = NULL;
476 __glutPutOnWorkList(__glutToplevelOf(window), GLUT_COLORMAP_WORK);
483 GLUTwindow *window = __glutCurrentWindow;
488 window->renderDc = window->hdc;
490 window->renderWin = window->win;
491 window->renderCtx = window->ctx;
498 window->renderDc = window->overlay->hdc;
500 window->renderWin = window->overlay->win;
501 window->renderCtx = window->overlay->ctx;
507 __glutSetWindow(window);
530 __glutWarning("glutOverlayDisplayFunc: window has no overlay established");
540 __glutWarning("glutHideOverlay: window has no overlay established");
551 __glutWarning("glutShowOverlay: window has no overlay established");
588 the window (or overlay belwo) can be cleared before
591 callback the window could be destroyed (or layer