Welcome to the CHICKEN Scheme pasting service

awful-picman, firefox and window managers pasted by mario-goulart on Tue Nov 3 17:12:17 2015

- Requirements: chicken, libimlib2-dev, libexif-dev

$ git clone https://github.com/mario-goulart/awful-picman.git
$ cd awful-picman
$ git checkout spock
$ chicken-install
$ cd <directory with pictures>
$ awful-picman --init

- Point your browser to http://localhost:8080/folders

- On the top-right corner Click "Batch edit" -> "Edit selected thumbnails template"

- Select an option from the first select input of "Date"

Work around the awful-picman isue on firefox on sawfish added by mario-goulart on Wed Nov 4 01:08:36 2015

The issue seems to be the same as reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1146297

Basically, some window managers (e.g., sawfish, twm) don't set windows' _NET_FRAME_EXTENTS, and firefox relies on this property to determine the widget position (?).

A gross workaround for sawfish would be:

(define (set-net-frame-extents! w)
  (let* ((w-dim (window-dimensions w))
         (f-dim (window-frame-dimensions w))
         (h-border (round (/ (- (car f-dim) (car w-dim)) 2)))
         (v-border (round (/ (- (cdr f-dim) (cdr w-dim)) 2))))
    (set-x-property w
                    '_NET_FRAME_EXTENTS
                    (vector h-border h-border v-border v-border)
                    'CARDINAL 32)))


(assuming the window frame is horizontally symmetric).

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which version of Scheme does C4 implement?
Visually impaired? Let me spell it for you (wav file) download WAV