X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=screen.c;h=8d04911644cbe44228fe340d8490b3dd1ac0210d;hb=cc7970010bd78e700d790b12617a50c9f9fd45a8;hp=b534766cdb9ab57397705d21188461a81bf5108e;hpb=36672d0401299a5230b516ca4575365d9f45dd35;p=dwm.git diff --git a/screen.c b/screen.c index b534766..8d04911 100644 --- a/screen.c +++ b/screen.c @@ -3,6 +3,7 @@ #include #include #include +#include #include /* static */ @@ -245,7 +246,7 @@ setlayout(const char *arg) { } else { for(i = 0; i < nlayouts; i++) - if(arg == layouts[i].symbol) + if(!strcmp(arg, layouts[i].symbol)) break; if(i == nlayouts) return;