Skip to contentSkip to conversation

Bugfixes for matchbox panel

PATCH New Jussi Kukkonen 1 participant 3 messages Mar 21, 2016

lore
Share & tools
lore
#0 lore raw

cover Bugfixes for matchbox panel

Two fixes for Matchbox panel Home-button issues:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9026
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9284

Thanks,
Jussi

The following changes since commit 068afc5d436c716591a54f7d6e1944d8b6f9a198:

tzdata: update to 2016b (2016-03-20 23:12:32 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib jku/sato-home-icon
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/sato-home-icon

Jussi Kukkonen (2):
matchbox-panel-2: Fix Home-button icon load issue
matchbox-wm: Update to fix XChangeProperty datatype issue

 .../matchbox-wm/matchbox-wm_git.bb                 |  2 +-
 ...top-Make-sure-active-state-is-initialized.patch | 50 ++++++++++++++++++++++
 .../matchbox-panel-2/matchbox-panel-2_git.bb       |  1 +
 3 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-sato/matchbox-panel-2/files/0001-showdesktop-Make-sure-active-state-is-initialized.patch
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/2 matchbox-panel-2: Fix Home-button icon load issue

Home (showdesktop) button sometimes did not load the icon because the active state was never initialized. Backport fix for this issue.

[YOCTO #9026]

---
 ...top-Make-sure-active-state-is-initialized.patch | 50 ++++++++++++++++++++++
 .../matchbox-panel-2/matchbox-panel-2_git.bb       |  1 +
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-sato/matchbox-panel-2/files/0001-showdesktop-Make-sure-active-state-is-initialized.patch
meta/recipes-sato/matchbox-panel-2/files/0001-showdesktop-Make-sure-active-state-is-initialized.patch new file +50 -0
new file mode 100644
index 0000000..3bab6d2
@@ -0,0 +1,50 @@
+From a0b5fca04da208990f3c40e65dbb045da4cdb35e Mon Sep 17 00:00:00 2001
+From: Jussi Kukkonen <[email protected]>
+Date: Sun, 20 Mar 2016 13:24:37 +0200
+Subject: [PATCH] showdesktop: Make sure active state is initialized
+
+There are cases (in qemu at least) where set_active()
+is never called on startup. Make sure we initialize the active
+state so the icon gets loaded and the applet is not confused
+about the current state.
+
+Signed-off-by: Jussi Kukkonen <[email protected]>
+Signed-off-by: Ross Burton <[email protected]>
+
+
+Upstream-Status: Backport
+---
+ applets/showdesktop/showdesktop.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/applets/showdesktop/showdesktop.c b/applets/showdesktop/showdesktop.c
+index 61dd5c2..33c13e1 100644
+--- a/applets/showdesktop/showdesktop.c
++++ b/applets/showdesktop/showdesktop.c
+@@ -181,6 +181,12 @@ button_clicked_cb (GtkButton         *button,
+ 	            &xev);
+ }
+ 
++static void
++realize_cb (GtkWidget *button, ShowDesktopApplet *applet)
++{
++        sync_applet (applet);
++}
++
+ G_MODULE_EXPORT GtkWidget *
+ mb_panel_applet_create (const char    *id,
+                         GtkOrientation orientation)
+@@ -216,6 +222,10 @@ mb_panel_applet_create (const char    *id,
+                           "clicked",
+                           G_CALLBACK (button_clicked_cb),
+                           applet);
++        g_signal_connect (button,
++                          "realize",
++                          G_CALLBACK (realize_cb),
++                          applet);
+ 
+         g_object_weak_ref (G_OBJECT (button),
+                            (GWeakNotify) show_desktop_applet_free,
+-- 
+2.7.0
+
meta/recipes-sato/matchbox-panel-2/matchbox-panel-2_git.bb +1 -0
index 61d9e30..98c3ae4 100644
@@ -22,6 +22,7 @@ RREPLACES_${PN} = "matchbox-panel"
 RCONFLICTS_${PN} = "matchbox-panel"
 
 SRC_URI = "git://git.yoctoproject.org/${BPN} \
+           file://0001-showdesktop-Make-sure-active-state-is-initialized.patch \
            file://silence-warnings.patch"
 
 EXTRA_OECONF = "--enable-startup-notification --enable-dbus"
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 matchbox-wm: Update to fix XChangeProperty datatype issue

This brings us to master HEAD and adds a single commit compared to the previous version:
8178e70 ewmh: Fix data type of a few XChangeProperty calls

This fixes broken Home-button in matchbox panel on mips64 (and probably other platforms).

[YOCTO #9284]

---
 meta/recipes-graphics/matchbox-wm/matchbox-wm_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/matchbox-wm/matchbox-wm_git.bb +1 -1
index 422d255..aa76828 100644
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://src/wm.h;endline=21;md5=a7e844465edbcf79c282369f93caa
 SECTION = "x11/wm"
 DEPENDS = "libmatchbox virtual/libx11 libxext libxrender startup-notification expat gconf libxcursor libxfixes"
 
-SRCREV = "29544f0e61cc281fc60061443a537271e1081b78"
+SRCREV = "8178e70d5c742c4cd63b51df228cc8aa3594d518"
 PV = "1.2+git${SRCPV}"
 
 SRC_URI = "git://git.yoctoproject.org/matchbox-window-manager \
Signature · 1 line
2.1.4