Index: Makefile =================================================================== RCS file: /home/pcvs/ports/graphics/feh/Makefile,v retrieving revision 1.30 diff -u -u -r1.30 Makefile --- Makefile 2 Mar 2009 01:27:11 -0000 1.30 +++ Makefile 11 Mar 2009 20:50:18 -0000 @@ -7,7 +7,7 @@ PORTNAME= feh PORTVERSION= 1.3.4 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= http://linuxbrit.co.uk/downloads/ Index: files/patch-src-winwidget.c =================================================================== RCS file: files/patch-src-winwidget.c diff -N files/patch-src-winwidget.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src-winwidget.c 11 Mar 2009 20:48:47 -0000 @@ -0,0 +1,33 @@ +--- src/winwidget.c.orig 2005-07-14 13:59:03.000000000 +0200 ++++ src/winwidget.c 2009-03-11 21:46:33.000000000 +0100 +@@ -158,6 +158,7 @@ + int h) + { + XSetWindowAttributes attr; ++ XEvent ev; + XClassHint *xch; + MWMHints mwmhints; + Atom prop = None; +@@ -256,6 +257,22 @@ + XChangeProperty(disp, ret->win, prop, prop, 32, PropModeReplace, + (unsigned char *) &mwmhints, PROP_MWM_HINTS_ELEMENTS); + } ++ if (ret->full_screen) { ++ Atom prop_fs = XInternAtom(disp, "_NET_WM_STATE_FULLSCREEN", False); ++ Atom prop_state = XInternAtom(disp, "_NET_WM_STATE", False); ++ ++ memset(&ev, 0, sizeof(ev)); ++ ev.xclient.type = ClientMessage; ++ ev.xclient.message_type = prop_state; ++ ev.xclient.display = disp; ++ ev.xclient.window = ret->win; ++ ev.xclient.format = 32; ++ ev.xclient.data.l[0] = (ret->full_screen ? 1 : 0); ++ ev.xclient.data.l[1] = prop_fs; ++ ++ XChangeProperty(disp, ret->win, prop_state, XA_ATOM, 32, ++ PropModeReplace, &prop_fs, 1); ++ } + + XSetWMProtocols(disp, ret->win, &wmDeleteWindow, 1); + winwidget_update_title(ret);