Bugfix: Fixes #382, shelldpa - window management - unable to focus backdrop window under xfw

This commit is contained in:
Rory Fewell
2024-11-26 22:32:41 +00:00
parent 87c5c09763
commit 329cc5224b
3 changed files with 18 additions and 2 deletions

View File

@@ -19,6 +19,12 @@ WinTCWndMgmtWindow* (*p_xfw_screen_get_active_window) (
) = NULL;
WinTCWndMgmtScreen* (*p_xfw_screen_get_default) (void) = NULL;
gboolean (*p_xfw_window_activate) (
WinTCWndMgmtWindow* window,
void* seat,
guint64 event_timestamp,
GError** error
) = NULL;
GdkPixbuf* (*p_xfw_window_get_icon) (
WinTCWndMgmtWindow* window,
gint size,
@@ -64,6 +70,9 @@ gboolean init_dll_xfw()
p_xfw_screen_get_default =
dlsym(dl_xfw, "xfw_screen_get_default");
p_xfw_window_activate =
dlsym(dl_xfw, "xfw_window_activate");
p_xfw_window_get_icon =
dlsym(dl_xfw, "xfw_window_get_icon");
@@ -81,6 +90,7 @@ gboolean init_dll_xfw()
if (
p_xfw_screen_get_active_window == NULL ||
p_xfw_screen_get_default == NULL ||
p_xfw_window_activate == NULL ||
p_xfw_window_get_icon == NULL ||
p_xfw_window_get_name == NULL ||
p_xfw_window_is_skip_tasklist == NULL ||

View File

@@ -14,6 +14,12 @@ extern WinTCWndMgmtWindow* (*p_xfw_screen_get_active_window) (
);
extern WinTCWndMgmtScreen* (*p_xfw_screen_get_default) (void);
extern gboolean (*p_xfw_window_activate) (
WinTCWndMgmtWindow* window,
void* seat,
guint64 event_timestamp,
GError** error
);
extern GdkPixbuf* (*p_xfw_window_get_icon) (
WinTCWndMgmtWindow* window,
gint size,

View File

@@ -74,12 +74,12 @@ static void xfw_window_minimize(
static void xfw_window_unminimize(
WinTCWndMgmtWindow* window,
WINTC_UNUSED(guint64 timestamp)
guint64 timestamp
)
{
GError* error = NULL;
p_xfw_window_set_minimized(window, FALSE, &error);
p_xfw_window_activate(window, NULL, timestamp, &error);
wintc_log_error_and_clear(&error);
}