mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
65018f75b7
emenueditor
55 lines
1.0 KiB
C++
55 lines
1.0 KiB
C++
/*
|
|
* $Id: main.cpp 1671 2006-07-11 14:07:43Z karijes $
|
|
*
|
|
* Edewm, window manager
|
|
* Part of Equinox Desktop Environment (EDE).
|
|
* Copyright (c) 2000-2006 EDE Authors.
|
|
*
|
|
* This program is licenced under terms of the
|
|
* GNU General Public Licence version 2 or newer.
|
|
* See COPYING for details.
|
|
*/
|
|
|
|
#include "Windowmanager.h"
|
|
#include "debug.h"
|
|
#include <edeconf.h>
|
|
|
|
#include <efltk/filename.h>
|
|
#include <efltk/fl_draw.h>
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
|
|
bool got_signal = false;
|
|
|
|
|
|
void exit_signal(int signum)
|
|
{
|
|
EWARNING("* Exiting (got signal %d) *", signum);
|
|
got_signal = true;
|
|
}
|
|
|
|
int main(int argc, char ** argv)
|
|
{
|
|
signal(SIGTERM, exit_signal);
|
|
signal(SIGKILL, exit_signal);
|
|
signal(SIGINT, exit_signal);
|
|
|
|
Fl::args(argc, argv);
|
|
fl_init_locale_support("edewm", PREFIX"/share/locale");
|
|
|
|
WindowManager::init(argc, argv);
|
|
Fl_Style::load_theme();
|
|
|
|
while(!got_signal && WindowManager::instance()->running())
|
|
{
|
|
Fl::wait();
|
|
WindowManager::instance()->idle();
|
|
}
|
|
|
|
WindowManager::shutdown();
|
|
return 0;
|
|
}
|