On Tue, Jan 12, 2010 at 2:24 PM, yy <yiyu....@gmail.com> wrote: > 2010/1/12 Lorenzo Bolla <lbo...@gmail.com>: >> open your browser to youtube; then use xprop to get WM_CLASS and WM_NAME for >> that window: >> $> xprop | grep -e "WM_CLASS(STRING)" -e "WM_NAME(STRING)" >> in config.h put: >> { <value of WM_CLASS>, NULL, <value of WM_NAME>, 0, True, -1 }, >> hth, >> L. >> > > That won't work neither. The problem is the rules are applied when the > window is managed, but the title of the window won't change until you > reach youtube (after it has been managed by dwm). You could define a > reapplyrules() function to apply rules again to the current window, > but you would have to call it manually - with a key or something - > and, at that point, it would probably be easier to simply make the > window floating. > > -- > - yiyus || JGL . 4l77.com > >
Yeah, instead of going through all the hassle, its better to manually change the window to floating. Thanks a lot for all the help - Deepanjan