[Mono-bugs] [Bug 77318][Nor] New - Applications are always started
on X screen 0 on Dual-Head Displays
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jan 20 14:12:10 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by baldurk at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77318
--- shadow/77318 2006-01-20 14:12:09.000000000 -0500
+++ shadow/77318.tmp.15239 2006-01-20 14:12:10.000000000 -0500
@@ -0,0 +1,99 @@
+Bug#: 77318
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details: Gentoo Linux 2.6.14-gentoo-r5 x86_64
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: baldurk at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Applications are always started on X screen 0 on Dual-Head Displays
+
+Description of Problem:
+When running an X server with multiple screens, running an application from
+the command line on screen 1 will open up the application on screen 0, and
+it will not work properly - no controls will be displayed.
+
+Steps to reproduce the problem:
+1. Run mono with an application from screen 1
+2. Application opens corrupted on screen 0
+
+Actual Results:
+(from an app run from screen1)
+http://baldurk.org/upload/screen0_app_error.png
+
+Expected Results:
+(from an app run from screen0)
+http://baldurk.org/upload/screen0_app_correct.png
+
+How often does this happen?
+Every time the app is not started on screen 0.
+
+Additional Information:
+I only tested this with two screens (:0.0 and :0.1), so I don't know what
+would happen with any more.
+
+The code used to produce the application shown in the screenshot is as follows:
+
+////// CODE FOR PICTURED APPLICATION
+//////
+////// TAKEN FROM http://www.c-sharpcorner.com/winforms/WinFormsNoVSNETSR.asp
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class Form1 : Form
+{
+ Label label1 = new Label();
+ TextBox textBox1 = new TextBox();
+ Button button1 = new Button();
+ Label label2 = new Label();
+
+ public Form1()
+ {
+ label1.Location = new Point(56, 48);
+ label1.Name = "label1";
+ label1.TabIndex = 0;
+ label1.Text = "Enter Ur Name : ";
+
+ textBox1.Location = new Point(176, 48);
+ textBox1.Name = "textBox1";
+ textBox1.Size = new Size(112, 20);
+ textBox1.Text = "";
+
+ button1.Location = new Point(128, 104);
+ button1.Name = "button1";
+ button1.Text = "Click Me";
+
+ label2.Location = new Point(88, 192);
+ label2.Name = "label2";
+
+ button1.Click += new System.EventHandler(button1_Click1a);
+
+ //Controls.AddRange(new Control[]
+ //{label2, button1, textBox1, label1});
+ //Instead of this u can use the Following
+
+ Controls.Add(label2);
+ Controls.Add(label1);
+ Controls.Add(button1);
+ Controls.Add(textBox1);
+ }
+ static void Main()
+ {
+ Application.Run(new Form1());
+ }
+ private void button1_Click1a(object sender, System.EventArgs e)
+ {
+ label2.Text = "Thanks a Lot ";
+ }
+}
+////// END CODE FOR APPLICATION
More information about the mono-bugs
mailing list