Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sphvr: Support running on wayland #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions sphvr/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ def __init__(self):
self.widget = Gtk.DrawingArea()
self.widget.set_double_buffered(True)

def xid(self):
return self.widget.get_window().get_xid()

def set_handle(self):
self.element.set_window_handle(self.xid())
pass


class GtkGLSink:
Expand All @@ -24,4 +21,4 @@ def __init__(self):
self.widget = self.element.get_property("widget")

def set_handle(self):
pass
pass
7 changes: 0 additions & 7 deletions sphvr/sphvr
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ from gi.repository import Gdk, Gst, Gtk, GdkX11, GstVideo, GstGL, GnomeDesktop,
from sphvr.sinks import *
from collections import OrderedDict

from ctypes import cdll
try:
x11 = cdll.LoadLibrary('libX11.so')
x11.XInitThreads()
except OSError:
pass


# Check if we're in development or installed version and set paths properly
def _in_devel():
Expand Down