mga-fix-deiconify.patch 968 B

123456789101112131415161718192021
  1. --- lxpanel-0.10.1/plugins/task-button.c 2021-01-29 23:28:51.000000000 +0100
  2. +++ lxpanel-0.10.1/plugins/task-button.c.new 2022-09-08 12:08:46.579475426 +0200
  3. @@ -487,6 +487,9 @@ static void task_raise_window(TaskButton
  4. if ((tk->desktop != ALL_WORKSPACES) && (tk->desktop != tb->desktop))
  5. Xclimsgx(xscreen, RootWindowOfScreen(xscreen), a_NET_CURRENT_DESKTOP, tk->desktop, 0, 0, 0, 0);
  6. +#if GTK_CHECK_VERSION(3, 0, 0)
  7. + Xclimsgx(xscreen, tk->win, a_NET_ACTIVE_WINDOW, 2, time, 0, 0, 0);
  8. +#else
  9. /* Raise the window. We can use NET_ACTIVE_WINDOW if the window manager supports it.
  10. * Otherwise, do it the old way with XMapRaised and XSetInputFocus. */
  11. if (tb->flags.use_net_active)
  12. @@ -510,6 +513,7 @@ static void task_raise_window(TaskButton
  13. if (attr.map_state == IsViewable)
  14. XSetInputFocus(xdisplay, tk->win, RevertToNone, time);
  15. }
  16. +#endif
  17. /* Change viewport if needed. */
  18. XWindowAttributes xwa;