add function for getting root window

Signed-off-by: Mattias Andrée <maandree@operamail.com>