Change-Id: I2d86973ce2f07f0d6a4bbb3ca1154a1ca1809d66
CSCLResourceCache *cache = CSCLResourceCache::get_instance();
CSCLWindows *windows = CSCLWindows::get_instance();
if (cache) {
- cache->set_custom_starting_coordinates(x, y);
- if (windows) {
- cache->recompute_layout(windows->get_base_window());
+ SclPoint coords = cache->get_custom_starting_coordinates();
+ /* Do not proceed if the new coordinates are same with the values that we currently have */
+ if (x != coords.x || y != coords.y) {
+ cache->set_custom_starting_coordinates(x, y);
+ if (windows) {
+ cache->recompute_layout(windows->get_base_window());
+ }
}
}
}