2021-09-06 11:01:37 +00:00
|
|
|
#include "keyb.h"
|
2020-06-02 19:29:28 +00:00
|
|
|
#include <glib.h>
|
2020-06-10 21:31:30 +00:00
|
|
|
|
|
|
|
#include "display-internal.h"
|
2021-09-06 11:01:37 +00:00
|
|
|
#include "display.h"
|
2020-06-02 19:29:28 +00:00
|
|
|
|
|
|
|
#include "view.h"
|
2021-09-06 11:01:37 +00:00
|
|
|
|
2020-06-02 19:29:28 +00:00
|
|
|
#include "view-internal.h"
|
|
|
|
|
|
|
|
static const display_proxy *proxy;
|
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_init(const display_proxy *disp_in) {
|
|
|
|
proxy = disp_in;
|
|
|
|
view_init(proxy->view());
|
2020-06-02 19:29:28 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
int monitor_active(workarea *mon) { return proxy->monitor_active(mon); }
|
2020-06-02 19:29:28 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_set_input_focus(guint w) { proxy->set_input_focus(w); }
|
2021-09-06 11:00:57 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_revert_input_focus() { proxy->revert_input_focus(); }
|
2021-09-06 11:00:57 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
gboolean display_setup(GMainLoop *main_loop, NkBindings *bindings) {
|
|
|
|
return proxy->setup(main_loop, bindings);
|
2020-06-02 19:29:28 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
gboolean display_late_setup(void) { return proxy->late_setup(); }
|
2020-06-02 19:29:28 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_early_cleanup(void) { proxy->early_cleanup(); }
|
2020-06-02 19:29:28 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_cleanup(void) { proxy->cleanup(); }
|
2020-06-02 19:29:28 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_dump_monitor_layout(void) { proxy->dump_monitor_layout(); }
|
2020-06-02 19:29:28 +00:00
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
void display_startup_notification(RofiHelperExecuteContext *context,
|
|
|
|
GSpawnChildSetupFunc *child_setup,
|
|
|
|
gpointer *user_data) {
|
|
|
|
proxy->startup_notification(context, child_setup, user_data);
|
2020-06-02 19:29:28 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 11:01:37 +00:00
|
|
|
guint display_scale(void) { return proxy->scale(); }
|
2021-09-06 12:50:54 +00:00
|
|
|
|
|
|
|
char *display_get_clipboard_data(enum clipboard_type type) {
|
|
|
|
return proxy->get_clipboard_data(type);
|
|
|
|
}
|