diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-30 14:21:49 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-30 14:22:22 +0300 |
commit | 6bd4f08ff520962d418b42116e262282ad49d537 (patch) | |
tree | b6c1cfbe76d92e528e5d7aa9304dda94356fa5e3 /src/app.c | |
parent | 294d7c1544ec1bd95a70f72705e279fda3afb434 (diff) |
Windows: Fixed custom frame in split modes
Hide duplicated window controls.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -375,7 +375,7 @@ static void savePrefs_App_(const iApp *d) { | |||
375 | static const char *magicState_App_ = "lgL1"; | 375 | static const char *magicState_App_ = "lgL1"; |
376 | static const char *magicTabDocument_App_ = "tabd"; | 376 | static const char *magicTabDocument_App_ = "tabd"; |
377 | 377 | ||
378 | enum iDocumentStateFlag { | 378 | enum 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; |