From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.bugs Subject: bug#19413: 24.4; (desktop-save-mode 1) save frame as page and desktop sticky (_NET_WM_STATE_STICKY) when close Emacs shaded, (setq desktop-restore-frames nil) fix issue. Date: Fri, 19 Dec 2014 23:46:34 +0200 Message-ID: <87h9wrqpmt.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419025645 15318 80.91.229.3 (19 Dec 2014 21:47:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2014 21:47:25 +0000 (UTC) To: 19413@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 19 22:47:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y25OG-00075J-Q9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 22:47:17 +0100 Original-Received: from localhost ([::1]:60651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25OG-00048X-6I for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 16:47:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25O7-00047U-Q8 for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:47:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y25O2-0006oq-E6 for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:47:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25O2-0006oe-Be for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y25O2-00052U-36 for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oleksandr Gavenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Dec 2014 21:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141902562019358 (code B ref -1); Fri, 19 Dec 2014 21:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Dec 2014 21:47:00 +0000 Original-Received: from localhost ([127.0.0.1]:51899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y25Nz-000529-DA for submit@debbugs.gnu.org; Fri, 19 Dec 2014 16:47:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44252) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y25Nv-00051w-MU for submit@debbugs.gnu.org; Fri, 19 Dec 2014 16:46:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y25Nq-0006kU-0z for submit@debbugs.gnu.org; Fri, 19 Dec 2014 16:46:55 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25Np-0006kQ-Uv for submit@debbugs.gnu.org; Fri, 19 Dec 2014 16:46:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25Nk-0003ul-Gb for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:46:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y25Nf-0006gF-2Z for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:46:44 -0500 Original-Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:62814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y25Ne-0006fH-Kh for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2014 16:46:38 -0500 Original-Received: by mail-la0-f53.google.com with SMTP id gm9so1542120lab.26 for ; Fri, 19 Dec 2014 13:46:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=dRqYiEeHa8CzacsMjj1XQwl8mU1GH1KGxVNagcvpQBE=; b=RLLVyNyKKCeYNh98FndkhWIn6P+KWN/Ov2DwzlW8MwPNM/XrlQuqqDct+Mi4E3I+T3 6OTXgTiIIJ5aU62uVDpnuJKHGrz0NmhjxYnXk2EIoIlavV80iSIUopwtHY5BhiTMXbCK 6VM44ysMoPYnbsOUQGyAENZA2I0vOxFrJNCT4gVOCuu+GBpu+Z0Yr6IUYGDBZAfGlooA I0Z8llcZTyonsIazulFsVoqqyb+whR7ATOYwaFLNwB4WzNSC5VSNKbKjSgg9e9cV70Qh wXxKAJBPxEYVjriQCCZDd+o0ZyIKhJ9wxZosZ3Uudwcw1ntJ5419+hgqCeEmZQuFq1u9 7o7Q== X-Received: by 10.152.28.71 with SMTP id z7mr10005357lag.60.1419025597106; Fri, 19 Dec 2014 13:46:37 -0800 (PST) Original-Received: from desktop.home.int ([46.211.79.104]) by mx.google.com with ESMTPSA id zo3sm3048858lbb.10.2014.12.19.13.46.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Dec 2014 13:46:36 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97580 Archived-At: I upgrade Emacs on Debian to 24.4.1. New changes for desktop-save-mode: *** Desktop now saves and restores the frame/window configuration. To disable this, set `desktop-restore-frames' to nil. I don't set desktop-restore-frames previously. When I use Fvwm `WindowShade` command on Emacs window it hided, only titleb= ar shown. If I close Emacs in shaded state and run again it gain sticky attribute (so= it shown on every page/desktop, follow my page/desktop switching). So with "emacs -q" and only "(desktop-save-mode 1)" this behavior reproduce= d. (setq desktop-restore-frames nil) fix issue. Here ~/.emacs.desktop which hold data that lead to sticky attribute: (setq desktop-saved-frameset [frameset 1 (21652 39439 387790 976000) (deskt= op . "206") "user@desktop.home.int" nil nil ((((font-backend xft x) (font .= "-Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1") (font-param= eter . "-misc-fixed-medium-r-normal-*-14-*-*-*-c-*-iso10646-1") (border-wid= th . 0) (internal-border-width . 0) (right-divider-width . 0) (bottom-divid= er-width . 0) (vertical-scroll-bars . right) (foreground-color . "black") (= background-color . "white") (mouse-color . "black") (border-color . "black"= ) (screen-gamma) (line-spacing) (left-fringe . 10) (right-fringe . 11) (scr= oll-bar-foreground) (scroll-bar-background . "grey75") (menu-bar-lines . 1)= (tool-bar-lines . 1) (title) (wait-for-wm . t) (fullscreen) (tool-bar-posi= tion . top) (icon-type . t) (auto-raise) (auto-lower) (cursor-type . box) (= scroll-bar-width . 16) (alpha) (horizontal-scroll-bars . t) (display-type .= color) (background-mode . light) (cursor-color . "black") (environment) (f= rameset--id . "0B83-6D5C-17FD-9D99") (frameset--mini t . t) (modeline . t) = (minibuffer . t) (unsplittable) (icon-name) (visibility . t) (display . ":0= ") (explicit-name) (sticky) (height . 35) (width . 80) (left . 0) (top . 0)= ) ((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ign= ore . 8) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 56)= (min-pixel-width . 70) (min-pixel-height-ignore . 28) (min-pixel-width-ign= ore . 56) (min-pixel-height-safe . 14) (min-pixel-width-safe . 14)) leaf (p= ixel-width . 597) (pixel-height . 476) (total-width . 85) (total-height . 3= 4) (normal-height . 1.0) (normal-width . 1.0) (buffer ".emacs-my" (selected= . t) (hscroll . 0) (fringes 10 11 nil) (margins nil) (scroll-bars 16 3 t n= il) (vscroll . 0) (dedicated) (point . 24) (start . 1))))]) Here X window properties that is on newly running sticky Emacs: $ xprop -id 0x200001b _NET_WM_STATE(ATOM) =3D _NET_WM_STATE_STICKY _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) =3D 0x6c, 0x0, 0x5, = 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 XdndAware(ATOM) =3D BITMAP WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _WIN_AREA(CARDINAL) =3D 0, 0 _WIN_WORKSPACE(CARDINAL) =3D 1 _WIN_LAYER(CARDINAL) =3D 4 _WIN_STATE(CARDINAL) =3D 1 _NET_FRAME_EXTENTS(CARDINAL) =3D 6, 6, 22, 6 _KDE_NET_WM_FRAME_STRUT(CARDINAL) =3D 6, 6, 22, 6 _NET_WM_ALLOWED_ACTIONS(ATOM) =3D _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_= ACTION_CLOSE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET= _WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_= WM_ACTION_SHADE, _NET_WM_ACTION_STICK _NET_WM_DESKTOP(CARDINAL) =3D 4294967295 _NET_WM_ICON_VISIBLE_NAME(UTF8_STRING) =3D "emacs@desktop.home.int" _NET_WM_VISIBLE_NAME(UTF8_STRING) =3D "emacs@desktop.home.int =C2=ABEmacs= :emacs=C2=BB" WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. bitmap id # to use for icon: 0x2000293 bitmap id # of mask for icon: 0x2000299 window id # of group leader: 0x2000001 _NET_WM_OPAQUE_REGION(CARDINAL) =3D 7, 0, 1892, 7, 0, 7, 1906, 1153 _NET_WM_WINDOW_TYPE(ATOM) =3D _NET_WM_WINDOW_TYPE_NORMAL _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) =3D 33554460, 33554461 _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x200001b WM_CLIENT_LEADER(WINDOW): window id # 0x2000001 _NET_WM_PID(CARDINAL) =3D 13282 WM_LOCALE_NAME(STRING) =3D "en_US.UTF-8" WM_CLIENT_MACHINE(STRING) =3D "desktop" WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified minimum size: 51 by 96 program specified resize increment: 7 by 14 program specified base size: 44 by 82 window gravity: NorthWest WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_P= ING, _NET_WM_SYNC_REQUEST WM_CLASS(STRING) =3D "emacs", "Emacs" WM_ICON_NAME(STRING) =3D "emacs@desktop.home.int" _NET_WM_ICON_NAME(UTF8_STRING) =3D "emacs@desktop.home.int" WM_NAME(STRING) =3D "emacs@desktop.home.int" _NET_WM_NAME(UTF8_STRING) =3D "emacs@desktop.home.int" In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.3) of 2014-10-25 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11601000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/va= r/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/= info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= .4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-li= sp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/= info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= .4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-li= sp:/usr/share/emacs/site-lisp --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS= =3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-z,relro' --=20 Best regards!