remove usage of wlr_texture_get_size
update for wlroots 6369f7093178f0d66414eb67c312a403bfbb84a4
This commit is contained in:
parent
5a73dc1bc2
commit
12e223e797
|
@ -490,9 +490,10 @@ static void render_titlebar(struct sway_output *output,
|
||||||
int ob_marks_x = 0; // output-buffer-local
|
int ob_marks_x = 0; // output-buffer-local
|
||||||
int ob_marks_width = 0; // output-buffer-local
|
int ob_marks_width = 0; // output-buffer-local
|
||||||
if (config->show_marks && marks_texture) {
|
if (config->show_marks && marks_texture) {
|
||||||
struct wlr_box texture_box;
|
struct wlr_box texture_box = {
|
||||||
wlr_texture_get_size(marks_texture,
|
.width = marks_texture->width,
|
||||||
&texture_box.width, &texture_box.height);
|
.height = marks_texture->height,
|
||||||
|
};
|
||||||
ob_marks_width = texture_box.width;
|
ob_marks_width = texture_box.width;
|
||||||
|
|
||||||
// The marks texture might be shorter than the config->font_height, in
|
// The marks texture might be shorter than the config->font_height, in
|
||||||
|
@ -543,9 +544,10 @@ static void render_titlebar(struct sway_output *output,
|
||||||
int ob_title_x = 0; // output-buffer-local
|
int ob_title_x = 0; // output-buffer-local
|
||||||
int ob_title_width = 0; // output-buffer-local
|
int ob_title_width = 0; // output-buffer-local
|
||||||
if (title_texture) {
|
if (title_texture) {
|
||||||
struct wlr_box texture_box;
|
struct wlr_box texture_box = {
|
||||||
wlr_texture_get_size(title_texture,
|
.width = title_texture->width,
|
||||||
&texture_box.width, &texture_box.height);
|
.height = title_texture->height,
|
||||||
|
};
|
||||||
|
|
||||||
// The effective output may be NULL when con is not on any output.
|
// The effective output may be NULL when con is not on any output.
|
||||||
// This can happen because we render all children of containers,
|
// This can happen because we render all children of containers,
|
||||||
|
|
Loading…
Reference in a new issue