aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2019-03-04 19:28:17 +0000
committerokan2019-03-04 19:28:17 +0000
commitf9cc6bc28fcaadc3f0eea32de200c98ed65671e4 (patch)
tree3b59621a6066197982d20408c605078bb092a1d2 /conf.c
parent630b170b88810b2ccb695b6f715b9a415525c926 (diff)
downloadcwm-f9cc6bc28fcaadc3f0eea32de200c98ed65671e4.tar.gz
Separate out the menu window from the client resize/move geom window; in each
case, create and destroy on-demand. Isolate more menu specific code.
Diffstat (limited to '')
-rw-r--r--conf.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/conf.c b/conf.c
index fa068cd..7812756 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.247 2019/03/04 13:33:39 okan Exp $
+ * $OpenBSD: conf.c,v 1.248 2019/03/04 19:28:18 okan Exp $
*/
#include <sys/types.h>
@@ -501,16 +501,6 @@ conf_screen(struct screen_ctx *sc)
}
}
- sc->menu.win = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
- Conf.bwidth,
- sc->xftcolor[CWM_COLOR_MENU_FG].pixel,
- sc->xftcolor[CWM_COLOR_MENU_BG].pixel);
-
- sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win,
- sc->visual, sc->colormap);
- if (sc->menu.xftdraw == NULL)
- errx(1, "%s: XftDrawCreate", __func__);
-
conf_grab_kbd(sc->rootwin);
}