[hackers] [wmii] Update xext.c (wmii will be broken until I commit more multihead changes) || Kris Maglione

From: <hg_AT_suckless.org>
Date: Tue, 14 Oct 2008 01:37:06 +0000 (UTC)

changeset: 2352:53fc8cdc900c
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Oct 13 21:37:01 2008 -0400
files: cmd/wmii/xext.c
description:
Update xext.c (wmii will be broken until I commit more multihead changes)

diff -r c9afa5d8a147 -r 53fc8cdc900c cmd/wmii/xext.c
--- a/cmd/wmii/xext.c Sat Oct 11 22:09:21 2008 -0400
+++ b/cmd/wmii/xext.c Mon Oct 13 21:37:01 2008 -0400
@@ -66,21 +66,12 @@
 
 static void
 randr_screenchange(XRRScreenChangeNotifyEvent *ev) {
- View *v;
- Point d;
 
         XRRUpdateConfiguration((XEvent*)ev);
         if(ev->rotation+90 % 180)
                 scr.rect = Rect(0, 0, ev->width, ev->height);
         else
                 scr.rect = Rect(0, 0, ev->height, ev->width);
-
- d.x = Dx(scr.rect) - Dx(screen->r);
- d.y = Dy(scr.rect) - Dy(screen->r);
- for(v=view; v; v=v->next) {
- v->r.max.x += d.x;
- v->r.max.y += d.y;
- }
         init_screens();
 }
 
@@ -158,7 +149,6 @@
                 rects[i].max.y = res[i].y_org + res[i].height;
         }
 
- print("have_xinerama: true; n: %d\n", n);
         *np = n;
         return rects;
 }
Received on Tue Oct 14 2008 - 01:37:06 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 14 2008 - 01:48:05 UTC