From 9bcdc8be00df28ed252256b31659fc3f0faaeca3 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 7 Jun 2002 15:16:36 +0000 Subject: [PATCH] don't return null on non-multihead 2002-06-07 Havoc Pennington * src/place.c (meta_window_place): don't return null on non-multihead --- ChangeLog | 4 ++++ src/screen.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9bd5c34b1..b7d629ebc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-06-07 Havoc Pennington + + * src/place.c (meta_window_place): don't return null on non-multihead + 2002-06-06 Havoc Pennington * src/screen.c (meta_screen_get_current_xinerama): implement diff --git a/src/screen.c b/src/screen.c index a983d9fb0..986eada59 100644 --- a/src/screen.c +++ b/src/screen.c @@ -849,7 +849,7 @@ const MetaXineramaScreenInfo* meta_screen_get_current_xinerama (MetaScreen *screen) { if (screen->n_xinerama_infos == 1) - return 0; + return &screen->xinerama_infos[0]; /* Sadly, we have to do it this way. Yuck. */