mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-01 07:15:59 -04:00
Move set_window_title to output
This commit is contained in:
parent
2669c80803
commit
9d825d6dc7
5 changed files with 18 additions and 25 deletions
14
output.c
14
output.c
|
|
@ -14,6 +14,8 @@
|
|||
#include <unistd.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/backend/wayland.h>
|
||||
#include <wlr/backend/x11.h>
|
||||
#include <wlr/render/wlr_renderer.h>
|
||||
#include <wlr/types/wlr_data_device.h>
|
||||
#include <wlr/types/wlr_matrix.h>
|
||||
|
|
@ -414,3 +416,15 @@ output_damage_drag_icon(struct cg_output *cg_output, struct cg_drag_icon *drag_i
|
|||
damage_surface,
|
||||
&data);
|
||||
}
|
||||
|
||||
void
|
||||
output_set_window_title(struct cg_output *output, const char *title)
|
||||
{
|
||||
struct wlr_output *wlr_output = output->wlr_output;
|
||||
|
||||
if (wlr_output_is_wl(wlr_output)) {
|
||||
wlr_wl_output_set_title(wlr_output, title);
|
||||
} else if (wlr_output_is_x11(wlr_output)) {
|
||||
wlr_x11_output_set_title(wlr_output, title);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue