LukeSmithxyz / dwm

Luke's build of dwm
MIT License
795 stars 530 forks source link

dwm title bar updates only when restarting dwm #16

Closed kronikpillow closed 4 years ago

kronikpillow commented 4 years ago

the status bar titles are not being updated when I switch windows

on the first screenshot, it says Forge of Empires - Brave, while I have youtube opened and on the second screenshot, it says #low-members - Discord while I'm actually on #technical_support hexdsl's discord server, the only time the title in the status bar updates is when I self-restart dwm, it should be updating every time I switch a window ...

screenshot 1 screenshot 2

I am assuming it has something to do with this warning when I sudo make clean install on your build

dwm.c: In function ‘propertynotify’:
dwm.c:1372:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
 1372 |  if ((ev->window == root) && (ev->atom == XA_WM_NAME))
      |     ^
kronikpillow commented 4 years ago

fixed manually and made a pull request :+1: :)