summaryrefslogtreecommitdiff
path: root/wm/notion/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-04-18 23:15:18 +0000
committerwiz <wiz@pkgsrc.org>2012-04-18 23:15:18 +0000
commitabf8a02906caa76e597c8f492d364fb128558df4 (patch)
treef334a4eb11128f7b3824bfda37250bbbb5ad2406 /wm/notion/patches
parent86c424c5ab2c42fb781fddf8c66685fd0c3def44 (diff)
downloadpkgsrc-abf8a02906caa76e597c8f492d364fb128558df4.tar.gz
Add patches from Philipp Hartwig improving fullscreen mode; from the
notion-general mailing list. Bump PKGREVISION.
Diffstat (limited to 'wm/notion/patches')
-rw-r--r--wm/notion/patches/patch-ioncore_manage.c19
-rw-r--r--wm/notion/patches/patch-ioncore_netwm.c37
-rw-r--r--wm/notion/patches/patch-ioncore_netwm.h17
3 files changed, 73 insertions, 0 deletions
diff --git a/wm/notion/patches/patch-ioncore_manage.c b/wm/notion/patches/patch-ioncore_manage.c
new file mode 100644
index 00000000000..4c9a6763d57
--- /dev/null
+++ b/wm/notion/patches/patch-ioncore_manage.c
@@ -0,0 +1,19 @@
+$NetBSD: patch-ioncore_manage.c,v 1.1 2012/04/18 23:15:19 wiz Exp $
+
+Fixes some fullscreen apps.
+From Philipp Hartwig <ph@phhart.de>
+on notion-general@lists.sourceforge.net
+
+--- ioncore/manage.c.orig 2011-10-29 18:19:21.000000000 +0000
++++ ioncore/manage.c
+@@ -151,8 +151,8 @@ static bool try_fullscreen(WClientWin *c
+ fs_scr=dflt;
+ }
+
+- if(fs_scr==NULL)
+- fs_scr=netwm_check_initial_fullscreen(cwin);
++ if(fs_scr==NULL && netwm_check_initial_fullscreen(cwin))
++ fs_scr=dflt;
+
+ if(fs_scr==NULL)
+ fs_scr=clientwin_fullscreen_chkrq(cwin, param->geom.w, param->geom.h);
diff --git a/wm/notion/patches/patch-ioncore_netwm.c b/wm/notion/patches/patch-ioncore_netwm.c
new file mode 100644
index 00000000000..53b8fba24c2
--- /dev/null
+++ b/wm/notion/patches/patch-ioncore_netwm.c
@@ -0,0 +1,37 @@
+$NetBSD: patch-ioncore_netwm.c,v 1.1 2012/04/18 23:15:19 wiz Exp $
+
+Fixes some fullscreen apps.
+From Philipp Hartwig <ph@phhart.de>
+on notion-general@lists.sourceforge.net
+
+--- ioncore/netwm.c.orig 2011-10-29 18:19:21.000000000 +0000
++++ ioncore/netwm.c
+@@ -95,7 +95,7 @@ void netwm_init_rootwin(WRootWin *rw)
+ /*{{{ _NET_WM_STATE */
+
+
+-WScreen *netwm_check_initial_fullscreen(WClientWin *cwin)
++bool netwm_check_initial_fullscreen(WClientWin *cwin)
+ {
+
+ int i, n;
+@@ -106,16 +106,16 @@ WScreen *netwm_check_initial_fullscreen(
+ 1, TRUE, (uchar**)&data);
+
+ if(n<0)
+- return NULL;
++ return FALSE;
+
+ for(i=0; i<n; i++){
+ if(data[i]==(long)atom_net_wm_state_fullscreen)
+- return region_screen_of((WRegion*)cwin);
++ return TRUE;
+ }
+
+ XFree((void*)data);
+
+- return NULL;
++ return FALSE;
+ }
+
+
diff --git a/wm/notion/patches/patch-ioncore_netwm.h b/wm/notion/patches/patch-ioncore_netwm.h
new file mode 100644
index 00000000000..4a122747459
--- /dev/null
+++ b/wm/notion/patches/patch-ioncore_netwm.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-ioncore_netwm.h,v 1.1 2012/04/18 23:15:19 wiz Exp $
+
+Fixes some fullscreen apps.
+From Philipp Hartwig <ph@phhart.de>
+on notion-general@lists.sourceforge.net
+
+--- ioncore/netwm.h.orig 2011-10-29 18:19:21.000000000 +0000
++++ ioncore/netwm.h
+@@ -20,7 +20,7 @@
+ extern void netwm_init();
+ extern void netwm_init_rootwin(WRootWin *rw);
+
+-extern WScreen *netwm_check_initial_fullscreen(WClientWin *cwin);
++extern bool netwm_check_initial_fullscreen(WClientWin *cwin);
+ extern void netwm_update_state(WClientWin *cwin);
+ extern void netwm_delete_state(WClientWin *cwin);
+ extern void netwm_set_active(WRegion *reg);