Linux: Add support for setting the initial window title (issue #2204).

This commit is contained in:
Branko Čibej
2019-02-27 19:18:16 +00:00
committed by Marshall Greenblatt
parent 658bf2834a
commit 34db87563e
6 changed files with 33 additions and 5 deletions

View File

@ -71,11 +71,16 @@ struct CefWindowInfoTraits {
typedef cef_window_info_t struct_type;
static inline void init(struct_type* s) {}
static inline void clear(struct_type* s) {}
static inline void clear(struct_type* s) {
cef_string_clear(&s->window_name);
}
static inline void set(const struct_type* src,
struct_type* target,
bool copy) {
cef_string_set(src->window_name.str, src->window_name.length,
&target->window_name, copy);
target->x = src->x;
target->y = src->y;
target->width = src->width;