Systray problem

Andras Mantia amantia at kde.org
Wed Oct 22 19:40:19 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

 I noticed some possible bug in the systray after today's update. For example 
the KPPP icon in the systray appears after the first successful connection, 
but it doesn't appear anymore after disconnectin/reconnecting and I get some 
X errors like:
X Error: RenderBadPicture (invalid Picture parameter) 168
  Major opcode:  152
  Minor opcode:  8
  Resource id:  0x4000159


Looking at the code I realized that KPPP has a widget which inherits 
KSystemTray and the connection icons are drawn in this widget's paintEvent 
and the errors are coming when it draws the pixmaps with bitblt. It works 
correctly until this widget is hidden and shown again. And this is what KPPP 
does:
- - created the KSystemTray widget
- - show when connected
- - hide when disconnected
- - show again when connected and so.

If I change the KPPP code to delete the widget instead of hiding it and create 
it again before showing it works as before, no problems. But I believe it's 
still more a workaround than a fix, but if it doesn't get fixed in kdelibs I 
will commit the attached changes to KPPP.

Andras

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/ls8YTQdfac6L/08RAoaIAJ4i1vICLDDhvQ9C2d4EOOIhff/NCQCcDzmb
/2ctYLB+q3ODEiZJ5Ux9H4E=
=WHiR
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kppp.diff
Type: text/x-diff
Size: 2246 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031022/49f5fbd7/attachment.diff>


More information about the kde-core-devel mailing list