aboutsummaryrefslogtreecommitdiff
path: root/lumina-wm-INCOMPLETE/LWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-11-20 15:19:31 -0500
committerKen Moore <moorekou@gmail.com>2015-11-20 15:19:31 -0500
commit1e09267ccaa9f14c23665551825c01f7eeff112e (patch)
treee665575495582dabadff61c87a96d4a9e20c874b /lumina-wm-INCOMPLETE/LWindow.cpp
parentFix up the WM a bit more - now it can open/close windows without issues (stil... (diff)
downloadlumina-1e09267ccaa9f14c23665551825c01f7eeff112e.tar.gz
lumina-1e09267ccaa9f14c23665551825c01f7eeff112e.tar.bz2
lumina-1e09267ccaa9f14c23665551825c01f7eeff112e.zip
Fix up the window minimization routines and the window margins for the embedded client.
Diffstat (limited to 'lumina-wm-INCOMPLETE/LWindow.cpp')
-rw-r--r--lumina-wm-INCOMPLETE/LWindow.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lumina-wm-INCOMPLETE/LWindow.cpp b/lumina-wm-INCOMPLETE/LWindow.cpp
index 85fec396..2a89e2a4 100644
--- a/lumina-wm-INCOMPLETE/LWindow.cpp
+++ b/lumina-wm-INCOMPLETE/LWindow.cpp
@@ -86,7 +86,9 @@ void LWindowFrame::InitWindow(){
titleBar->setLayout(HL);
QVBoxLayout *VL = new QVBoxLayout(this);
this->setLayout(VL);
- VL->setContentsMargins(0,0,0,0);
+ //The WinWidget container appears shifted right/down by 1 pixel for some reason
+ // Adjust the margins to account for this variation
+ VL->setContentsMargins(1,1,2,2);
VL->setSpacing(0);
//Have the window take the same initial size of the client window
QRect geom = LWM::SYSTEM->WM_Window_Geom(CID);
@@ -101,9 +103,9 @@ void LWindowFrame::InitWindow(){
//WINBACK = new QBackingStore(WIN); //create a data backup for the widget
//Now assemble te initial layout for the window (all while still invisible)
- VL->addWidget(titleBar);
+ /*VL->addWidget(titleBar);
VL->addWidget(WinWidget);
- VL->setStretch(1,1);
+ VL->setStretch(1,1);*/
}
LWindowFrame::ModState LWindowFrame::getStateAtPoint(QPoint pt, bool setoffset){
@@ -309,6 +311,7 @@ void LWindowFrame::finishedAnimation(){
break;
case LWM::Closed:
case LWM::Hide:
+ this->lower();
this->hide();
LWM::SYSTEM->WM_HideWindow(this->winId());
default:
@@ -359,7 +362,7 @@ void LWindowFrame::closeClicked(){
void LWindowFrame::minClicked(){
qDebug() << "Minimize Window";
- //this->showMinimized(); //need direct modification with XCB
+ windowChanged(LWM::Hide);
}
void LWindowFrame::maxClicked(){
bgstack15