private void OnWindowSourceInitialized(object sender, EventArgs e)
 {
     try
     {
         // Attaching to desktop is currently bugged on Windows 7
         // Unknown if its fixable, so we deactivate it there for the time being
         if (EnvironmentUtil.IsWindows7())
         {
             return;
         }
         WindowUtil.AttachToDesktop(Application.Current.MainWindow);
     }
     catch (Exception ex)
     {
         ExceptionUtil.LogAndShowWarning("Could not attach widget to desktop.", ex);
     }
 }