diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/mygtk3.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index 6d75baec7..ccbd23e27 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -1491,6 +1491,12 @@ sub root_window() { $root ||= Gtk3::Gdk::get_default_root_window(); } +sub root_window_size() { + state $root; + $root ||= [Gtk3::Gdk::Screen::width, Gtk3::Gdk::Screen::height]; + @$root; +} + sub rgb2color { my ($r, $g, $b) = @_; my $color = Gtk3::Gdk::Color->new($r, $g, $b); |