From e13df2a2c4c7f490dc8772a0af1ea649aeaa96d9 Mon Sep 17 00:00:00 2001 From: Vidar Hokstad Date: Tue, 1 Aug 2023 20:16:22 +0100 Subject: [PATCH] Helpers to access root window. --- lib/X11/screen.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/X11/screen.rb b/lib/X11/screen.rb index d0fecdf..c13bbc7 100644 --- a/lib/X11/screen.rb +++ b/lib/X11/screen.rb @@ -7,6 +7,14 @@ module X11 @internal = data end + def root + @internal.root + end + + def root_depth + @internal.root_depth + end + def width @internal.width_in_pixels end