[gdm] slave: don't ever warp pointer to 0, 0
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] slave: don't ever warp pointer to 0, 0
- Date: Mon, 28 Jan 2013 15:21:48 +0000 (UTC)
commit 47b21f6f0d35c684f855fc033df777600e625f07
Author: Ray Strode <rstrode redhat com>
Date: Mon Jan 28 10:16:37 2013 -0500
slave: don't ever warp pointer to 0, 0
That's where the hot corner is in the shell.
https://bugzilla.gnome.org/show_bug.cgi?id=692711
daemon/gdm-slave.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index 27f1700..ffe2aca 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -454,11 +454,12 @@ determine_initial_cursor_position (GdmSlave *slave,
int i;
/* If this function fails for whatever reason,
- * put the pointer in the upper left corner of the
- * first monitor
+ * put the pointer in the lower right corner of the screen.
*/
- *x = 0;
- *y = 0;
+ *x = .9 * DisplayWidth (slave->priv->server_display,
+ DefaultScreen (slave->priv->server_display));
+ *y = .9 * DisplayHeight (slave->priv->server_display,
+ DefaultScreen (slave->priv->server_display));
gdm_error_trap_push ();
resources = XRRGetScreenResources (slave->priv->server_display,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]