benruijl / sflock

Simple X display locker, with basic user feedback. Based on slock.
MIT License
50 stars 21 forks source link

WM_CLASS, name, etc. #5

Open Janhouse opened 12 years ago

Janhouse commented 12 years ago

Not sure if this is the place to write feature requests, but I'l write it anyway. Could you please add class, type, name or something else unique, so that the sflock window could be matched by compiz or something else (xprop).

benruijl commented 12 years ago

I'll see what I can do when I have the time. This should be a minor code change. Probably adding the following will do the trick:

XClassHint* class_hint = XAllocClassHint(); class_hint->res_name = "sflock"; class_hint->res_class = "sflock"; XSetClassHint(dpy, w, class_hint);

XFree(class_hint); // at the end

Janhouse commented 12 years ago

Gives segmentation fault to me.