This is necessary during a restart of i3 when restoring floating windows. In this situation, we restore the layout before setting up the RandR outputs which would set the window's size to 0, making it invisible.
Thanks to hwangcc23 and spudowiar for reporting.
fixes #1910
fixes #1934
*
*/
static Rect total_outputs_dimensions(void) {
+ if (TAILQ_EMPTY(&outputs))
+ return (Rect){0, 0, root_screen->width_in_pixels, root_screen->height_in_pixels};
+
Output *output;
/* Use Rect to encapsulate dimensions, ignoring x/y */
Rect outputs_dimensions = {0, 0, 0, 0};