aboutsummaryrefslogtreecommitdiff
path: root/include/QuickMedia.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r--include/QuickMedia.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index f93b47c..d7680ff 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -18,14 +18,15 @@
#include <future>
#include <thread>
#include <stack>
-#include <X11/Xlib.h>
+
+typedef struct _XDisplay Display;
namespace QuickMedia {
class Matrix;
class FileManager;
class MangaImagesPage;
class ImageBoardThreadPage;
- class RoomData;
+ struct RoomData;
class MatrixChatPage;
class VideoPage;
class Tabs;
@@ -111,7 +112,7 @@ namespace QuickMedia {
void set_clipboard(const std::string &str);
private:
- void init(Window parent_window, std::string &program_path);
+ void init(unsigned long parent_window, std::string &program_path);
void load_plugin_by_name(std::vector<Tab> &tabs, int &start_tab_index, FileManagerMimeType fm_mime_type, FileSelectionHandler file_selection_handler, std::string instance);
void common_event_handler(mgl::Event &event);
void handle_x11_events();
@@ -125,7 +126,7 @@ namespace QuickMedia {
using PageLoopSubmitHandler = std::function<void(const std::vector<Tab> &new_tabs)>;
// Returns false if the page loop was escaped by user navigation (pressing escape) or if there was an error at startup
bool page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr, bool go_to_previous_on_escape = true);
- void video_page_download_video(const std::string &url, mgl::WindowHandle video_player_window = None);
+ void video_page_download_video(const std::string &url, mgl::WindowHandle video_player_window = 0);
bool video_download_if_non_streamable(std::string &video_url, std::string &audio_url, bool &is_audio_only, bool &has_embedded_audio, PageType previous_page);
int video_get_max_height();
void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, Body *parent_body, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = "");
@@ -215,7 +216,6 @@ namespace QuickMedia {
bool low_cpu_mode = false;
bool window_closed = false;
std::string pipe_selected_text;
- XEvent xev;
std::filesystem::path file_manager_start_dir;
std::string youtube_url;
std::unique_ptr<VideoPlayer> video_player;