pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/wm/pwm
Module Name: pkgsrc
Committed By: is
Date: Sat Jan 26 20:50:50 UTC 2019
Modified Files:
pkgsrc/wm/pwm: Makefile distinfo
Added Files:
pkgsrc/wm/pwm/patches: patch-clientwin_c patch-event_c patch-global_h
patch-main_c patch-mwmhints_c patch-mwmhints_h
Log Message:
Add support for _NET_WM_STATE_FULLSCREEN.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/wm/pwm/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/wm/pwm/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/wm/pwm/patches/patch-clientwin_c \
pkgsrc/wm/pwm/patches/patch-event_c pkgsrc/wm/pwm/patches/patch-global_h \
pkgsrc/wm/pwm/patches/patch-main_c pkgsrc/wm/pwm/patches/patch-mwmhints_c \
pkgsrc/wm/pwm/patches/patch-mwmhints_h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/wm/pwm/Makefile
diff -u pkgsrc/wm/pwm/Makefile:1.37 pkgsrc/wm/pwm/Makefile:1.38
--- pkgsrc/wm/pwm/Makefile:1.37 Sun Sep 3 08:37:02 2017
+++ pkgsrc/wm/pwm/Makefile Sat Jan 26 20:50:50 2019
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.37 2017/09/03 08:37:02 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2019/01/26 20:50:50 is Exp $
#
DISTNAME= pwm-20060517
PKGNAME= ${DISTNAME:S/-/-1.0./}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= wm x11
MASTER_SITES= http://modeemi.fi/~tuomov/pwm/dl/
Index: pkgsrc/wm/pwm/distinfo
diff -u pkgsrc/wm/pwm/distinfo:1.20 pkgsrc/wm/pwm/distinfo:1.21
--- pkgsrc/wm/pwm/distinfo:1.20 Mon Nov 2 23:42:54 2015
+++ pkgsrc/wm/pwm/distinfo Sat Jan 26 20:50:50 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2015/11/02 23:42:54 agc Exp $
+$NetBSD: distinfo,v 1.21 2019/01/26 20:50:50 is Exp $
SHA1 (pwm-20060517.tar.gz) = d69dd232e07c20a053d1eec92355ee5134a422b3
RMD160 (pwm-20060517.tar.gz) = a2df30c1a4b68b569b5c9e3ec3a8c4ff003714ab
@@ -10,3 +10,9 @@ SHA1 (patch-af) = 1f302ae3b78c436bd5170d
SHA1 (patch-ag) = ed5df2ddc4b4061c66f7599ac1f787a5d78dd778
SHA1 (patch-ah) = 146a957d385cfc70322ffd2c2ddf10238e2960bc
SHA1 (patch-ai) = bf0a0aaf07b53220c01b7e4a0e244988353b22e2
+SHA1 (patch-clientwin_c) = c2982bb3610a68108181b6382182bc7da08ca7d8
+SHA1 (patch-event_c) = 1cbf5b12d6b681744baf86277aeaef60c1316d31
+SHA1 (patch-global_h) = 1c548c61ccb0abb6c2d770b75914578d17722d46
+SHA1 (patch-main_c) = 18f15dd7227e8081b124436a60d5d477d09f273e
+SHA1 (patch-mwmhints_c) = f7b148361db646d5b92971b44d7c3663abbad42e
+SHA1 (patch-mwmhints_h) = 4956b982d30354f9361bd2f908754101c9146388
Added files:
Index: pkgsrc/wm/pwm/patches/patch-clientwin_c
diff -u /dev/null pkgsrc/wm/pwm/patches/patch-clientwin_c:1.1
--- /dev/null Sat Jan 26 20:50:50 2019
+++ pkgsrc/wm/pwm/patches/patch-clientwin_c Sat Jan 26 20:50:50 2019
@@ -0,0 +1,22 @@
+$NetBSD: patch-clientwin_c,v 1.1 2019/01/26 20:50:50 is Exp $
+
+--- clientwin.c.orig 2006-05-17 06:50:33.000000000 +0000
++++ clientwin.c
+@@ -338,6 +338,9 @@ WClientWin* create_clientwin(Window win,
+ cwin->event_mask=CLIENT_MASK;
+ cwin->transient_for=None;
+ cwin->dockpos=INT_MAX;
++
++ (void)XChangeProperty(wglobal.dpy, win, wglobal.atom_net_wm_allow,
++ XA_ATOM, 32, PropModeReplace, (uchar*)&wglobal.atom_net_wm_allow_fs, 1);
+
+ /* Unnecessary, done when reparenting */
+ /* XSelectInput(wglobal.dpy, win, cwin->event_mask); */
+@@ -386,6 +389,7 @@ static bool add_clientwin(WClientWin *cw
+ #ifndef CF_NO_MWM_HINTS
+ get_mwm_hints(win, &(cwin->flags));
+ #endif
++ get_net_wm_state(win, &(cwin->flags));
+
+ get_initial_winprops(win, &frame_id, &ws, &(cwin->flags));
+
Index: pkgsrc/wm/pwm/patches/patch-event_c
diff -u /dev/null pkgsrc/wm/pwm/patches/patch-event_c:1.1
--- /dev/null Sat Jan 26 20:50:50 2019
+++ pkgsrc/wm/pwm/patches/patch-event_c Sat Jan 26 20:50:50 2019
@@ -0,0 +1,17 @@
+$NetBSD: patch-event_c,v 1.1 2019/01/26 20:50:50 is Exp $
+
+--- event.c.orig 2006-05-17 06:50:33.000000000 +0000
++++ event.c
+@@ -584,6 +584,12 @@ static void handle_property(const XPrope
+ if(frame!=NULL && frame->cwin_count==1)
+ frame_set_decor(frame, flags&CWIN_WILD ? WFRAME_NO_DECOR : 0);
+ }
++ if(ev->atom==wglobal.atom_net_wm_state){
++ get_net_wm_state(ev->window, &flags);
++ cwin->flags=(cwin->flags&~CWIN_WILD)|flags;
++ if(frame!=NULL && frame->cwin_count==1)
++ frame_set_decor(frame, flags&CWIN_WILD ? WFRAME_NO_DECOR : 0);
++ }
+ return;
+ }
+
Index: pkgsrc/wm/pwm/patches/patch-global_h
diff -u /dev/null pkgsrc/wm/pwm/patches/patch-global_h:1.1
--- /dev/null Sat Jan 26 20:50:50 2019
+++ pkgsrc/wm/pwm/patches/patch-global_h Sat Jan 26 20:50:50 2019
@@ -0,0 +1,13 @@
+$NetBSD: patch-global_h,v 1.1 2019/01/26 20:50:50 is Exp $
+
+--- global.h.orig 2006-05-17 06:50:33.000000000 +0000
++++ global.h
+@@ -57,6 +57,8 @@ typedef struct _WGlobal{
+ Atom atom_private_ipc;
+ #ifndef CF_NO_MWM_HINTS
+ Atom atom_mwm_hints;
++ Atom atom_net_wm_state, atom_net_wm_state_fs;
++ Atom atom_net_wm_allow, atom_net_wm_allow_fs;
+ #endif
+
+ WWinObj *current_winobj, *previous_winobj;
Index: pkgsrc/wm/pwm/patches/patch-main_c
diff -u /dev/null pkgsrc/wm/pwm/patches/patch-main_c:1.1
--- /dev/null Sat Jan 26 20:50:50 2019
+++ pkgsrc/wm/pwm/patches/patch-main_c Sat Jan 26 20:50:50 2019
@@ -0,0 +1,15 @@
+$NetBSD: patch-main_c,v 1.1 2019/01/26 20:50:50 is Exp $
+
+--- main.c.orig 2006-05-17 06:50:33.000000000 +0000
++++ main.c
+@@ -205,6 +205,10 @@ static bool initialize(const char*displa
+ wglobal.atom_private_ipc=XInternAtom(dpy, "_PWM_PRIVATE_IPC", False);
+ #ifndef CF_NO_MWM_HINTS
+ wglobal.atom_mwm_hints=XInternAtom(dpy, "_MOTIF_WM_HINTS", False);
++ wglobal.atom_net_wm_state=XInternAtom(dpy, "_NET_WM_STATE", False);
++ wglobal.atom_net_wm_state_fs=XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
++ wglobal.atom_net_wm_allow=XInternAtom(dpy, "_NET_WM_ALLOWED_ACTIONS", False);
++ wglobal.atom_net_wm_allow_fs=XInternAtom(dpy, "_NET_WM_ACTION_FULLSCREEN", False);
+ #endif
+
+ init_bindings();
Index: pkgsrc/wm/pwm/patches/patch-mwmhints_c
diff -u /dev/null pkgsrc/wm/pwm/patches/patch-mwmhints_c:1.1
--- /dev/null Sat Jan 26 20:50:50 2019
+++ pkgsrc/wm/pwm/patches/patch-mwmhints_c Sat Jan 26 20:50:50 2019
@@ -0,0 +1,41 @@
+$NetBSD: patch-mwmhints_c,v 1.1 2019/01/26 20:50:50 is Exp $
+
+--- mwmhints.c.orig 2006-05-17 06:50:33.000000000 +0000
++++ mwmhints.c
+@@ -12,8 +12,29 @@
+ #include "mwmhints.h"
+ #include "frame.h"
+
+-
+ #ifndef CF_NO_WILD_WINDOWS
++void get_net_wm_state(Window win, int *flags)
++{
++ Atom *winstate;
++ int n;
++ int i;
++
++ n=do_get_property(wglobal.dpy, win,
++ wglobal.atom_net_wm_state, XA_ATOM,
++ 32, (uchar **)&winstate);
++
++ for (i=0;i<n;i++) {
++ if (winstate[i] == wglobal.atom_net_wm_state_fs) {
++ *flags|=CWIN_WILD;
++ goto cleanup;
++ }
++ }
++ *flags&=~CWIN_WILD;
++
++cleanup:
++ XFree((void *)winstate);
++}
++
+ void get_mwm_hints(Window win, int *flags)
+ {
+ WMwmHints *hints;
+@@ -36,4 +57,5 @@ void get_mwm_hints(Window win, int *flag
+
+ XFree((void*)hints);
+ }
++
+ #endif
Index: pkgsrc/wm/pwm/patches/patch-mwmhints_h
diff -u /dev/null pkgsrc/wm/pwm/patches/patch-mwmhints_h:1.1
--- /dev/null Sat Jan 26 20:50:50 2019
+++ pkgsrc/wm/pwm/patches/patch-mwmhints_h Sat Jan 26 20:50:50 2019
@@ -0,0 +1,11 @@
+$NetBSD: patch-mwmhints_h,v 1.1 2019/01/26 20:50:50 is Exp $
+
+--- mwmhints.h.orig 2019-01-25 19:46:53.325613996 +0000
++++ mwmhints.h
+@@ -56,5 +56,6 @@ typedef struct _WMwmHints{
+
+
+ extern void get_mwm_hints(Window win, int *flags);
++extern void get_net_wm_state(Window win, int *flags);
+
+ #endif /* INCLUDED_MWMHINTS_H */
Home |
Main Index |
Thread Index |
Old Index