Lines Matching full:window

146 xwl_window_get(WindowPtr window)  in xwl_window_get()  argument
148 return dixLookupPrivate(&window->devPrivates, &xwl_window_private_key); in xwl_window_get()
163 xwl_window->window->drawable.id, allow, debug_msg); in xwl_window_set_allow_commits()
181 LogMessageVerb(X_WARNING, 0, "Window manager is misusing property %s.\n", in xwl_window_set_allow_commits_from_property()
262 xwl_window_from_window(WindowPtr window) in xwl_window_from_window() argument
266 while (window) { in xwl_window_from_window()
267 xwl_window = xwl_window_get(window); in xwl_window_from_window()
271 window = window->parent; in xwl_window_from_window()
292 WindowPtr window, in xwl_cursor_warped_to() argument
304 if (!window) in xwl_cursor_warped_to()
305 window = XYToWindow(sprite, x, y); in xwl_cursor_warped_to()
307 xwl_window = xwl_window_from_window(window); in xwl_cursor_warped_to()
309 focus = xwl_seat->focus_window->window; in xwl_cursor_warped_to()
312 * as long as the pointer stays within the focus window. in xwl_cursor_warped_to()
318 if (!window) { in xwl_cursor_warped_to()
321 } else if (window == screen->root) { in xwl_cursor_warped_to()
322 DebugF("Warp on root window, assuming pointer focus\n"); in xwl_cursor_warped_to()
336 WindowPtr window) in xwl_cursor_confined_to() argument
349 if (window == screen->root) { in xwl_cursor_confined_to()
354 xwl_window = xwl_window_from_window(window); in xwl_cursor_confined_to()
357 * is the same than the focus window. in xwl_cursor_confined_to()
359 if (window->drawable.class == InputOnly) { in xwl_cursor_confined_to()
360 DebugF("Confine on InputOnly window, assuming pointer focus\n"); in xwl_cursor_confined_to()
373 WindowPtr window = data; in damage_report() local
374 struct xwl_window *xwl_window = xwl_window_get(window); in damage_report()
403 register_damage(WindowPtr window) in register_damage() argument
408 FALSE, window->drawable.pScreen, window); in register_damage()
414 DamageRegister(&window->drawable, damage); in register_damage()
417 dixSetPrivate(&window->devPrivates, &xwl_damage_private_key, damage); in register_damage()
423 unregister_damage(WindowPtr window) in unregister_damage() argument
427 damage = dixLookupPrivate(&window->devPrivates, &xwl_damage_private_key); in unregister_damage()
434 dixSetPrivate(&window->devPrivates, &xwl_damage_private_key, NULL); in unregister_damage()
438 window_get_damage(WindowPtr window) in window_get_damage() argument
440 return dixLookupPrivate(&window->devPrivates, &xwl_damage_private_key); in window_get_damage()
486 ret = dixLookupProperty(&prop, xwl_window->window, in xwl_window_init_allow_commits()
508 e.u.clientMessage.window = xwl_window->window->drawable.id; in send_surface_id_event()
523 ensure_surface_for_window(WindowPtr window) in ensure_surface_for_window() argument
525 ScreenPtr screen = window->drawable.pScreen; in ensure_surface_for_window()
530 if (xwl_window_from_window(window)) in ensure_surface_for_window()
536 if (window->redirectDraw != RedirectDrawManual) in ensure_surface_for_window()
540 if (window->parent) in ensure_surface_for_window()
549 xwl_window->window = window; in ensure_surface_for_window()
576 window->drawable.width, window->drawable.height); in ensure_surface_for_window()
587 compRedirectWindow(serverClient, window, CompositeRedirectManual); in ensure_surface_for_window()
589 dixSetPrivate(&window->devPrivates, &xwl_window_private_key, xwl_window); in ensure_surface_for_window()
610 xwl_realize_window(WindowPtr window) in xwl_realize_window() argument
612 ScreenPtr screen = window->drawable.pScreen; in xwl_realize_window()
619 ret = (*screen->RealizeWindow) (window); in xwl_realize_window()
626 if (xwl_screen->rootless && !window->parent) { in xwl_realize_window()
629 RegionReset(&window->winSize, &box); in xwl_realize_window()
630 RegionNull(&window->clipList); in xwl_realize_window()
631 RegionNull(&window->borderClip); in xwl_realize_window()
635 (window->drawable.class == InputOutput && in xwl_realize_window()
636 window->parent == window->drawable.pScreen->root) : in xwl_realize_window()
637 !window->parent) { in xwl_realize_window()
638 if (!register_damage(window)) in xwl_realize_window()
642 return ensure_surface_for_window(window); in xwl_realize_window()
646 xwl_unrealize_window(WindowPtr window) in xwl_unrealize_window() argument
648 ScreenPtr screen = window->drawable.pScreen; in xwl_unrealize_window()
657 if (xwl_seat->focus_window && xwl_seat->focus_window->window == window) in xwl_unrealize_window()
659 if (xwl_seat->tablet_focus_window && xwl_seat->tablet_focus_window->window == window) in xwl_unrealize_window()
661 if (xwl_seat->last_xwindow == window) in xwl_unrealize_window()
664 xwl_seat->cursor_confinement_window->window == window) in xwl_unrealize_window()
668 xwl_seat->pointer_warp_emulator->locked_window->window == window) in xwl_unrealize_window()
670 xwl_seat_clear_touch(xwl_seat, window); in xwl_unrealize_window()
673 compUnredirectWindow(serverClient, window, CompositeRedirectManual); in xwl_unrealize_window()
676 ret = (*screen->UnrealizeWindow) (window); in xwl_unrealize_window()
680 xwl_window = xwl_window_get(window); in xwl_unrealize_window()
686 unregister_damage(window); in xwl_unrealize_window()
704 dixSetPrivate(&window->devPrivates, &xwl_window_private_key, NULL); in xwl_unrealize_window()
716 xwl_set_window_pixmap(WindowPtr window, in xwl_set_window_pixmap() argument
719 ScreenPtr screen = window->drawable.pScreen; in xwl_set_window_pixmap()
725 (*screen->SetWindowPixmap) (window, pixmap); in xwl_set_window_pixmap()
729 if (!RegionNotEmpty(&window->winSize)) in xwl_set_window_pixmap()
732 ensure_surface_for_window(window); in xwl_set_window_pixmap()
771 xwl_destroy_window(WindowPtr window) in xwl_destroy_window() argument
773 ScreenPtr screen = window->drawable.pScreen; in xwl_destroy_window()
779 xwl_present_cleanup(window); in xwl_destroy_window()
785 ret = screen->DestroyWindow (window); in xwl_destroy_window()
807 region = DamageRegion(window_get_damage(xwl_window->window)); in xwl_window_post_damage()
808 pixmap = (*xwl_screen->screen->GetWindowPixmap) (xwl_window->window); in xwl_window_post_damage()
841 DamageEmpty(window_get_damage(xwl_window->window)); in xwl_window_post_damage()