From dm@blackamp.de  Tue Jan 28 16:36:06 2014
Received: (at submit) by bugs.x2go.org; 28 Jan 2014 15:36:07 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.3.2
Received: from mail.fysik.lu.se (mail.fysik.lu.se [130.235.185.27])
	by ymir (Postfix) with ESMTP id 2337F5DB13
	for <submit@bugs.x2go.org>; Tue, 28 Jan 2014 16:36:06 +0100 (CET)
Received: (qmail 10409 invoked by uid 89); 28 Jan 2014 16:36:05 +0100
Received: (simscan 1.4.1 ppid 10399 pid 10403 t 0.1103s)
 (scanners:  attach: 1.4.1 clamav: 0.97.8/m:55/d:17992); 28 Jan 0114 15:36:05 -0000
Received: from unknown (HELO forrest.astro.lu.se) (mic@astro.lu.se@213.239.254.222)
  by 0 with ESMTPA; 28 Jan 2014 16:36:05 +0100
Received: from dmichalik by forrest.astro.lu.se with local (Exim 4.82)
	(envelope-from <dm@blackamp.de>)
	id 1W8Ahc-0001fu-Pi
	for submit@bugs.x2go.org; Tue, 28 Jan 2014 16:35:52 +0100
Date: Tue, 28 Jan 2014 16:35:52 +0100
From: Daniel Michalik <x2go@blackamp.de>
To: submit@bugs.x2go.org
Subject: Two screens, wrong screen used for limits of positioning context
 menus
Message-ID: <20140128153552.GA6148@forrest.astro.lu.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)

Package: xinerama
Version: 4.0.1.2 (Qt - 4.8.6) 

This bug concerns the placement of context menus in a two screen setup.
On my client I have two screens. One in landscape mode from 0,0 to
1920,1080 and to its right a second screen in portrait mode, from 1920,0
to 3120,1600. I run an x2go session, the session type is single application
(terminal). I fullscreen my application window, either on the left or on
the right screen. I then open a context menu while my mouse cursor is in
the bottom half or right half of the application window. 

Everything works fine with the application positioned on the right hand
screen. It is correctly determined that the context menus would not fit
into the remaining space if they would start where the mouse cursor is, so
they are repositioned in a way that I can see the entire menu. 

But if the application is on my left hand screen the context menus will
always start (their top left corner) where my mouse cursor is, therefore
spilling outside my visible monitor area to the bottom, or overlapping into my
second screen. Expected behaviour: context menus to stay within my
screen, just as they do for all other non-x2go applications.

