From: Pat Thoyts <patthoyts@users.sourceforge.net>
To: emacs-devel@gnu.org
Subject: [PATCH] Set the extended window manager hint for tooltip windows.
Date: Sun, 13 Dec 2009 13:02:48 +0000 [thread overview]
Message-ID: <87tyvvjabr.fsf@users.sourceforge.net> (raw)
The extended window manager hints specification provides a window type
hint that indicates the intended use of a window and allows the window
manager to better manage the window decoration and animation. This
patch sets the EWMH type for the emacs tooltip window.
The effect can be seen when using a window manager like compiz that
applies an animation per window type when a different animation is set
for closure of normal and tooltip windows. Using emacs with this patch
applied ensures that tooltips from emacs act just like tooltips from
any other application on the desktop.
2009-12-12 Pat Thoyts <patthoyts@users.sourceforge.net>
* src/xfns.c: Set the extended window manager hint for
tooltip windows.
diff --git a/src/xfns.c b/src/xfns.c
index 27d0b02..0143323 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4849,6 +4849,17 @@ x_create_tip_frame (dpyinfo, parms, text)
f->border_width,
CopyFromParent, InputOutput, CopyFromParent,
mask, &attrs);
+
+ {
+ Atom keyAtom, typeAtom;
+ keyAtom = XInternAtom (FRAME_X_DISPLAY (f),
+ "_NET_WM_WINDOW_TYPE", False);
+ typeAtom = XInternAtom (FRAME_X_DISPLAY (f),
+ "_NET_WM_WINDOW_TYPE_TOOLTIP", False);
+ XChangeProperty (FRAME_X_DISPLAY (f), tip_window, keyAtom,
+ XA_ATOM, 32, PropModeReplace,
+ (unsigned char *)&typeAtom, 1);
+ }
UNBLOCK_INPUT;
}
next reply other threads:[~2009-12-13 13:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-13 13:02 Pat Thoyts [this message]
2009-12-13 15:40 ` [PATCH] Set the extended window manager hint for tooltip windows Jan Djärv
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=87tyvvjabr.fsf@users.sourceforge.net \
--to=patthoyts@users.sourceforge.net \
--cc=emacs-devel@gnu.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.