Skip to content

Commit

Permalink
Add is_x11_display checker
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouielu authored and gsemet committed May 7, 2019
1 parent d89a134 commit 4af660f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guake/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
log = logging.getLogger(__name__)


def gdk_is_x11_display(instance):
if GdkX11:
return isinstance(instance, GdkX11.X11Display)
return False


def get_server_time(widget):
try:
return GdkX11.x11_get_server_time(widget.get_window())
Expand Down

0 comments on commit 4af660f

Please sign in to comment.