From: David De La Harpe Golden <david@harpegolden.net>
To: Thien-Thi Nguyen <ttn@gnuvola.org>
Cc: emacs-devel@gnu.org
Subject: Re: is there a hook run when display geometry changes?
Date: Fri, 12 Aug 2011 20:40:41 +0100 [thread overview]
Message-ID: <4E4581B9.3020002@harpegolden.net> (raw)
In-Reply-To: <871uwqigy1.fsf@ambire.localdomain>
On 12/08/11 20:10, Thien-Thi Nguyen wrote:
> () David De La Harpe Golden<david@harpegolden.net>
> () 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.
next prev parent reply other threads:[~2011-08-12 19:40 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 17:51 is there a hook run when display geometry changes? Edward O'Connor
2011-08-12 18:03 ` Eli Zaretskii
2011-08-12 18:15 ` Edward O'Connor
2011-08-12 18:28 ` Eli Zaretskii
2011-08-12 18:59 ` David De La Harpe Golden
2011-08-12 19:10 ` Thien-Thi Nguyen
2011-08-12 19:40 ` David De La Harpe Golden [this message]
2011-08-12 20:04 ` Thien-Thi Nguyen
2011-08-12 21:18 ` David De La Harpe Golden
2011-08-12 21:47 ` Thien-Thi Nguyen
2011-08-13 5:47 ` David De La Harpe Golden
2011-08-12 19:37 ` Edward O'Connor
2011-08-12 20:20 ` Eli Zaretskii
2011-08-15 21:48 ` Edward O'Connor
2011-08-16 6:48 ` Eli Zaretskii
2011-08-25 5:21 ` David De La Harpe Golden
2011-08-16 18:54 ` martin rudalics
2011-08-16 20:34 ` Stefan Monnier
2011-08-12 19:01 ` David De La Harpe Golden
2011-08-12 19:09 ` Antoine Levitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E4581B9.3020002@harpegolden.net \
--to=david@harpegolden.net \
--cc=emacs-devel@gnu.org \
--cc=ttn@gnuvola.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.