aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Diaz <dydyman@gmail.com>2011-11-14 23:01:16 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-01-04 06:45:20 (GMT)
commitdb08329d8bc689ff14cbb9084814d652ae349621 (patch)
tree04edd462282e55021540ef4861bd1f98e6c374f5
parent0f994dbb28e2a348f7c254e051622acf88e08226 (diff)
downloadfluxbox_paul-db08329d8bc689ff14cbb9084814d652ae349621.zip
fluxbox_paul-db08329d8bc689ff14cbb9084814d652ae349621.tar.bz2
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.
-rw-r--r--src/FbAtoms.cc1
-rw-r--r--src/FbAtoms.hh1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc
index 409a99f..bc771b7 100644
--- a/src/FbAtoms.cc
+++ b/src/FbAtoms.cc
@@ -37,6 +37,7 @@ FbAtoms::FbAtoms() {
37 xa_wm_change_state = XInternAtom(dpy, "WM_CHANGE_STATE", False); 37 xa_wm_change_state = XInternAtom(dpy, "WM_CHANGE_STATE", False);
38 xa_wm_delete_window = XInternAtom(dpy, "WM_DELETE_WINDOW", False); 38 xa_wm_delete_window = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
39 xa_wm_take_focus = XInternAtom(dpy, "WM_TAKE_FOCUS", False); 39 xa_wm_take_focus = XInternAtom(dpy, "WM_TAKE_FOCUS", False);
40 motif_wm_info = XInternAtom(dpy, "_MOTIF_WM_INFO", False);
40 motif_wm_hints = XInternAtom(dpy, "_MOTIF_WM_HINTS", False); 41 motif_wm_hints = XInternAtom(dpy, "_MOTIF_WM_HINTS", False);
41 42
42 blackbox_attributes = XInternAtom(dpy, "_BLACKBOX_ATTRIBUTES", False); 43 blackbox_attributes = XInternAtom(dpy, "_BLACKBOX_ATTRIBUTES", False);
diff --git a/src/FbAtoms.hh b/src/FbAtoms.hh
index 3ed52a5..dd1478c 100644
--- a/src/FbAtoms.hh
+++ b/src/FbAtoms.hh
@@ -47,6 +47,7 @@ private:
47 FbAtoms(); 47 FbAtoms();
48 48
49 Atom blackbox_attributes; 49 Atom blackbox_attributes;
50 Atom motif_wm_info;
50 Atom motif_wm_hints; 51 Atom motif_wm_hints;
51 Atom xa_wm_protocols; 52 Atom xa_wm_protocols;
52 Atom xa_wm_state; 53 Atom xa_wm_state;