mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 08:30:28 +01:00
xwayland: Use border width in xwl_glamor_gbm_create_pixmap_for_window
Otherwise the pixmap is too small for a window with non-0 border width. Fixes:9730fb64ea("xwayland: Add create_pixmap_for_window() to GBM backend") Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1314> (cherry picked from commit913631071e)
This commit is contained in:
parent
c4d85940e5
commit
8c8cd0ad50
1 changed files with 7 additions and 4 deletions
|
|
@ -396,11 +396,14 @@ xwl_glamor_gbm_create_pixmap(ScreenPtr screen,
|
|||
static PixmapPtr
|
||||
xwl_glamor_gbm_create_pixmap_for_window(struct xwl_window *xwl_window)
|
||||
{
|
||||
WindowPtr window = xwl_window->window;
|
||||
unsigned border_width = 2 * window->borderWidth;
|
||||
|
||||
return xwl_glamor_gbm_create_pixmap_internal(xwl_window->xwl_screen,
|
||||
&xwl_window->window->drawable,
|
||||
xwl_window->window->drawable.width,
|
||||
xwl_window->window->drawable.height,
|
||||
xwl_window->window->drawable.depth,
|
||||
&window->drawable,
|
||||
window->drawable.width + border_width,
|
||||
window->drawable.height + border_width,
|
||||
window->drawable.depth,
|
||||
CREATE_PIXMAP_USAGE_BACKING_PIXMAP,
|
||||
xwl_window->has_implicit_scanout_support);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue