aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build5
-rw-r--r--pgo/pgo.c66
2 files changed, 6 insertions, 65 deletions
diff --git a/meson.build b/meson.build
index 0bc652a2..f93ca732 100644
--- a/meson.build
+++ b/meson.build
@@ -126,6 +126,7 @@ vtlib = static_library(
pgolib = static_library(
'pgolib',
'grid.c', 'grid.h',
+ 'selection.c', 'selection.h',
'terminal.c', 'terminal.h',
dependencies: [pixman, fcft, tllist],
link_with: vtlib,
@@ -134,7 +135,8 @@ pgolib = static_library(
executable(
'pgo',
'pgo/pgo.c',
- dependencies: [math, threads, pixman, fcft, tllist],
+ wl_proto_src,
+ dependencies: [math, threads, pixman, wayland_client, fcft, tllist],
link_with: pgolib,
)
@@ -151,7 +153,6 @@ executable(
'reaper.c', 'reaper.h',
'render.c', 'render.h',
'search.c', 'search.h',
- 'selection.c', 'selection.h',
'server.c', 'server.h', 'client-protocol.h',
'shm.c', 'shm.h',
'slave.c', 'slave.h',
diff --git a/pgo/pgo.c b/pgo/pgo.c
index bef61b4b..ce1570d1 100644
--- a/pgo/pgo.c
+++ b/pgo/pgo.c
@@ -20,8 +20,6 @@ usage(const char *prog_name)
prog_name);
}
-void wl_proxy_marshal(struct wl_proxy *p, uint32_t opcode, ...) {}
-
enum async_write_status
async_write(int fd, const void *data, size_t len, size_t *idx)
{
@@ -29,67 +27,6 @@ async_write(int fd, const void *data, size_t len, size_t *idx)
}
bool
-selection_enabled(const struct terminal *term, struct seat *seat)
-{
- return true;
-}
-
-void selection_cancel(struct terminal *term) {}
-void selection_clipboard_unset(struct seat *seat) {}
-void selection_primary_unset(struct seat *seat) {}
-
-bool
-text_to_clipboard(
- struct seat *seat, struct terminal *term, char *text, uint32_t serial)
-{
- return true;
-}
-
-bool
-text_to_primary(
- struct seat *seat, struct terminal *term, char *text, uint32_t serial)
-{
- return true;
-}
-
-bool
-selection_clipboard_has_data(const struct seat *seat)
-{
- return true;
-}
-
-bool
-selection_primary_has_data(const struct seat *seat)
-{
- return true;
-}
-
-void
-text_from_clipboard(
- struct seat *seat, struct terminal *term,
- void (*cb)(char *data, size_t size, void *user),
- void (*done)(void *user), void *user)
-{
-}
-
-void
-text_from_primary(
- struct seat *seat, struct terminal *term,
- void (*cb)(char *data, size_t size, void *user),
- void (*dont)(void *user), void *user)
-{
-}
-
-bool
-selection_on_rows(const struct terminal *term, int start, int end)
-{
- return false;
-}
-
-void selection_view_up(struct terminal *term, int new_view) {}
-void selection_view_down(struct terminal *term, int new_view) {}
-
-bool
fdm_add(struct fdm *fdm, int fd, int events, fdm_handler_t handler, void *data)
{
return true;
@@ -179,6 +116,9 @@ extract_finish(struct extraction_context *context, char **text, size_t *len)
return true;
}
+void cmd_scrollback_up(struct terminal *term, int rows) {}
+void cmd_scrollback_down(struct terminal *term, int rows) {}
+
int
main(int argc, const char *const *argv)
{