|
From: | David De La Harpe Golden |
Subject: | Re: is there a hook run when display geometry changes? |
Date: | Fri, 12 Aug 2011 20:40:41 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 |
On 12/08/11 20:10, Thien-Thi Nguyen wrote:
() David De La Harpe Golden<address@hidden> () Fri, 12 Aug 2011 19:59:34 +0100 e.g. on X11, you'd want a hook run when emacs [selects for] and gets an xrandr XRRScreenChangeNotify event, I think. Could be a separate display-configuration-change-hook or maybe another trigger of window-configuration-change hook. Perhaps there's a way to request such notifications from dbus.
That would seem rather unnecessarily convoluted. libxrandr exists and has the function for it. man 3 xrandr
A XRRScreenChangeNotifyEvent is sent to a client that has requested notification whenever the screen configuration is changed. A client can perform this request by calling XRRSelectInput, passing the display, the root window, and the RRScreenChangeNotifyMask mask.
[Prev in Thread] | Current Thread | [Next in Thread] |