Change min_client_area_size based on layout

This commit is contained in:
Vitor Kiguchi 2020-01-04 08:59:09 -03:00
parent a0f9c795c8
commit 64737afdbc
3 changed files with 23 additions and 0 deletions

View file

@ -215,6 +215,13 @@ private:
* Clip the provided coordinates to be inside the touchscreen area.
*/
std::tuple<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y) const;
void UpdateMinimumWindowSize(unsigned int min_width, unsigned int min_height){
WindowConfig new_config = config;
new_config.min_client_area_size = std::make_pair(min_width, min_height);
SetConfig(new_config);
ProcessConfigurationChanges();
}
};
} // namespace Frontend