add functions for updating window position and size

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