aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2014-02-02 16:29:04 +0000
committerokan2014-02-02 16:29:04 +0000
commitb803e99634ca48acb240a6e5a67ab768a72159bc (patch)
treee14c9365928aec3a36165f787cf763744738dbcb /screen.c
parent7cf90fa84564259d6ef67cd63017a6cdec385f5a (diff)
downloadcwm-b803e99634ca48acb240a6e5a67ab768a72159bc.tar.gz
No need to store screen colormap and visual; rather just use the X
macros in the one place they are needed.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/screen.c b/screen.c
index 26249d3..37cb5c3 100644
--- a/screen.c
+++ b/screen.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: screen.c,v 1.56 2014/02/02 16:13:50 okan Exp $
+ * $OpenBSD: screen.c,v 1.57 2014/02/02 16:29:04 okan Exp $
*/
#include <sys/param.h>
@@ -44,8 +44,6 @@ screen_init(int which)
TAILQ_INIT(&sc->mruq);
sc->which = which;
- sc->visual = DefaultVisual(X_Dpy, sc->which);
- sc->colormap = DefaultColormap(X_Dpy, sc->which);
sc->rootwin = RootWindow(X_Dpy, sc->which);
conf_screen(sc);