mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-04 21:21:21 +00:00
Bugfix: Fixes #382, shelldpa - window management - unable to focus backdrop window under xfw
This commit is contained in:
@@ -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 ||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user