mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
wayland: fix release build
This commit is contained in:
parent
43b76f002f
commit
11892e8d23
1 changed files with 4 additions and 2 deletions
|
|
@ -414,7 +414,7 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
|
||||||
int32_t width, int32_t height, struct wl_array *states)
|
int32_t width, int32_t height, struct wl_array *states)
|
||||||
{
|
{
|
||||||
bool is_focused = false;
|
bool is_focused = false;
|
||||||
#if defined(_DEBUG)
|
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||||
char state_str[2048];
|
char state_str[2048];
|
||||||
int state_chars = 0;
|
int state_chars = 0;
|
||||||
|
|
||||||
|
|
@ -448,7 +448,7 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_DEBUG)
|
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||||
if (*state >= XDG_TOPLEVEL_STATE_MAXIMIZED &&
|
if (*state >= XDG_TOPLEVEL_STATE_MAXIMIZED &&
|
||||||
*state <= XDG_TOPLEVEL_STATE_TILED_BOTTOM)
|
*state <= XDG_TOPLEVEL_STATE_TILED_BOTTOM)
|
||||||
{
|
{
|
||||||
|
|
@ -459,11 +459,13 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||||
if (state_chars > 2)
|
if (state_chars > 2)
|
||||||
state_str[state_chars - 2] = '\0';
|
state_str[state_chars - 2] = '\0';
|
||||||
|
|
||||||
LOG_DBG("xdg-toplevel: configure: size=%dx%d, states=%s",
|
LOG_DBG("xdg-toplevel: configure: size=%dx%d, states=%s",
|
||||||
width, height, state_str);
|
width, height, state_str);
|
||||||
|
#endif
|
||||||
|
|
||||||
struct wayland *wayl = data;
|
struct wayland *wayl = data;
|
||||||
struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel);
|
struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue