~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to liblightdm-gobject/layout.c

  • Committer: Robert Ancell
  • Date: 2014-03-17 20:04:52 UTC
  • Revision ID: robert.ancell@canonical.com-20140317200452-cumuw5w4nwgih6az
Handle not getting an X connection when attempting to get X layouts

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        return layouts;
117
117
 
118
118
    display = XOpenDisplay (NULL);
 
119
    if (display == NULL)
 
120
        return NULL;
 
121
    
119
122
    xkl_engine = xkl_engine_get_instance (display);
120
123
    xkl_config = xkl_config_rec_new ();
121
124
    if (!xkl_config_rec_get_from_server (xkl_config, xkl_engine))