Fixed the cursor lost in resize mode for some themes.