diff options
author | Benjamin Otte <otte@redhat.com> | 2018-07-13 18:59:01 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-07-14 05:27:54 +0200 |
commit | 6afb6bb9d2c81136cddab97a541b1f8a863757da (patch) | |
tree | 1ae82d265fc6851d3604742027c71d7dcd0701d6 | |
parent | 60afd056e0815d55292a355f51044ab9b4ef4b3b (diff) | |
download | gtk+-6afb6bb9d2c81136cddab97a541b1f8a863757da.tar.gz |
x11: Set BackPixmap = None unconditionally
Makes it more obvious what we actually want.
Related: #1134
-rw-r--r-- | gdk/x11/gdksurface-x11.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c index 0a7563efe8..f04f74d486 100644 --- a/gdk/x11/gdksurface-x11.c +++ b/gdk/x11/gdksurface-x11.c @@ -880,16 +880,8 @@ _gdk_x11_display_create_surface_impl (GdkDisplay *display, { class = InputOutput; - if (gdk_display_is_rgba (display)) - { - xattributes.background_pixel = 0; - xattributes_mask |= CWBackPixel; - } - else - { - xattributes.background_pixmap = None; - xattributes_mask |= CWBackPixmap; - } + xattributes.background_pixmap = None; + xattributes_mask |= CWBackPixmap; xattributes.border_pixel = BlackPixel (xdisplay, x11_screen->screen_num); xattributes_mask |= CWBorderPixel; |