diff options
author | oga | 2008-09-22 14:28:04 +0000 |
---|---|---|
committer | oga | 2008-09-22 14:28:04 +0000 |
commit | b61ea604b9325ea41db5932cd304952856a4d8ab (patch) | |
tree | 19c338d36e0aa4dd4add906f87232324349b2c51 /screen.c | |
parent | 30fdb32a9e9467d23ad79e6602ac5b30e47e21f1 (diff) | |
download | cwm-b61ea604b9325ea41db5932cd304952856a4d8ab.tar.gz |
*sigh* Revert the diff that wasn't meant to go in yet.
note to self: When you mean to type cvs commit search.c, don't forget
the filename.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 27 |
1 files changed, 1 insertions, 26 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: screen.c,v 1.9 2008/09/22 14:15:03 oga Exp $ + * $Id: screen.c,v 1.10 2008/09/22 14:28:04 oga Exp $ */ #include "headers.h" @@ -67,28 +67,3 @@ screen_updatestackingorder(void) XFree(wins); } - -void -screen_init_xinerama(struct screen_ctx *sc) -{ - XineramaScreenInfo *info; - int no, fake; - - if (HasXinerama == 0 || XineramaIsActive(X_Dpy) == 0) { - HasXinerama = 0; - sc->xinerama_no = 0; - } - - info = XineramaQueryScreens(X_Dpy, &no); - if (info == NULL) { - /*is xinerama is actually off, instead of a malloc failure? */ - if (sc->xinerama == NULL) - HasXinerama = NULL; - return; - } - - if (sc->xinerama != NULL) - XFree(sc->xinerama); - sc->xinerama = info; - sc->xinerama_no = no; -} |