Implemented case differentiation for window focus/notification on Windows and X11