Package: sawfish-merlin-ugliness
Version: 1.3.1-1
Severity: normal
Tags: patch

On a Xinerama setup with two identical monitors, the window-cycle list
is displayed at the center of the desktop -- half of it is dieplayed on
the left screen and the other half is displayed on the right screen
which makes it hard to use for me. IMO, the window should be displayed
at the center of the screen that the user focusses on, most likely the
screen on which the mouse pointer is currently placed.

The attached patch does just that. For setups that do not use Xinerama,
the behavior stays the same.

Cheers,
-Hilko

--- /usr/share/sawfish/site-lisp/merlin/ugliness.jl.orig        2004-07-28 
15:28:37.000000000 +0200
+++ /usr/share/sawfish/site-lisp/merlin/ugliness.jl     2009-12-17 
12:57:06.000000000 +0100
@@ -177,7 +177,9 @@
   (define (ugly-cycle-display-position win)
     (if (eq ugly-cycle-relative 'window)
        (cons+ (window-position win) (cons-percent (window-frame-dimensions 
win) ugly-cycle-percent))
-      (cons-percent (screen-dimensions) ugly-cycle-percent)))
+      (cons+ (head-offset (pointer-head))
+             (cons-percent (head-dimensions (pointer-head))
+                           ugly-cycle-percent))))
 
   (define (justify child parent)
     (cond ((eq ugly-cycle-justify 'left) 0)


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-rc8-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sawfish-merlin-ugliness depends on:
ii  sawfish                       1:1.5.3-2  a window manager for X11

sawfish-merlin-ugliness recommends no packages.

sawfish-merlin-ugliness suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to