Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/common.py : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is part of Xpra.
2# Copyright (C) 2019 Antoine Martin <antoine@xpra.org>
3# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
4# later version. See the file COPYING for details.
6#X11 constants we use for gravity:
7NorthWestGravity = 1
8NorthGravity = 2
9NorthEastGravity = 3
10WestGravity = 4
11CenterGravity = 5
12EastGravity = 6
13SouthWestGravity = 7
14SouthGravity = 8
15SouthEastGravity = 9
16StaticGravity = 10
18GRAVITY_STR = {
19 NorthWestGravity : "NorthWest",
20 NorthGravity : "North",
21 NorthEastGravity : "NorthEast",
22 WestGravity : "West",
23 CenterGravity : "Center",
24 EastGravity : "East",
25 SouthWestGravity : "SouthWest",
26 SouthGravity : "South",
27 SouthEastGravity : "SouthEast",
28 StaticGravity : "South",
29 }
31CLOBBER_UPGRADE = 0x1
32CLOBBER_USE_DISPLAY = 0x2
34#if you want to use a virtual screen bigger than this
35#you will need to change those values, but some broken toolkits
36#will then misbehave (they use signed shorts instead of signed ints..)
37MAX_WINDOW_SIZE = 2**15-2**13
40from xpra.util import envint
41SPLASH_EXIT_DELAY = envint("XPRA_SPLASH_EXIT_DELAY", 4)