From db08329d8bc689ff14cbb9084814d652ae349621 Mon Sep 17 00:00:00 2001 From: Daniel Diaz Date: Tue, 15 Nov 2011 00:01:16 +0100 Subject: [PATCH] Add mwm _MOTIF_WM_INFO atom to advertise mwm hints capability Applications like urxvt look for the _MOTIF_WM_INFO atom in order to know if the window manager implements mwm hints. If this atom is not found, then urxvt sets override_redirect when started with the borderless option and falls out of the control of Fluxbox. --- src/FbAtoms.cc | 1 + src/FbAtoms.hh | 1 + 2 files changed, 2 insertions(+) diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc index 409a99fc..bc771b73 100644 --- a/src/FbAtoms.cc +++ b/src/FbAtoms.cc @@ -37,6 +37,7 @@ FbAtoms::FbAtoms() { xa_wm_change_state = XInternAtom(dpy, "WM_CHANGE_STATE", False); xa_wm_delete_window = XInternAtom(dpy, "WM_DELETE_WINDOW", False); xa_wm_take_focus = XInternAtom(dpy, "WM_TAKE_FOCUS", False); + motif_wm_info = XInternAtom(dpy, "_MOTIF_WM_INFO", False); motif_wm_hints = XInternAtom(dpy, "_MOTIF_WM_HINTS", False); blackbox_attributes = XInternAtom(dpy, "_BLACKBOX_ATTRIBUTES", False); diff --git a/src/FbAtoms.hh b/src/FbAtoms.hh index 3ed52a54..dd1478c4 100644 --- a/src/FbAtoms.hh +++ b/src/FbAtoms.hh @@ -47,6 +47,7 @@ private: FbAtoms(); Atom blackbox_attributes; + Atom motif_wm_info; Atom motif_wm_hints; Atom xa_wm_protocols; Atom xa_wm_state;