-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3476 pass title and geometry as arguments
- Loading branch information
Showing
3 changed files
with
14 additions
and
18 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,7 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# This file is part of Xpra. | ||
# Copyright (C) 2012-2020 Antoine Martin <[email protected]> | ||
# Copyright (C) 2012-2022 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. | ||
|
||
|
@@ -132,8 +132,8 @@ def setup_capture(window): | |
|
||
class X11ShadowModel(RootWindowModel): | ||
__slots__ = ("xid", ) | ||
def __init__(self, root_window, capture=None): | ||
super().__init__(root_window, capture) | ||
def __init__(self, root_window, capture=None, title="", geometry=None): | ||
super().__init__(root_window, capture, title, geometry) | ||
try: | ||
self.xid = root_window.get_xid() | ||
self.property_names.append("xid") | ||
|
@@ -282,7 +282,7 @@ def main(filename): | |
import sys | ||
if len(sys.argv)!=2: | ||
print("usage: %s filename.png" % sys.argv[0]) | ||
v = 1 | ||
r = 1 | ||
else: | ||
v = main(sys.argv[1]) | ||
sys.exit(v) | ||
r = main(sys.argv[1]) | ||
sys.exit(r) |