Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@22233 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 28, 2019
1 parent 7535e8b commit faa8e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xpra/x11/gtk2/gdk_bindings.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ from xpra.gtk_common.gtk2.gdk_bindings import get_display_for

from xpra.x11.common import REPR_FUNCTIONS
def get_window_xid(window):
return "%#x" % window.xid
return hex(window.xid)
REPR_FUNCTIONS[gdk.Window] = get_window_xid
def get_display_name(display):
return display.get_name()
Expand Down
2 changes: 1 addition & 1 deletion src/xpra/x11/gtk3/gdk_bindings.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ from xpra.gtk_common.gtk3.gdk_bindings import get_display_for

from xpra.x11.common import REPR_FUNCTIONS
def get_window_xid(window):
return "%#x" % window.get_xid()
return hex(window.get_xid())
REPR_FUNCTIONS[Gdk.Window] = get_window_xid
def get_display_name(display):
return display.get_name()
Expand Down

0 comments on commit faa8e16

Please sign in to comment.