package com.sun.glass.ui.monocle;

import dagger.Module;
import dagger.Provides;
import org.freedesktop.wayland.client.WlDisplayProxy;

import javax.inject.Singleton;

@Module
public class WaylandModule {

    @Provides
    @Singleton
    WlDisplayProxy providesWlDisplayProxy() {
        //TODO from config
        return WlDisplayProxy.connect("wayland-0");
    }

    @Provides
    @Singleton
    Libxkbcommon providesLibxkbcommon() {
        new Libxkbcommon_Symbols().link();
        return new Libxkbcommon();
    }
}

@@ -362,163 +362,7 @@
    %7D
-%0A%0A    @Provides%0A    @Singleton%0A    Libxkbcommon providesLibxkbcommon() %7B%0A        new Libxkbcommon_Symbols().link();%0A        return new Libxkbcommon();%0A    %7D
 %0A%7D%0A

remove libxkbcommon as monocle doesnt need it