Change min_client_area_size based on layout
This commit is contained in:
parent
a0f9c795c8
commit
64737afdbc
3 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue