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.
This commit is contained in:
Daniel Diaz 2011-11-15 00:01:16 +01:00 committed by Mathias Gumz
parent 0f994dbb28
commit db08329d8b
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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;