fix killclient binding, add helpful comment
         
        
        
        
        
          
condense getatom and add note about error return
         
        
        
          
Merge branch 'master' of github:djpohly/dwl into master
         
        
        
          
Merge pull request #25 from geistesk/error-maybe-uninitialized
getatom: fix potential uninitialized atom variable
         
        
        
          
add some more hands-off protocols
         
        
        
        
        
          
focusclient checks whether oldsel == sel
No need to do it outside the call.
         
        
        
        
        
        
        
          
convert lastfocused() to focustop(m)
         
        
        
          
pass previous focus to focusclient
         
        
        
          
remove surface from focusclient function
Honestly not sure why a specific surface is focused rather than the
client figuring that out.  Seems to work in a quick test, but we can
remember this commit if something breaks for, I dunno, mouse people.
         
        
        
          
C99 doesn't support anonymous unions
I'm cool with ->surface.xdg instead of ->xdg_surface though.
         
        
        
          
make setmon a bit more straightforward
         
        
        
        
        
          
simplify pointerfocus
Similar to focusclient
         
        
        
          
simplify focusclient
This arranges the function into some logical tasks: deactivate the old
client, update wlroots' keyboard focus, update our data structures, and
activate the new client.  The last two only need to be done when
focusing something new, so an early return saves some horizontal space.
         
        
        
          
remove now-unused variables in focusclient