Skip to content

Commit

Permalink
#3390 expose drm info when FULL_INFO>1
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 12, 2022
1 parent 9861fbb commit 0f22ec2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xpra/x11/x11_server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from xpra.x11.gtk_x11.prop import prop_get, prop_set, prop_del
from xpra.x11.gtk_x11.gdk_display_source import close_gdk_display_source
from xpra.x11.gtk_x11.gdk_bindings import init_x11_filter, cleanup_x11_filter, cleanup_all_event_receivers
from xpra.common import MAX_WINDOW_SIZE
from xpra.common import MAX_WINDOW_SIZE, FULL_INFO
from xpra.os_util import strtobytes
from xpra.util import typedict, envbool, first_time, XPRA_DPI_NOTIFICATION_ID
from xpra.net.compression import Compressed
Expand Down Expand Up @@ -363,6 +363,13 @@ def do_get_info(self, proto, server_sources) -> dict:
"fakeXinerama" : bool(self.libfakeXinerama_so),
"libfakeXinerama" : self.libfakeXinerama_so or "",
})
if FULL_INFO>1:
try:
from xpra.codecs.evdi.drm import query
except ImportError as e:
log(f"no drm query: {e}")
else:
sinfo["drm"] = query()
log("X11ServerCore.do_get_info took %ims", (monotonic()-start)*1000)
return info

Expand Down

0 comments on commit 0f22ec2

Please sign in to comment.