Don't check atomic property non_desktop when not using atomic mode setting
I also added a check if the prop has been found at all. I think it's been in the kernel for a very long time but better be safe than sorry.
Edited by Xaver Hugl
I also added a check if the prop has been found at all. I think it's been in the kernel for a very long time but better be safe than sorry.