summaryrefslogtreecommitdiff
path: root/ldmicro/lib/freezeLD
diff options
context:
space:
mode:
authorakshay-c2019-05-13 09:38:33 +0530
committerakshay-c2019-05-13 09:38:33 +0530
commit8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed (patch)
tree57b309dfc70d93aa1d08f280ff7a113ca4b17cb9 /ldmicro/lib/freezeLD
parent3a860d665bf30156d88151998da71e6aebf3f11c (diff)
downloadLDMicroGtk-8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed.tar.gz
LDMicroGtk-8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed.tar.bz2
LDMicroGtk-8aeb1edb1da821e47f3d497dcce1c25dbbb3c6ed.zip
Better functionality to differentiate between flavours of UbuntuHEADmaster
Diffstat (limited to 'ldmicro/lib/freezeLD')
-rw-r--r--ldmicro/lib/freezeLD/freezeLD.cpp8
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();