Realtime intelligent window resizing for the X Window System