aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Notification.hpp2
-rw-r--r--include/QuickMedia.hpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/Notification.hpp b/include/Notification.hpp
index 22f2f77..4f7fcc2 100644
--- a/include/Notification.hpp
+++ b/include/Notification.hpp
@@ -27,6 +27,6 @@ namespace QuickMedia {
static void show_notification(const std::string &title, const std::string &description, Urgency urgency = Urgency::NORMAL) {
const char *args[] = { "notify-send", "-u", urgency_string(urgency), "--", title.c_str(), description.c_str(), nullptr };
exec_program_async(args, nullptr);
- printf("Notification: title: %s, description: %s\n", title.c_str(), description.c_str());
+ fprintf(stderr, "Notification: title: %s, description: %s\n", title.c_str(), description.c_str());
}
} \ No newline at end of file
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 19d84a8..cd410c3 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -12,6 +12,8 @@
#include <unordered_set>
#include <future>
#include <stack>
+#include <X11/Xlib.h>
+#include <X11/Xatom.h>
namespace QuickMedia {
class Plugin;
@@ -49,6 +51,7 @@ namespace QuickMedia {
// Returns Page::EXIT if empty
Page pop_page_stack();
private:
+ Display *disp;
sf::RenderWindow window;
sf::Vector2f window_size;
sf::Font font;
@@ -77,5 +80,6 @@ namespace QuickMedia {
std::future<void> image_download_future;
std::string downloading_chapter_url;
bool image_download_cancel = false;
+ int exit_code = 0;
};
} \ No newline at end of file