[gdm] Revert "slave: Use more RANDR 1.3"
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Revert "slave: Use more RANDR 1.3"
- Date: Fri, 7 Nov 2014 19:41:30 +0000 (UTC)
commit ab1bc2f8d19246f2c60f16f3e6174373bc7f0f19
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Mon Oct 20 15:16:05 2014 -0700
Revert "slave: Use more RANDR 1.3"
This reverts commit cafa3bf4fc99a3a5dcf43efe339a72c49cc2ee2c.
Conflicts:
daemon/gdm-slave.c
https://bugzilla.gnome.org/show_bug.cgi?id=738904
daemon/gdm-slave.c | 24 ++----------------------
1 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index b4bbcfd..a6d54ba 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -122,27 +122,6 @@ gdm_slave_error_quark (void)
return ret;
}
-static XRRScreenResources *
-get_screen_resources (Display *dpy)
-{
- int major = 0, minor = 0;
-
- if (!XRRQueryVersion(dpy, &major, &minor)) {
- return NULL;
- }
-
- if (major > 1) {
- return NULL;
- }
-
- if (minor >= 3) {
- return XRRGetScreenResourcesCurrent (dpy,
- DefaultRootWindow (dpy));
- }
-
- return XRRGetScreenResources (dpy, DefaultRootWindow (dpy));
-}
-
static void
determine_initial_cursor_position (GdmSlave *slave,
int *x,
@@ -161,7 +140,8 @@ determine_initial_cursor_position (GdmSlave *slave,
DefaultScreen (slave->priv->server_display));
gdm_error_trap_push ();
- resources = get_screen_resources (slave->priv->server_display);
+ resources = XRRGetScreenResources (slave->priv->server_display,
+ DefaultRootWindow (slave->priv->server_display));
primary_output = XRRGetOutputPrimary (slave->priv->server_display,
DefaultRootWindow (slave->priv->server_display));
gdm_error_trap_pop ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]