Bug#445056: stalonetray: No icons for EWMH compliant programs

2007-10-03 Thread Edouard Gomez
Roman S Dubtsov ([EMAIL PROTECTED]) wrote:
> This seems like arch-specific bug. Could you please try patch attached? 

Works for me(tm).

So might be a good idea to include it in the next debian upload.

Thanks for the work.

-- 
Edouard Gomez



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#445056: stalonetray: No icons for EWMH compliant programs

2007-10-03 Thread Roman S Dubtsov
Hi, 

This seems like arch-specific bug. Could you please try patch attached? 

You can apply it to the sources obtained via 'apt-get source stalonetray', 
run 'apt-get build-dep stalonetray', and then build the updated package by 
running 'fakeroot debian/rules binary'.

-- 
Regards,
Roman

Index: src/xembed.c
===
--- src/xembed.c	(revision 455)
+++ src/xembed.c	(working copy)
@@ -534,10 +534,12 @@
 {
 	Atom act_type;
 	int act_fmt;
-	unsigned long nitems, bytesafter;
+	unsigned long nitems, bytesafter, *data;
 	unsigned char *tmpdata;
 	int rc;
-	XGetWindowProperty(tray_data.dpy,
+	/* NOTE: x11_get_win_prop32 is not used since we need to distinguish between
+	 * X11 errors and absence of the property */
+	rc = XGetWindowProperty(tray_data.dpy,
 	   ti->wid,
 	   tray_data.xembed_data.xa_xembed_info,
 	   0,
@@ -549,11 +551,12 @@
 	   &nitems,
 	   &bytesafter,
 	   &tmpdata);
-	if (!x11_ok()) return XEMBED_RESULT_X11ERROR;
-	rc = (x11_ok() && act_type == tray_data.xembed_data.xa_xembed_info && nitems == 2);
+	if (!x11_ok() || rc != Success) return XEMBED_RESULT_X11ERROR;
+	rc = (act_type == tray_data.xembed_data.xa_xembed_info && nitems == 2);
 	if (rc) {
-		ti->xembed_data[0] = ((CARD32 *) tmpdata)[0];
-		ti->xembed_data[1] = ((CARD32 *) tmpdata)[1];
+		data = (unsigned long*) tmpdata;
+		ti->xembed_data[0] = data[0];
+		ti->xembed_data[1] = data[1];
 	}
 	if (nitems && tmpdata != NULL) XFree(tmpdata);
 	return rc ? XEMBED_RESULT_OK : XEMBED_RESULT_UNSUPPORTED;
Index: src/icons.h
===
--- src/icons.h	(revision 455)
+++ src/icons.h	(working copy)
@@ -39,7 +39,7 @@
 	int is_layed_out;			/* Flag: the icon is succesfully layed out */
 	int is_updated;/* Flag: the position of the icon needs to be updated */
 	int is_xembed_supported;	/* Flag: does the icon support xembed */
-	CARD32 xembed_data[2];		/* XEMBED data */
+	unsigned long xembed_data[2];/* XEMBED data */
 	int is_size_set;			/* Flag: has the size for the icon been set */
 	int is_xembed_accepts_focus;/* Flag: does the icon want focus */
 	long xembed_last_timestamp; /* The timestamp of last processed xembed message */


Bug#445056: stalonetray: No icons for EWMH compliant programs

2007-10-02 Thread Edouard Gomez
Package: stalonetray
Version: 0.7.2-1
Severity: important

Hello,

I've been using the stalonetray package since 0.6.3, and the icons from
pidgin and other EWMH applications using tray icons stopped showing up
in stalonetray starting from the 0.7 package.

I'm using stalonetray with Openbox
openbox3.4.4-1

The only change i could experience as a user was the default -w mode
that changed. But starting it in with or w/o -w not doesn't fix the problem.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages stalonetray depends on:
ii  libc6 2.6.1-5GNU C Library: Shared libraries
ii  libx11-6  2:1.0.3-7  X11 client-side library
ii  libxpm4   1:3.5.7-1  X11 pixmap library

stalonetray recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]