Set Cage's window title to toplevel's title

When using the Wayland or X11 backend, Cage is drawn inside a window.
This commit sets this window's title to that of the currently focused
toplevel window inside Cage.

Fixes #29.
This commit is contained in:
Jente Hidskes 2019-01-24 14:14:15 +01:00
parent 443d955dfd
commit c00ac5c462
7 changed files with 53 additions and 1 deletions

View file

@ -14,6 +14,7 @@
#include "output.h"
#include "seat.h"
#include "view.h"
struct cg_server {
struct wl_display *wl_display;
@ -37,4 +38,6 @@ struct cg_server {
#endif
};
void set_window_title(struct cg_server *server, struct cg_view *view);
#endif