Bug 229105 - kimpanel input window blinks while reach the edge of the window
Summary: kimpanel input window blinks while reach the edge of the window
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-misc (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 09:34 UTC by Weng Xuetian
Modified: 2011-11-28 02:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weng Xuetian 2010-03-02 09:34:22 UTC
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()));
     }
 }
Comment 1 terry 2010-11-26 04:56:03 UTC
i have the same problem
Comment 2 Gérard Talbot (no longer involved) 2011-08-12 17:52:48 UTC
> The kimpanel's input window reach the edge of the window, it will cause some
> blinking around the panel.

Weng,

Would it be possible for you to add a link to a screen shot of what such kimpanel input window is or attach a screen shot to this bug report showing what is such kimpanel input window. I ask this because I believe - I am not sure - this may be the same issue that I reported in bug 279935 

Also, if you have a patch ready for this bug, then I believe there is something you can do or add into this bug report. Not sure what... 

Maybe just re-edit this bug summary and add/prefix it with [proposed patch] .
So that it would read:
Bug 229105 - [proposed patch] kimpanel input window blinks while reach the edge of the window

regards, Gérard
Comment 3 Weng Xuetian 2011-11-28 02:53:16 UTC
.. anyway, I have already rewrite this plasmoid myself after a long time and merged, and this is fixed.