X-Git-Url: http://nitlanguage.org diff --git a/lib/x11.nit b/lib/x11.nit index b4f51d5..bd5d82a 100644 --- a/lib/x11.nit +++ b/lib/x11.nit @@ -14,8 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Serices from the X11 library -module x11 is pkgconfig("x11") +# Services from the X11 library +module x11 is pkgconfig + +`{ + #include +`} # Open the current display from the environment variables # @@ -27,7 +31,7 @@ fun x_open_default_display: Pointer `{ # Open a specific display # # `name` is in the format: "hostname:number.screen_number" -# +# # See fun x_open_display(name: String): Pointer import String.to_cstring `{ return (void*)XOpenDisplay(String_to_cstring(name));