Source: rxvt-unicode
Severity: normal

Hello,

Trying to launch a terminal without window decorations using the borderLess
option in rxvt-unicode I noticed that it not only removes window decorations
but also sets "Override Redirect" which renders the window useless. 

I did some poking around in the source and saw that it checks for
_MOTIF_WM_INFO to see if "Override Redirect" should be set to make borderLess
work. Running xprop on rxvt-unicode i get no _MOTIF_WM_INFO, I do however get
_MOTIF_WM_HINTS. Altering the if-statement in init.C to check for
_MOTIF_WM_HINTS instead renders a fully usable window without window
decorations when run with borderLess option.

Best Regards,
Micke


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: rxvt-unicode-9.20/src/init.C
===================================================================
--- rxvt-unicode-9.20.orig/src/init.C
+++ rxvt-unicode-9.20/src/init.C
@@ -1347,7 +1347,7 @@ rxvt_term::create_windows (int argc, con
 #if ENABLE_FRILLS
   if (option (Opt_borderLess))
     {
-      if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None)
+      if (XInternAtom (dpy, "_MOTIF_WM_HINTS", True) == None)
         {
           // rxvt_warn("Window Manager does not support MWM hints.  Bypassing window manager control for borderless window.\n");
           attributes.override_redirect = true;

Reply via email to