Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu
@ 2011-03-12  8:55 Yu Ke
  2011-03-12  8:55 ` [PATCH 1/1] matchbox-desktop: add configure event handler to fix bug 658 Yu Ke
  2011-03-16 13:53 ` [poky] [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Yu Ke @ 2011-03-12  8:55 UTC (permalink / raw)
  To: poky, openembedded-core

the reason of the abnormal matchbox desktop icons is that: desktop is
not resize after window manager decorate it. there does has resize logic
in the root window PropertyNotify event handler, however, for some unknown
reason, the PropertyNotify event does not deliver to the root window.

this patch fix this issue from anotehr side. Since window manager also
send configure event to desktop window after decoration, it also works to do
resize in configure event handler. so this patch add configure event handelr
to fix this issue.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: kyu3/bug658-desktop
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/bug658-desktop

Thanks,
    Yu Ke <ke.yu@intel.com>
---


Yu Ke (1):
  matchbox-desktop: add configure event handler to fix bug 658

 .../matchbox-desktop/files/window-resize-fix.patch |   48 ++++++++++++++++++++
 .../matchbox-desktop/matchbox-desktop_git.bb       |    5 +-
 2 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-sato/matchbox-desktop/files/window-resize-fix.patch




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] matchbox-desktop: add configure event handler to fix bug 658
  2011-03-12  8:55 [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu Yu Ke
@ 2011-03-12  8:55 ` Yu Ke
  2011-03-16 13:53 ` [poky] [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Yu Ke @ 2011-03-12  8:55 UTC (permalink / raw)
  To: poky, openembedded-core

Bug658 - "the bottom icons on Applications and All screen are cut-off in qemu"

the reason is that desktop work area is not resized after window manager
decoration. so add configure event handler to resize the desktop work area
can fix this issue.

[YOCTO #658]

Signed-off-by: Yu Ke <ke.yu@intel.com>
---
 .../matchbox-desktop/files/window-resize-fix.patch |   48 ++++++++++++++++++++
 .../matchbox-desktop/matchbox-desktop_git.bb       |    5 +-
 2 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-sato/matchbox-desktop/files/window-resize-fix.patch

diff --git a/meta/recipes-sato/matchbox-desktop/files/window-resize-fix.patch b/meta/recipes-sato/matchbox-desktop/files/window-resize-fix.patch
new file mode 100644
index 0000000..87fbd50
--- /dev/null
+++ b/meta/recipes-sato/matchbox-desktop/files/window-resize-fix.patch
@@ -0,0 +1,48 @@
+commit 2ef9a98cbda46b5a52e20ce292eebd6ba1f3c3a8
+Author: Yu Ke <ke.yu@intel.com>
+Date:   Sun Mar 6 17:58:45 2011 +0800
+
+    desktop: Add configure event handler for desktop resize
+    
+    desktop need to resize its work area when window manager decorate its
+    window. Originally it is done by the hook in root window PropertyNotify
+    event handler, i.e. net_workarea_changed () routine. However, for unknown
+    reason, the PropertyNotify event does not deliver to the root window,
+    thus this routine does not work.
+    
+    this patch fix this issue from another side. Since window manager will also
+    send configure event to desktop window after decoration, it also works to do
+    it in configure event handler.
+    
+    Signed-off-by: Yu Ke <ke.yu@intel.com>
+
+diff --git a/src/desktop.c b/src/desktop.c
+index d4fc2fb..5aa2cfc 100644
+--- a/src/desktop.c
++++ b/src/desktop.c
+@@ -130,6 +130,15 @@ workarea_changed (int x, int y, int w, int h)
+   gtk_fixed_move (GTK_FIXED (fixed), box, x, y);
+ }
+ 
++static gboolean
++desktop_configure_callback(GtkWindow *window,
++		GdkEvent *event, gpointer data)
++{
++	gtk_widget_set_size_request (box, event->configure.width, event->configure.height);
++	gtk_widget_queue_resize (box);
++	return FALSE;
++}
++
+ GtkWidget *
+ create_desktop (void)
+ {
+@@ -176,6 +185,9 @@ create_desktop (void)
+   /* Set a sane default in case there is no work area defined yet */
+   workarea_changed (0, 0, screen_w, screen_h);
+ 
++  g_signal_connect(G_OBJECT(window), "configure-event",
++		  G_CALLBACK(desktop_configure_callback), NULL);
++
+ #ifdef STANDALONE
+   /* TODO: fake workarea_changed calls on window resize */
+ #else
diff --git a/meta/recipes-sato/matchbox-desktop/matchbox-desktop_git.bb b/meta/recipes-sato/matchbox-desktop/matchbox-desktop_git.bb
index 09f7913..38d2d69 100644
--- a/meta/recipes-sato/matchbox-desktop/matchbox-desktop_git.bb
+++ b/meta/recipes-sato/matchbox-desktop/matchbox-desktop_git.bb
@@ -11,10 +11,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
 DEPENDS = "gtk+ startup-notification dbus"
 SECTION = "x11/wm"
 PV = "2.0+git${SRCPV}"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "git://git.pokylinux.org/${PN}-2;protocol=git \
-           file://dso_linking_change_build_fix.patch"
+           file://dso_linking_change_build_fix.patch \
+           file://window-resize-fix.patch"
 
 EXTRA_OECONF = "--enable-startup-notification --with-dbus"
 
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [poky] [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu
  2011-03-12  8:55 [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu Yu Ke
  2011-03-12  8:55 ` [PATCH 1/1] matchbox-desktop: add configure event handler to fix bug 658 Yu Ke
@ 2011-03-16 13:53 ` Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-03-16 13:53 UTC (permalink / raw)
  To: Yu Ke; +Cc: poky, openembedded-core

On Sat, 2011-03-12 at 16:55 +0800, Yu Ke wrote:
> the reason of the abnormal matchbox desktop icons is that: desktop is
> not resize after window manager decorate it. there does has resize logic
> in the root window PropertyNotify event handler, however, for some unknown
> reason, the PropertyNotify event does not deliver to the root window.
> 
> this patch fix this issue from anotehr side. Since window manager also
> send configure event to desktop window after decoration, it also works to do
> resize in configure event handler. so this patch add configure event handelr
> to fix this issue.
> 
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>   Branch: kyu3/bug658-desktop
>   Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/bug658-desktop
> 
> Thanks,
>     Yu Ke <ke.yu@intel.com>
> ---
> 
> 
> Yu Ke (1):
>   matchbox-desktop: add configure event handler to fix bug 658

Merged into master, thanks.

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-16 13:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-12  8:55 [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu Yu Ke
2011-03-12  8:55 ` [PATCH 1/1] matchbox-desktop: add configure event handler to fix bug 658 Yu Ke
2011-03-16 13:53 ` [poky] [PATCH 0/1] Fix bug 658: bottom icons are cut-off in qemu Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox