Review Request: use _NET_WM_STATE_HIDDEN to check if the window is minimized instead of WM_STATE == ICONIC when possible.

Yichao Yu yyc1992 at
Wed Jan 9 21:06:29 GMT 2013

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs, kwin and Aaron J. Seigo.


When setting "Keep window thumbnails" to "Always (Breaks minimization)", kwin will keep WM_STATE to be NORMAL when a client is minimized while including _NET_WM_STATE_HIDDEN in its _NET_WM_STATE, as confirmed by ICCCM[1] and Extended Window Manager Hints[2]. However, apart from the expected result (breaks minimization: the client will continue to refresh its content) the minimized window is not shown as minimized in icontasks and pager.

These two plasma addons (and probably other addons as well) uses KWindowInfo::isMinimized to determine whether the window is minimized. However, this function threat all window that are not Iconic (WM_STATE != ICONIC) as not minimized, in contradiction to the "Extended window manager hints" which says, "Pagers and similar applications should use _NET_WM_STATE_HIDDEN instead of WM_STATE to decide whether to display a window in miniature representations of the windows on a desktop."

This patch correct this behavior and therefore correct the behavior of both pager and icontasks in this situation.



  kdeui/windowmanagement/kwindowinfo_x11.cpp d983c9a 



Compiled, pager and icontasks shows minimized windows correctly.


Yichao Yu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
kwin mailing list
kwin at

More information about the kde-core-devel mailing list