You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wnck_window_is_minimized returns 0 always in JWM.
This bug couses incorrect work of some third-party panels and docks.
In other wm wnck_window_is_minimized works correctly.
Example code for test:
Yeah, libwnck is plain stupid. All it has to do is to check WM_STATE to see whether a window is iconic (in accordance with ICCCM 2.0), however, it misinteprets the _NET_WM_STATE_HIDDEN atom instead. I have a libwnck fork that works much better, but still hasn't been fixed in this regard.
wnck_window_is_minimized returns 0 always in JWM.
This bug couses incorrect work of some third-party panels and docks.
In other wm wnck_window_is_minimized works correctly.
Example code for test:
define WNCK_I_KNOW_THIS_IS_UNSTABLE
include <libwnck/libwnck.h>
undef WNCK_I_KNOW_THIS_IS_UNSTABLE
//gcc wnck.c $(pkg-config --cflags --libs libwnck-3.0) -o wnck
int main (int argc, char **argv)
{
WnckScreen *screen;
GList *list;
gdk_init (&argc, &argv);
screen = wnck_screen_get_default ();
wnck_screen_force_update (screen);
for (list = wnck_screen_get_windows (screen); list != NULL; list = list->next)
{
WnckWindow *window = WNCK_WINDOW (list->data);
g_print ("%s%s%s [%d]\n", wnck_window_get_name (window),
wnck_window_is_minimized(window) ? " (IS MINIMIZED)" : "",
wnck_window_is_active(window) ? " (IS ACTIVE)" : "",
wnck_window_get_state(window));
}
return 0;
}
The text was updated successfully, but these errors were encountered: