aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-08-31 08:47:21 -0400
committerKen Moore <ken@ixsystems.com>2017-08-31 08:47:21 -0400
commit0bce08ce5c6fa073b0c9e299ab619d35ecdceef6 (patch)
treeca819bd27c14ae05d6c65164f84f41cab3916430 /src-qt5/core/libLumina/NativeWindow.cpp
parentA couple more minor tweaks. (diff)
downloadlumina-0bce08ce5c6fa073b0c9e299ab619d35ecdceef6.tar.gz
lumina-0bce08ce5c6fa073b0c9e299ab619d35ecdceef6.tar.bz2
lumina-0bce08ce5c6fa073b0c9e299ab619d35ecdceef6.zip
A but more work on Lumina2:
1. Get the menu-based task manager up and running. 2. Get the minimize button setup with normal functionality now (since we can restore it) 3. Get the maximize button logic setup - still testing this 4. Get the window movement animation system setup - still testing this for the maximize functionality 5. Cleanup a bit more of the backend "pause" for windows during animations.
Diffstat (limited to 'src-qt5/core/libLumina/NativeWindow.cpp')
-rw-r--r--src-qt5/core/libLumina/NativeWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/NativeWindow.cpp b/src-qt5/core/libLumina/NativeWindow.cpp
index 3c76ed00..02cc001e 100644
--- a/src-qt5/core/libLumina/NativeWindow.cpp
+++ b/src-qt5/core/libLumina/NativeWindow.cpp
@@ -106,6 +106,10 @@ QRect NativeWindow::geometry(){
return geom;
}
// ==== PUBLIC SLOTS ===
+void NativeWindow::toggleVisibility(){
+ setProperty(NativeWindow::Visible, !property(NativeWindow::Visible).toBool() );
+}
+
void NativeWindow::requestClose(){
emit RequestClose(winid);
}
bgstack15