From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Set the extended window manager hint for tooltip windows. Date: Sun, 13 Dec 2009 16:40:14 +0100 Message-ID: <4B250ADE.6090500@swipnet.se> References: <87tyvvjabr.fsf@users.sourceforge.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260718883 27331 80.91.229.12 (13 Dec 2009 15:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Dec 2009 15:41:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Pat Thoyts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 13 16:41:16 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NJqZO-0005sm-95 for ged-emacs-devel@m.gmane.org; Sun, 13 Dec 2009 16:41:14 +0100 Original-Received: from localhost ([127.0.0.1]:54657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJqZO-0004As-7a for ged-emacs-devel@m.gmane.org; Sun, 13 Dec 2009 10:41:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJqYY-0003x0-G9 for emacs-devel@gnu.org; Sun, 13 Dec 2009 10:40:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJqYT-0003tI-A0 for emacs-devel@gnu.org; Sun, 13 Dec 2009 10:40:21 -0500 Original-Received: from [199.232.76.173] (port=57195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJqYS-0003t3-Is for emacs-devel@gnu.org; Sun, 13 Dec 2009 10:40:16 -0500 Original-Received: from proxy3.bredband.net ([195.54.101.73]:47096) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJqYR-0005Ge-Uj for emacs-devel@gnu.org; Sun, 13 Dec 2009 10:40:16 -0500 Original-Received: from ipb2.telenor.se (195.54.127.165) by proxy3.bredband.net (7.3.140.3) id 4AD3E1BA019C1FAF for emacs-devel@gnu.org; Sun, 13 Dec 2009 16:40:15 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsFhAOSZJEtV4S1uPGdsb2JhbACBSocgj3yCRwEBAQE3tXSEKwQ X-IronPort-AV: E=Sophos;i="4.47,391,1257116400"; d="scan'208";a="15189975" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 13 Dec 2009 16:40:14 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 30AB07FA07B; Sun, 13 Dec 2009 16:40:14 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <87tyvvjabr.fsf@users.sourceforge.net> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118585 Archived-At: Applied in a slightly different form. Thanks, Jan D. Pat Thoyts skrev: > 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 > > * 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; > } > >