-
-
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.
better native wayland support: paint the widget, not the window
git-svn-id: https://xpra.org/svn/Xpra/trunk@26314 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
4 changed files
with
35 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This file is part of Xpra. | ||
# Copyright (C) 2011 Serviware (Arthur Huillet, <[email protected]>) | ||
# Copyright (C) 2010-2019 Antoine Martin <[email protected]> | ||
# Copyright (C) 2010-2020 Antoine Martin <[email protected]> | ||
# Copyright (C) 2008, 2010 Nathaniel Smith <[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. | ||
|
@@ -40,10 +40,6 @@ class GTK3ClientWindow(GTKClientWindowBase): | |
OR_TYPE_HINTS = GTK3_OR_TYPE_HINTS | ||
NAME_TO_HINT = WINDOW_NAME_TO_HINT | ||
|
||
def init_window(self, metadata): | ||
super().init_window(metadata) | ||
self.connect("draw", self._do_draw) | ||
|
||
def get_backing_class(self): | ||
raise NotImplementedError() | ||
|
||
|
@@ -115,8 +111,8 @@ def apply_geometry_hints(self, hints): | |
self.set_geometry_hints(self.drawing_area, geom, gdk_hints) | ||
|
||
|
||
def _do_draw(self, widget, context): | ||
paintlog("do_draw(%s, %s)", widget, context) | ||
def draw_widget(self, widget, context): | ||
paintlog("draw_widget(%s, %s)", widget, context) | ||
if not self.get_mapped(): | ||
return False | ||
backing = self._backing | ||
|
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