mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Add support for setting the initial window title (issue #2204).
This commit is contained in:
committed by
Marshall Greenblatt
parent
658bf2834a
commit
34db87563e
@@ -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;
|
||||
|
@@ -72,6 +72,16 @@ typedef struct _cef_main_args_t {
|
||||
// Class representing window information.
|
||||
///
|
||||
typedef struct _cef_window_info_t {
|
||||
///
|
||||
// The initial title of the window, to be set when the window is created.
|
||||
// Some layout managers (e.g., Compiz) can look at the window title
|
||||
// in order to decide where to place the window when it is
|
||||
// created. When this attribute is not empty, the window title will
|
||||
// be set before the window is mapped to the dispay. Otherwise the
|
||||
// title will be initially empty.
|
||||
///
|
||||
cef_string_t window_name;
|
||||
|
||||
unsigned int x;
|
||||
unsigned int y;
|
||||
unsigned int width;
|
||||
|
Reference in New Issue
Block a user