summaryrefslogtreecommitdiff
path: root/ldmicro/lib/freezeLD
diff options
context:
space:
mode:
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();