diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-07 09:20:25 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-07 09:20:25 +0300 |
commit | 63af9a9cd4b048380a763cf4003e977bb0d6275a (patch) | |
tree | 8dba73079e874a088bd28bdeca254b102f6ac021 /src/app.c | |
parent | db64270782a53463a74e019127a3925e78fd96cd (diff) |
SidebarWidget: Store width as resolution independent units
DPI and pixel ratio changes should not radically change width of the sidebar.
IssueID #239
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -180,8 +180,8 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
180 | w = d->window->place.normalRect.size.x; | 180 | w = d->window->place.normalRect.size.x; |
181 | h = d->window->place.normalRect.size.y; | 181 | h = d->window->place.normalRect.size.y; |
182 | appendFormat_String(str, "window.setrect width:%d height:%d coord:%d %d\n", w, h, x, y); | 182 | appendFormat_String(str, "window.setrect width:%d height:%d coord:%d %d\n", w, h, x, y); |
183 | appendFormat_String(str, "sidebar.width arg:%d\n", width_SidebarWidget(sidebar)); | 183 | appendFormat_String(str, "sidebar.width arg:%f gaps:1\n", width_SidebarWidget(sidebar)); |
184 | appendFormat_String(str, "sidebar2.width arg:%d\n", width_SidebarWidget(sidebar2)); | 184 | appendFormat_String(str, "sidebar2.width arg:%f gaps:1\n", width_SidebarWidget(sidebar2)); |
185 | /* On macOS, maximization should be applied at creation time or the window will take | 185 | /* On macOS, maximization should be applied at creation time or the window will take |
186 | a moment to animate to its maximized size. */ | 186 | a moment to animate to its maximized size. */ |
187 | #if defined (LAGRANGE_CUSTOM_FRAME) | 187 | #if defined (LAGRANGE_CUSTOM_FRAME) |