-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2539 set the visual on the widget, not the window, only set it on th…
…e window if we do need transparency git-svn-id: https://xpra.org/svn/Xpra/trunk@26449 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
4 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# This file is part of Xpra. | ||
# Copyright (C) 2012 Serviware (Arthur Huillet, <[email protected]>) | ||
# Copyright (C) 2012-2019 Antoine Martin <[email protected]> | ||
# Copyright (C) 2012-2020 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
from collections import namedtuple | ||
|
||
from xpra.client.gtk3.gtk3_client_window import GTK3ClientWindow | ||
from xpra.gtk_common.gtk_util import set_visual | ||
from xpra.log import Logger | ||
|
||
log = Logger("opengl", "window") | ||
|
@@ -87,6 +88,8 @@ def new_backing(self, bw, bh): | |
widget = super().new_backing(bw, bh) | ||
if self.drawing_area: | ||
self.remove(self.drawing_area) | ||
set_visual(widget, self._has_alpha) | ||
widget.show() | ||
self.init_widget_events(widget) | ||
self.add(widget) | ||
self.drawing_area = widget | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters