cursor-tracker: Don't require a screen

This allows us to do initialization earlier and not have to poke into
Wayland internals from the cursor tracker.
This commit is contained in:
Jasper St. Pierre
2014-07-22 11:09:12 -04:00
parent 6ee5a1437c
commit e49bbe2ed8
4 changed files with 18 additions and 48 deletions

View File

@ -667,6 +667,9 @@ meta_screen_new (MetaDisplay *display,
return NULL;
}
/* Select for cursor changes so the cursor tracker is up to date. */
XFixesSelectCursorInput (xdisplay, xroot, XFixesDisplayCursorNotifyMask);
screen = g_object_new (META_TYPE_SCREEN, NULL);
screen->closing = 0;