mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-25 01:41:06 -05:00
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:
parent
443d955dfd
commit
c00ac5c462
7 changed files with 53 additions and 1 deletions
3
server.h
3
server.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue