hatliff / wmii

Automatically exported from code.google.com/p/wmii
MIT License
0 stars 0 forks source link

wmii9menu window crosses border between two xinerama screens #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start wmii with two xinerama screens, secondary left of primary (status 
bar on primary screen).
2. Configure wmiirc_local such that when you click a tag label in the 
status bar, a wmii9menu with the names of clients on that tag opens:

local_events() {
    cat <<'!'
...
Event LeftBarMouseDown
    if [ $1 != 1 ]; then {
        tag=$2; clients=$(wmiir read "/tag/$tag/index" | awk '/
[^#]/{print $2}')
        tofocus="$(wmii9menu $(wmiir read "/tag/$tag/index" | grep 
-v ^# | sed s/:/_/g | awk '{print $5 ":" $2}'))"
        if [ ! -z "$tofocus" ]; then
            wmiir xwrite /tag/$tag/ctl select client $tofocus
            wmiir xwrite /ctl view $tag
        fi } &
    else
        wi_fnmenu LBar "$@" &
    fi
...
!
}

3. Right-click on a tag label.

What is the expected output? What do you see instead?

Half of the wmii9menu window is displayed on the secondary screen. This is 
particularly bad if the secondary screen has a lower resolution than the 
primary, as part of the window is then hidden below the lower border of 
the screen.
The wmii9menu window should rather stay in its entirety on one of the 
screens.

What version of the product are you using (wmii -v)? On what operating
system?

wmii-hg2540, Linux 2.6.30-2-686

Please provide any additional information below.

Original issue reported on code.google.com by hur...@trash-mail.com on 21 Oct 2009 at 12:43

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 895eeae5f4.

Original comment by maglion...@gmail.com on 22 Oct 2009 at 11:08