applied Ivan Delalande's NET_SUPPORTING_WM_CHECK patch for gtk3 compatibility