Merge pull request #233 from mattrose/fix-transparent-bg
only set clear background when background_image in config
This commit is contained in:
commit
296e1257a2
|
@ -138,6 +138,9 @@ class Terminal(Gtk.VBox):
|
|||
self.vte = Vte.Terminal()
|
||||
self.background_image = None
|
||||
if self.config['background_image'] != '':
|
||||
self.vte.set_clear_background(False)
|
||||
self.vte.connect("draw",self.background_draw)
|
||||
|
||||
try:
|
||||
self.background_image = GdkPixbuf.Pixbuf.new_from_file(self.config['background_image'])
|
||||
except Exception:
|
||||
|
@ -155,8 +158,6 @@ class Terminal(Gtk.VBox):
|
|||
|
||||
|
||||
self.vte.show()
|
||||
self.vte.set_clear_background(False)
|
||||
self.vte.connect("draw",self.background_draw)
|
||||
self.default_encoding = self.vte.get_encoding()
|
||||
self.update_url_matches()
|
||||
|
||||
|
|
Loading…
Reference in New Issue