[Bug 229105] New: kimpanel input window blinks while reach the edge of the window
Weng Xuetian
hurricanek at 126.com
Tue Mar 2 08:34:25 GMT 2010
https://bugs.kde.org/show_bug.cgi?id=229105
Summary: kimpanel input window blinks while reach the edge of
the window
Product: unknown
Version: unspecified
Platform: Archlinux Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs at kde.org
ReportedBy: hurricanek at 126.com
Version: (using KDE 4.4.0)
Compiler: gcc 4.4.3
OS: Linux
Installed from: Archlinux Packages
The kimpanel's input window reach the edge of the window, it will cause some
blinking around the panel.
Here is a patch for fix this problem, the problem seems cause by using
different api while get the bound of the screen. In
KIMLookupTable::updateSpotLocation, it uses screenGeometry() and in
KIMLookupTable::resizeEvent, it uses availableGeometry(), which seems to
contain the size of the panel.
Index: src/kimlookuptable.cpp
===================================================================
--- src/kimlookuptable.cpp (版本 1095591)
+++ src/kimlookuptable.cpp (工作副本)
@@ -172,11 +172,11 @@
m_view->setSceneRect(m_widget->mapToScene(m_widget->boundingRect()).boundingRect());
m_view->centerOn(m_widget);
}
- if ((width() + x() > m_desktop.availableGeometry().width()) ||
- (height() + y() > m_desktop.availableGeometry().height())) {
+ if ((width() + x() > m_desktop.screenGeometry().width()) ||
+ (height() + y() > m_desktop.screenGeometry().height())) {
- move(qMin(m_desktop.availableGeometry().width()-width(),x()),
- qMin(m_desktop.availableGeometry().height()-height(),y()));
+ move(qMin(m_desktop.screenGeometry().width()-width(),x()),
+ qMin(m_desktop.screenGeometry().height()-height(),y()));
}
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list