[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#757069: kde4libs: Plasma buttons/checkboxes not clickable on arm



Package: kde4libs
Version: 4.8.4
Severity: important
Tags: upstream patch

Dear Maintainer,

On arm arch machines, the QWIDGETSIZE_MAX and QWIDGETSIZE_MAX return unexpected values
in /plasma/corona.cpp.  This affects the draw order of kde4 plasma desktop elements making
them very difficult and in some cases impossible to use.

This bug can be seen by trying to add a plasma-desktop widget in the K desktop
 environment on an arm based machine (Adaptiva Parallella in my case). The desktop widgets
cannot be dragged from the selection drawer to the desktop and moving the slider is very
difficult.

This relates to the upstream bug #282975 on bugs.kde.org
<https://bugs.kde.org/show_bug.cgi?id=282975>

A patch for kdelibs' corona.cpp that fixes this bug can be found at:
<http://goo.gl/ph8OqQ>

A more in-depth description of the behaviour that causes this bug can be found at:
<http://mail.kde.org/pipermail/active/2013-November/007228.html>

I applied this patch to the debian kde4libs sources and built a new .deb, and can confirm the patch
does fix the behavior.

-- System Information:
Debian Release: 7.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 'stable-updates'), (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 3.12.0 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/plasma/corona.cpp b/plasma/corona.cpp
index 5c90aa4..7dff075 100644
--- a/plasma/corona.cpp
+++ b/plasma/corona.cpp
@@ -388,7 +388,7 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget)
     }
 
     d->offscreenWidgets[i] = widget;
-    widget->setPos((-i - 1) * QWIDGETSIZE_MAX, -QWIDGETSIZE_MAX);
+    widget->setPos((-i - 1) * 2000, -2000);
 
     QGraphicsWidget *pw = widget->parentWidget();
     widget->setParentItem(0);

Reply to: