Change min_client_area_size based on layout
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user