Revert "gdk_screen_get_monitor_plug_name needs at least 2.14"
This reverts commit d53ac3474f8aa7596f34af67ff2be316e26a1542.
This commit is contained in:
parent
a80c69688f
commit
1e3d9313b5
1 changed files with 1 additions and 4 deletions
|
@ -251,16 +251,13 @@ int GtkSalDisplay::GetDefaultMonitorNumber() const
|
|||
(screen_get_primary_monitor)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gdk_screen_get_primary_monitor" );
|
||||
if (sym_gdk_screen_get_primary_monitor)
|
||||
return sym_gdk_screen_get_primary_monitor( pScreen );
|
||||
#if GTK_CHECK_VERSION(2,14,0)
|
||||
//gdk_screen_get_primary_monitor unavailable, take the first laptop monitor
|
||||
//as the default. This fallback needs at least gtk 2.14.0
|
||||
//gdk_screen_get_primary_monitor unavailable, take the first laptop monitor as the default
|
||||
gint nMonitors = gdk_screen_get_n_monitors(pScreen);
|
||||
for (gint i = 0; i < nMonitors; ++i)
|
||||
{
|
||||
if (g_ascii_strncasecmp (gdk_screen_get_monitor_plug_name(pScreen, i), "LVDS", 4) == 0)
|
||||
return m_aXineramaScreenIndexMap[i];
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue