root.wallpaper: Use main connection for pixmap filling (FS#1087)
commit5024843e95b91a664128ccc082a980a1a25f5d5d
authorUli Schlachter <psychon@znc.in>
Thu, 24 Jan 2013 17:54:35 +0000 (24 18:54 +0100)
committerUli Schlachter <psychon@znc.in>
Thu, 24 Jan 2013 17:54:35 +0000 (24 18:54 +0100)
treef89ec02f587c96c3cef0be386955b177375faa28
parentcd5180f60f60789636fd5f9028dde91d338846bd
root.wallpaper: Use main connection for pixmap filling (FS#1087)

Previously, cairo would often have to download the old wallpaper from the X11
server and then upload it again. It did this because it couldn't see that the
two X11 connections involved are actually connected to the same X11 server.

This commit fixes this by setting up the pixmap from our main X11 connection.
This is the same connection that we use for accessing the "old" wallpaper and
thus cairo doesn't have to do stupid things.

The big improvement with this is that this speeds up wallpaper setup a lot.

Signed-off-by: Uli Schlachter <psychon@znc.in>
root.c