rxvt-unicode-9.05_no-MOTIF-WM-INFO.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. While setting MWM_HINTS_DECORATIONS to disable window decorations
  2. seems to work with most window managers, using _MOTIF_WM_INFO seems
  3. not to, and in some cases can lead to severe problems with focus
  4. management. Therefore this patch here disables the _MOTIF_WM_INFO
  5. check and always attempts to have the window manager honour the
  6. decorations hint.
  7. If your window manager does not honour MWM_HINTS_DECORATIONS, and you
  8. are determined that you want to have borderless windows nevertheless,
  9. you are still free to enable override-redirect manually, using the
  10. corresponding command line option or X resource.
  11. See also: http://bugs.gentoo.org/show_bug.cgi?id=237271
  12. 2008-09-10 Martin von Gagern
  13. --- a/src/init.C 15 Jul 2008 16:41:22 -0000 1.253
  14. +++ b/src/init.C 10 Sep 2008 08:07:09 -0000
  15. @@ -1078,15 +1078,7 @@
  16. #if ENABLE_FRILLS
  17. if (option (Opt_borderLess))
  18. {
  19. - if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None)
  20. - {
  21. - // rxvt_warn("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");
  22. - attributes.override_redirect = true;
  23. - }
  24. - else
  25. - {
  26. mwmhints.flags = MWM_HINTS_DECORATIONS;
  27. - }
  28. }
  29. #endif