! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Terminal always opens new windows on the 'main' screen
Status:
CLOSED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Jean-François Wauthy editbugs 2006-02-14 17:32:33 CET
Terminal always opens new windows on the screen where the main Terminal instance
is running. 
e.g: start a Terminal on screen 0, then another one on screen 1 and use it to
start playing some video with mplayer, the video appears on screen 0

Reproducible: Always
Steps to Reproduce:
Comment 1 Benedikt Meurer editbugs 2006-02-14 17:34:15 CET
What does echo $DISPLAY say? (I have a similar problem with mplayer, it always
opens on the first monitor, no matter what $DISPLAY is)
Comment 2 Jean-François Wauthy editbugs 2006-02-14 17:46:24 CET
it says:

jf@slytherin:~$ echo $DISPLAY
:0.1

on both screens :-S 

and like i saud the mplayer window always appears on the 'main' screen not the
first monitor and it works this way for every apps
Comment 3 Jean-François Wauthy editbugs 2006-02-14 17:48:32 CET
and i forgot, if i force DISPLAY to the correct value in the terminal it works
fine (as expected)
Comment 4 Benedikt Meurer editbugs 2006-02-14 18:00:42 CET
Created attachment 444 
MultiScreen per Display fix

This patch should fix the problem. The shell command was always run with the
display name of the terminal widget (the display name doesn't include the
screen number), not the full display name (which includes the screen number).
Comment 5 Benedikt Meurer editbugs 2006-02-14 18:01:32 CET
BTW: I was talking about monitors not screens. Mplayer is somewhat buggy and
always uses the first available monitor, not the monitor which currently
contains the pointer.
Comment 6 Jean-François Wauthy editbugs 2006-02-14 18:04:47 CET
the patch fixed it thanks
Comment 7 Benedikt Meurer editbugs 2006-02-14 18:06:46 CET
Committed with revision 19870.

2006-02-14	Benedikt Meurer <benny@xfce.org>

	* terminal/terminal-screen.c(terminal_screen_get_child_environment):
	  Set DISPLAY properly for multi-screen per display environments.
	  Bug #1461.

Bug #1461

Reported by:
Jean-François Wauthy
Reported on: 2006-02-14
Last modified on: 2009-12-17

People

Assignee:
Benedikt Meurer
CC List:
0 users

Version

Version:
0.2.5svn

Attachments

MultiScreen per Display fix (1.20 KB, patch)
2006-02-14 18:00 CET , Benedikt Meurer
no flags

Additional information