Nit: the significance here is not that a notification is about to be sent but rather that the window's size was set (for which the notification, like the console message, is just a symptom), and a message like this would be more informative if it cited the new size of the window, i.e.:

    debug("set window size to: " + width + "x" + height);