[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/blazer
From: Ian Reinhart Geiser <geiseri () kde ! org>
Date: 2009-02-10 16:24:52
Message-ID: 1234283092.672863.28426.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 924378 by geiseri:
can anyone tell me what im doing wrong? i can maximize windows on the other screen, \
but i cannot move the window to the top of the screen
M +6 -7 topbar.cpp
--- trunk/playground/base/blazer/topbar.cpp #924377:924378
@@ -65,7 +65,6 @@
layout->setMargin(0);
KWindowSystem::setType( winId(), NET::Dock );
-// KWindowSystem::setState( winId(), NET::Sticky | NET::StaysOnTop | \
NET::KeepAbove ); KWindowSystem::setOnAllDesktops( winId(), true );
}
@@ -76,11 +75,11 @@
int screenWidth = QApplication::desktop()->screenGeometry(0).width();
setGeometry(0, 0, screenWidth, panelSize );
- setFixedHeight( panelSize );
- // FIXME: make this wor on dual head.
+ setFixedSize( screenWidth, panelSize );
+ // FIXME: make this work on dual head.
KWindowSystem::setExtendedStrut( winId(), 0, 0, 0,
0, 0, 0,
- panelSize, x(), x() + screenWidth \
- 1, + panelSize, \
mapToGlobal(pos()).x(), mapToGlobal(pos()).x() + screenWidth - 1, 0, 0, 0);
}
}
@@ -116,12 +115,12 @@
int screenWidth = QApplication::desktop()->screenGeometry(0).width();
int screenHeight = QApplication::desktop()->screenGeometry(0).height();
setGeometry(0, screenHeight - panelSize, screenWidth, panelSize );
- setFixedHeight( panelSize );
- // FIXME: make this wor on dual head.
+ setFixedSize( screenWidth, panelSize );
+ // FIXME: make this work on dual head.
KWindowSystem::setExtendedStrut( winId(), 0, 0, 0,
0, 0, 0,
0, 0, 0,
- panelSize, x(), x() + screenWidth \
- 1 ); + panelSize, \
mapToGlobal(pos()).x(), mapToGlobal(pos()).x() + screenWidth - 1 ); }
m_tasks->setMaximumWidth( width() - m_pager->width() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic