Merge pull request #1937 from Airblader/bug-1910

Correctly restore floating windows
This commit is contained in:
Michael Stapelberg 2015-09-21 10:18:25 +02:00
commit f3d898be4b

View File

@ -18,6 +18,9 @@ extern xcb_connection_t *conn;
* *
*/ */
static Rect total_outputs_dimensions(void) { 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; Output *output;
/* Use Rect to encapsulate dimensions, ignoring x/y */ /* Use Rect to encapsulate dimensions, ignoring x/y */
Rect outputs_dimensions = {0, 0, 0, 0}; Rect outputs_dimensions = {0, 0, 0, 0};