diff options
author | Adel Gadllah <adel.gadllah@gmail.com> | 2010-04-06 02:41:55 +0200 |
---|---|---|
committer | Adel Gadllah <adel.gadllah@gmail.com> | 2010-04-06 02:41:55 +0200 |
commit | 20dacce4d8b74a6e4be152547f7266ab5ad6b539 (patch) | |
tree | db196f6b02dec65f265f7da3073bf4adf641dc61 /gdk | |
parent | 5651cbc4b4478032238fc376f89e480c71cfa87b (diff) | |
download | gdk-pixbuf-20dacce4d8b74a6e4be152547f7266ab5ad6b539.tar.gz |
[GdkScreenX11] Fix check in gdk_screen_get_primary_monitor
Fix bug in last commit.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkscreen-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 76ab17f0e..f27d4ecf2 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -771,7 +771,7 @@ init_randr13 (GdkScreen *screen) XRROutputInfo *output = XRRGetOutputInfo (dpy, resources, resources->outputs[i]); - if (primary_output != None && resources->outputs[i] == primary_output) + if (resources->outputs[i] == primary_output) { screen_x11->primary_monitor = i; } @@ -786,7 +786,7 @@ init_randr13 (GdkScreen *screen) } /* No RandR1.3+ available or no primary set, fall back to prefer LVDS as primary if present */ - if (g_ascii_strncasecmp (output->name, "LVDS", 4) == 0) + if (primary_output == None && g_ascii_strncasecmp (output->name, "LVDS", 4) == 0) { screen_x11->primary_monitor = i; } |