1. Move your laptop You can easily take your laptop away into another locked room. Currently, I'm using part of this option since I don't want to take chances. My laptop ends up in the bedroom with the door closed; no pets allowed.
2. Place some cat obstacles on your laptop This involves stacking a few light things from your desk, like notebooks, calendars, a tissue box, to create an obstacle to prevent your cat from lounging on your laptop. In my experience, this only works part of the time as an intelligent cat will most likely just throw these off to make space for itself.
4. Create a cat bed nearby Using a small blanket or cushion, you can create an alternative resting spot for your cat. Although I wouldn't put it on you desk, since cats tend to throw stuff off them, it could be put on one of your nearby shelves. Since I also have a dog, my pets are a lethal combo. The cat throws something off and the dog chews on it.
5. Take your cat on your lap Our feral little cat has turned into a lap cat, and we're sure that your cats are like this as well. The best spot in the house is on your lap, and cats enjoy staying there for hours at a time, especially if you're working.