-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2358 use a temporary instance of the bindings so we don't end up cac…
…hing the display pointer, rename bindings classes so we can more easily differentiate the singletons from regular instances git-svn-id: https://xpra.org/svn/Xpra/trunk@23193 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
9 changed files
with
32 additions
and
28 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
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) 2008, 2009 Nathaniel Smith <[email protected]> | ||
# Copyright (C) 2010-2018 Antoine Martin <[email protected]> | ||
# Copyright (C) 2010-2019 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. | ||
|
||
|
@@ -15,6 +15,7 @@ from xpra.x11.bindings.display_source cimport set_display, get_display | |
from xpra.x11.bindings.display_source import set_display_name | ||
from libc.stdint cimport uintptr_t | ||
|
||
|
||
cdef extern from "X11/Xlib.h": | ||
ctypedef struct Display: | ||
pass | ||
|
@@ -40,9 +41,9 @@ cdef do_init_posix_display_source(display_name): | |
def close_display_source(uintptr_t ptr): | ||
assert ptr!=0, "invalid NULL display pointer" | ||
cdef Display * display = <Display *> ptr | ||
cdef int v = XCloseDisplay(display) | ||
set_display(NULL) | ||
set_display_name("CLOSED") | ||
cdef int v = XCloseDisplay(display) | ||
return v | ||
|
||
|
||
|
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
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