diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 11:48:55 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 11:48:55 +0200 |
commit | e43ecd3eb279e117cbce8fd507ecef247938e4ac (patch) | |
tree | 3170c62d0ed1bdf40a457f678e6d17352661f822 /src | |
parent | 16abdffb430e1317b746356a4456984ecf06c15b (diff) |
Fixed unnecessary immediate refresh
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/util.c | 4 | ||||
-rw-r--r-- | src/ui/window.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index ef69b5f1..1ad3f30e 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -456,14 +456,14 @@ void openMenu_Widget(iWidget *d, iInt2 coord) { | |||
456 | if (leftExcess > 0) { | 456 | if (leftExcess > 0) { |
457 | d->rect.pos.x += leftExcess; | 457 | d->rect.pos.x += leftExcess; |
458 | } | 458 | } |
459 | refresh_App(); | 459 | postRefresh_App(); |
460 | postCommand_Widget(d, "menu.opened"); | 460 | postCommand_Widget(d, "menu.opened"); |
461 | } | 461 | } |
462 | 462 | ||
463 | void closeMenu_Widget(iWidget *d) { | 463 | void closeMenu_Widget(iWidget *d) { |
464 | setFlags_Widget(d, hidden_WidgetFlag, iTrue); | 464 | setFlags_Widget(d, hidden_WidgetFlag, iTrue); |
465 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iTrue); | 465 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iTrue); |
466 | refresh_App(); | 466 | postRefresh_App(); |
467 | postCommand_Widget(d, "menu.closed"); | 467 | postCommand_Widget(d, "menu.closed"); |
468 | } | 468 | } |
469 | 469 | ||
diff --git a/src/ui/window.c b/src/ui/window.c index 6441a2e3..1bf9065e 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -345,7 +345,7 @@ static iBool handleSearchBarCommands_(iWidget *searchBar, const char *cmd) { | |||
345 | if (!isVisible_Widget(searchBar)) { | 345 | if (!isVisible_Widget(searchBar)) { |
346 | setFlags_Widget(searchBar, hidden_WidgetFlag | disabled_WidgetFlag, iFalse); | 346 | setFlags_Widget(searchBar, hidden_WidgetFlag | disabled_WidgetFlag, iFalse); |
347 | arrange_Widget(get_Window()->root); | 347 | arrange_Widget(get_Window()->root); |
348 | refresh_App(); | 348 | postRefresh_App(); |
349 | } | 349 | } |
350 | } | 350 | } |
351 | } | 351 | } |