Commit Graph

9 Commits

Author SHA1 Message Date
David Capello
0934a78db6 Add some comments in fit_bounds.cpp 2021-04-29 16:08:25 -03:00
David Capello
1f5b6980d3 Fix File > Open initial position when multiple monitors are used
With this patch we removed the ui::get_desktop_size() function
too (now we can get the workarea of the display's screen).
2021-04-21 17:01:43 -03:00
David Capello
0d7fea3111 Fix several problems w/multiple screens
* Limit dialogs to the current screen workarea correctly
* Fixed several issues on macOS
2021-04-20 17:55:49 -03:00
David Capello
0396e80fce Fix popup menu positions when we are not in the main screen 2021-03-29 15:55:56 -03:00
David Capello
cf21f78d8d Limit loaded windows frame position with active workarea 2021-03-19 20:20:24 -03:00
David Capello
bcd69495ce Fix several issues locating windows with multiple UI windows
We've refactored the code to support locating windows (and popups
windows + hot regions) correctly in both modes: with one ui::Display
and with multiple ui::Displays.

For this we've added a new ui::fit_bounds() function that works in
both modes.
2021-03-19 18:57:56 -03:00
David Capello
c3d52f0bbe Add ui::Display to support multiple windows in the future
This ui::Display is related to one native os::Window, so the dirty
region/invalid region is now part of a ui::Display instead of a
ui::Manager.

* Replaced ui::display_w/h() functions with ui::Display::size()
  and ui::get_desktop_size()
* The ui::Manager contains the main ui::Display, and in the future an
  ui::Window will have its own ui::Display
2021-02-18 12:34:42 -03:00
David Capello
34ec123ecc Remove MIN/MAX/MID macros from ui library 2019-12-20 15:08:34 -03:00
David Capello
edf1cfd7b0 Add possibility to move the Timeline at the left/right side (fix #1169) 2016-09-15 11:07:36 -03:00