diff options
author | akshay-c | 2019-05-13 09:38:33 +0530 |
---|---|---|
committer | akshay-c | 2019-05-13 09:38:33 +0530 |
commit | 8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed (patch) | |
tree | 57b309dfc70d93aa1d08f280ff7a113ca4b17cb9 /ldmicro/lib/freezeLD | |
parent | 3a860d665bf30156d88151998da71e6aebf3f11c (diff) | |
download | LDMicroGtk-8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed.tar.gz LDMicroGtk-8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed.tar.bz2 LDMicroGtk-8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed.zip |
Diffstat (limited to 'ldmicro/lib/freezeLD')
-rw-r--r-- | ldmicro/lib/freezeLD/freezeLD.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ldmicro/lib/freezeLD/freezeLD.cpp b/ldmicro/lib/freezeLD/freezeLD.cpp index 75bbb30..e577f13 100644 --- a/ldmicro/lib/freezeLD/freezeLD.cpp +++ b/ldmicro/lib/freezeLD/freezeLD.cpp @@ -117,7 +117,13 @@ void FreezeWindowPosF(HWID hwid, char *subKey, char *name) return; } newKey.type = 'b'; - newKey.val.b = gtk_window_is_maximized(GTK_WINDOW(hwid)); + + #if defined(__UBUNTU_16_) + newKey.val.b = gtk_window_is_maximized(GTK_WINDOW(hwid)); + #elif defined(__UBUNTU_14_) + newKey.val.b = false; + #endif + Register.write((char*) &newKey, sizeof(newKey)); Register.close(); |