summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 3b6752de..6d172c02 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1049,6 +1049,23 @@ void processEvents_App(enum iAppEventMode eventMode) {
1049 } 1049 }
1050 continue; 1050 continue;
1051 } 1051 }
1052 else if (ev.type == SDL_USEREVENT && ev.user.code == arrange_UserEventCode) {
1053 printf("[App] rearrange\n");
1054 resize_Window(d->window, -1, -1);
1055 iForIndices(i, d->window->roots) {
1056 if (d->window->roots[i]) {
1057 d->window->roots[i]->pendingArrange = iFalse;
1058 }
1059 }
1060// if (ev.user.data2 == d->window->roots[0]) {
1061// arrange_Widget(d->window->roots[0]->widget);
1062// }
1063// else if (d->window->roots[1]) {
1064// arrange_Widget(d->window->roots[1]->widget);
1065// }
1066// postRefresh_App();
1067 continue;
1068 }
1052 d->lastEventTime = SDL_GetTicks(); 1069 d->lastEventTime = SDL_GetTicks();
1053 if (d->isIdling) { 1070 if (d->isIdling) {
1054// printf("[App] ...woke up\n"); 1071// printf("[App] ...woke up\n");
@@ -1561,6 +1578,10 @@ static iBool handlePrefsCommands_(iWidget *d, const char *cmd) {
1561 setToggle_Widget(findChild_Widget(d, "prefs.ostheme"), iFalse); 1578 setToggle_Widget(findChild_Widget(d, "prefs.ostheme"), iFalse);
1562 } 1579 }
1563 } 1580 }
1581 else if (equalWidget_Command(cmd, d, "input.resized")) {
1582 updatePreferencesLayout_Widget(d);
1583 return iFalse;
1584 }
1564 return iFalse; 1585 return iFalse;
1565} 1586}
1566 1587