summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-30 14:21:49 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-30 14:22:22 +0300
commit6bd4f08ff520962d418b42116e262282ad49d537 (patch)
treeb6c1cfbe76d92e528e5d7aa9304dda94356fa5e3 /src/app.c
parent294d7c1544ec1bd95a70f72705e279fda3afb434 (diff)
Windows: Fixed custom frame in split modes
Hide duplicated window controls.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app.c b/src/app.c
index 29a97c8f..74323b7d 100644
--- a/src/app.c
+++ b/src/app.c
@@ -375,7 +375,7 @@ static void savePrefs_App_(const iApp *d) {
375static const char *magicState_App_ = "lgL1"; 375static const char *magicState_App_ = "lgL1";
376static const char *magicTabDocument_App_ = "tabd"; 376static const char *magicTabDocument_App_ = "tabd";
377 377
378enum iDocumentStateFlag { 378enum iDocumentStateFlag {
379 current_DocumentStateFlag = iBit(1), 379 current_DocumentStateFlag = iBit(1),
380 rootIndex1_DocumentStateFlag = iBit(2) 380 rootIndex1_DocumentStateFlag = iBit(2)
381}; 381};
@@ -1127,9 +1127,9 @@ static int resizeWatcher_(void *user, SDL_Event *event) {
1127 resetFonts_Text(); { 1127 resetFonts_Text(); {
1128 SDL_Event u = { .type = SDL_USEREVENT }; 1128 SDL_Event u = { .type = SDL_USEREVENT };
1129 u.user.code = command_UserEventCode; 1129 u.user.code = command_UserEventCode;
1130 u.user.data1 = strdup("theme.changed"); 1130 u.user.data1 = strdup("theme.changed auto:1");
1131 /*u.user.windowID = id_Window(d->window);*/ 1131 /*u.user.windowID = id_Window(d->window);*/
1132 dispatchEvent_Widget(d->window->root, &u); 1132 dispatchEvent_Window(d->window, &u);
1133 } 1133 }
1134#endif 1134#endif
1135 drawWhileResizing_Window(d->window, winev->data1, winev->data2); 1135 drawWhileResizing_Window(d->window, winev->data1, winev->data2);
@@ -1328,7 +1328,7 @@ iAny *findWidget_App(const char *id) {
1328 if (found) { 1328 if (found) {
1329 return found; 1329 return found;
1330 } 1330 }
1331 } 1331 }
1332 } 1332 }
1333 return NULL; 1333 return NULL;
1334} 1334}
@@ -2364,7 +2364,7 @@ iObjectList *listDocuments_App(const iRoot *rootOrNull) {
2364 if (isInstance_Object(i.object, &Class_DocumentWidget)) { 2364 if (isInstance_Object(i.object, &Class_DocumentWidget)) {
2365 pushBack_ObjectList(docs, i.object); 2365 pushBack_ObjectList(docs, i.object);
2366 } 2366 }
2367 } 2367 }
2368 } 2368 }
2369 } 2369 }
2370 return docs; 2370 return docs;