diff options
-rw-r--r-- | src/app.c | 7 | ||||
-rw-r--r-- | src/ui/root.c | 8 |
2 files changed, 13 insertions, 2 deletions
@@ -1949,8 +1949,11 @@ static iBool handlePrefsCommands_(iWidget *d, const char *cmd) { | |||
1949 | } | 1949 | } |
1950 | } | 1950 | } |
1951 | else if (equalWidget_Command(cmd, d, "input.resized")) { | 1951 | else if (equalWidget_Command(cmd, d, "input.resized")) { |
1952 | updatePreferencesLayout_Widget(d); | 1952 | if (!d->root->pendingArrange) { |
1953 | return iFalse; | 1953 | d->root->pendingArrange = iTrue; |
1954 | postCommand_Root(d->root, "root.arrange"); | ||
1955 | } | ||
1956 | return iTrue; | ||
1954 | } | 1957 | } |
1955 | return iFalse; | 1958 | return iFalse; |
1956 | } | 1959 | } |
diff --git a/src/ui/root.c b/src/ui/root.c index 1295371d..a9bc7feb 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -538,6 +538,14 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) { | |||
538 | #endif | 538 | #endif |
539 | return iFalse; | 539 | return iFalse; |
540 | } | 540 | } |
541 | else if (equal_Command(cmd, "root.arrange")) { | ||
542 | iWidget *prefs = findWidget_Root("prefs"); | ||
543 | if (prefs) { | ||
544 | updatePreferencesLayout_Widget(prefs); | ||
545 | } | ||
546 | root->root->pendingArrange = iFalse; | ||
547 | return iTrue; | ||
548 | } | ||
541 | else if (handleCommand_App(cmd)) { | 549 | else if (handleCommand_App(cmd)) { |
542 | return iTrue; | 550 | return iTrue; |
543 | } | 551 | } |