aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 284df56..3ca986f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,7 +4,7 @@
#include <string>
#include <SFML/Graphics.hpp>
#include <cstring>
-#include "process.hpp"
+#include <X11/Xlib.h>
using namespace std;
using namespace dchat;
@@ -12,16 +12,19 @@ using namespace TinyProcessLib;
int main()
{
+ XInitThreads();
sf::RenderWindow window(sf::VideoMode(1920, 1080), "dchat");
window.setVerticalSyncEnabled(false);
window.setFramerateLimit(60);
+ //odhtdb::Database database("bootstrap.ring.cx", 4222, Cache::getDchatDir());
+
Cache cache;
Channel channel;
ChannelSidePanel channelSidePanel;
channelSidePanel.addChannel(&channel);
-
+
while (window.isOpen())
{
sf::Event event;
@@ -37,7 +40,7 @@ int main()
channel.processEvent(event);
}
- window.clear();
+ window.clear(sf::Color(40, 40, 40));
channel.draw(window, cache);
window.display();
}