]> icculus.org git repositories - mikachu/openbox.git/blob - src/main.cc
grab the server around key ungrab/grabs to prevent losing keys
[mikachu/openbox.git] / src / main.cc
1 // -*- mode: C++; indent-tabs-mode: nil; -*-
2
3 /*! @file main.cc
4   @brief Main entry point for the application
5 */
6
7 #ifdef    HAVE_CONFIG_H
8 #  include "../config.h"
9 #endif // HAVE_CONFIG_H
10
11 extern "C" {
12 #ifdef    HAVE_LOCALE_H
13 # include <locale.h>
14 #endif // HAVE_LOCALE_H
15
16 #include "gettext.h"
17 }
18
19 #include <string>
20 using std::string;
21
22 #include "openbox.hh"
23
24 int main(int argc, char **argv) {
25   // initialize the locale
26   setlocale(LC_ALL, "");
27   bindtextdomain(PACKAGE, LOCALEDIR);
28   textdomain(PACKAGE);
29
30   ob::Openbox openbox(argc, argv);
31   openbox.eventLoop();
32 }