#include <wayland-cursor.h>
#include <xkbcommon/xkbcommon.h>
#include "eloop.h"
-#include "log.h"
#include "shl_array.h"
#include "shl_dlist.h"
#include "shl_hook.h"
+#include "shl_log.h"
#include "shl_misc.h"
#include "tsm_vte.h"
#include "wlt_main.h"
}
}
- if (state == WL_KEYBOARD_KEY_STATE_RELEASED &&
- sym == disp->repeat_sym) {
+ if (state == WL_KEYBOARD_KEY_STATE_RELEASED) {
ev_timer_update(disp->repeat_timer, NULL);
} else if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
disp->repeat_sym = sym;
if (!disp)
return -EINVAL;
- return shl_hook_add_cast(disp->listeners, cb, data);
+ return shl_hook_add_cast(disp->listeners, cb, data, false);
}
void wlt_display_unregister_cb(struct wlt_display *disp,
wnd->maximized = !wnd->maximized;
}
+bool wlt_window_is_maximized(struct wlt_window *wnd)
+{
+ return wnd && wnd->maximized;
+}
+
void wlt_window_toggle_fullscreen(struct wlt_window *wnd)
{
if (!wnd)
wnd->fullscreen = !wnd->fullscreen;
}
+bool wlt_window_is_fullscreen(struct wlt_window *wnd)
+{
+ return wnd && wnd->fullscreen;
+}
+
struct ev_eloop *wlt_window_get_eloop(struct wlt_window *wnd)
{
if (!wnd)