From: "arthur.miller.no1" <arthur.miller.no1@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 25408@debbugs.gnu.org, "Clément Pit--Claudel" <clement.pit@gmail.com>
Subject: bug#25408: SV: Re: bug#25408: Remove Decorations Around Emacs Frame (Windows OS)
Date: Wed, 11 Jan 2017 15:59:59 +0100 [thread overview]
Message-ID: <yirnl1pscwwoixbp0t1qur95.1484146274497@email.android.com> (raw)
In-Reply-To: <CAHk_L7phQZq6oH1gnqrzkOuiWfDErOpGkFDwiAXintfpNP6WRg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3521 bytes --]
Aha thanks for clarifications. I didn't dive enough into src so I missed those other funcrions called before a frame is made.
I had from beginnig nil and t as values for my decor var, but I realized I could use 1 and 0 too so I did :). It works fine to switch it off/on manually.
I am away from home untill friday so it will have to wait before I can play more with emacs. Also if you going to merge your code into master on git soon, then I will probably abandon my changes and use yours :).
Skickat från min Samsung-enhet
-------- Originalmeddelande --------
Från: martin rudalics <rudalics@gmx.at>
Datum: 2017-01-11 14:55 (GMT+01:00)
Till: Arthur Miller <arthur.miller.no1@gmail.com>
Kopia: Clément Pit--Claudel <clement.pit@gmail.com>, Eli Zaretskii <eliz@gnu.org>, 25408@debbugs.gnu.org
Rubrik: Re: bug#25408: Remove Decorations Around Emacs Frame (Windows OS)
> (add-to-list 'default-frame-alist '(undecorated . 0))
> (setq default-frame-alist '((undecorated . 0)))
> (setq initial-frame-alist '((undecorated . 0)))
>
> But that does not give any effect at all.
"0" is a quite misleading value ;-) See below.
But I think I understand what happens. In fact, I haven't told you the
whole story: In Fx_create_frame I do additionally
tem = x_get_arg (dpyinfo, parameters, Qundecorated, NULL, NULL,
RES_TYPE_BOOLEAN);
FRAME_UNDECORATED (f) = !NILP (tem) && !EQ (tem, Qunbound);
store_frame_param (f, Qundecorated, FRAME_UNDECORATED (f) ? Qt : Qnil);
somewhere _before_ w32_window (f, window_prompting, minibuffer_only)
gets called. And in w32_createwindow I have
else if (FRAME_UNDECORATED (f))
{
f->output_data.w32->dwStyle = ~WS_THICKFRAME & ~WS_CAPTION;
/* If we want a thin border, specify it here. */
if (NUMBERP (border_width) && (XINT (border_width) > 0))
f->output_data.w32->dwStyle =
f->output_data.w32->dwStyle | WS_BORDER;
}
before any other f->output_data.w32->dwStyle assignment and certainly
before the
FRAME_W32_WINDOW (f) = hwnd
= CreateWindow (EMACS_CLASS,
f->namebuf,
f->output_data.w32->dwStyle,
...
call. Just make sure that any time you set f->output_data.w32->dwStyle
you don't overrule a previous assignment. (I haven't sent you a patch
because I have completely redesigned the assignments to this component
and it probably would distract more than provide any help.) This way
(add-to-list 'default-frame-alist '(undecorated . t))
(setq default-frame-alist '((undecorated . t)))
(setq initial-frame-alist '((undecorated . t)))
should all work.
BTW, you can also do
f->output_data.w32->dwStyle = WS_POPUP;
because the only thing Windows forbids in this context is to set
WS_POPUP for an existing overlapped window (IIRC).
> (defvar decor 0)
> (defun toggle-frame-decor ()
> (interactive)
> (progn
> (modify-frame-parameters (selected-frame) `((undecorated . ,'decor)))
You likely mean
(modify-frame-parameters (selected-frame) `((undecorated . ,decor)))
here. And probably you want to do the following calculation
> (if (= decor 0)
> (setq decor 1)
> (setq decor 0))))
before calling ‘modify-frame-parameters’ so the latter will see the new
value. But even this won't work because you want to toggle beween nil
and non-nil so
(devfar decor nil)
and
(setq decor (not decor))
are more appropriate.
martin
[-- Attachment #2: Type: text/html, Size: 4623 bytes --]
prev parent reply other threads:[~2017-01-11 14:59 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 22:20 bug#25408: Remove Decorations Around Emacs Frame (Windows OS) Arthur Miller
2017-01-10 8:23 ` martin rudalics
2017-01-10 17:07 ` Eli Zaretskii
2017-01-10 18:07 ` martin rudalics
2017-01-10 18:27 ` Eli Zaretskii
2017-01-10 20:39 ` Clément Pit--Claudel
2017-01-11 7:08 ` Arthur Miller
2017-01-11 7:24 ` Arthur Miller
2017-01-11 7:48 ` Arthur Miller
2017-01-11 7:50 ` Arthur Miller
2017-01-11 8:15 ` Arthur Miller
2017-01-11 8:39 ` martin rudalics
2017-01-11 9:17 ` Arthur Miller
2017-01-11 10:20 ` Arthur Miller
2017-01-11 13:55 ` martin rudalics
2017-02-07 5:28 ` Clément Pit--Claudel
2017-02-07 6:53 ` martin rudalics
2017-02-07 13:05 ` Clément Pit--Claudel
2017-02-11 14:27 ` martin rudalics
2017-02-11 21:02 ` Clément Pit--Claudel
2017-02-11 21:10 ` Clément Pit--Claudel
2017-02-12 11:13 ` martin rudalics
2017-02-15 19:49 ` Arthur Miller
2017-02-16 8:04 ` martin rudalics
2017-02-16 13:22 ` Arthur Miller
2017-02-16 14:06 ` Arthur Miller
2017-02-17 7:03 ` martin rudalics
2017-02-17 7:03 ` martin rudalics
2017-04-12 9:27 ` martin rudalics
2017-05-06 0:06 ` Clément Pit-Claudel
2017-05-06 7:13 ` Eli Zaretskii
2017-05-06 13:26 ` Clément Pit-Claudel
2017-05-06 7:40 ` martin rudalics
2017-05-06 9:41 ` martin rudalics
2017-05-06 13:28 ` Clément Pit-Claudel
2017-05-06 14:20 ` Eli Zaretskii
2017-05-06 21:01 ` Clément Pit-Claudel
2017-05-07 2:30 ` Eli Zaretskii
2017-05-07 8:41 ` martin rudalics
2017-05-07 8:40 ` martin rudalics
2017-05-07 17:19 ` Eli Zaretskii
2017-05-07 18:07 ` martin rudalics
2017-05-07 18:33 ` Eli Zaretskii
2017-05-08 6:48 ` martin rudalics
2017-05-08 14:41 ` Eli Zaretskii
2017-06-25 11:02 ` martin rudalics
2017-06-25 16:23 ` Clément Pit-Claudel
2017-04-12 17:38 ` Alan Third
2017-04-12 19:13 ` martin rudalics
2017-04-12 19:51 ` Alan Third
2017-04-13 7:10 ` martin rudalics
2017-04-13 10:30 ` Alan Third
2017-04-13 11:56 ` martin rudalics
2017-04-15 16:29 ` Alan Third
2017-04-15 19:39 ` martin rudalics
2017-04-17 14:56 ` bug#25408: Remove Decorations Around Emacs Frame (NS port) Alan Third
2017-04-17 15:43 ` martin rudalics
2017-04-17 16:21 ` Alan Third
2017-04-17 17:20 ` martin rudalics
2017-04-17 18:55 ` Alan Third
2017-04-19 7:26 ` martin rudalics
2017-04-19 14:33 ` Alan Third
2017-04-19 16:01 ` martin rudalics
2017-04-19 17:04 ` Alan Third
2017-04-19 18:07 ` martin rudalics
2017-06-10 15:38 ` Alan Third
2017-06-11 8:10 ` martin rudalics
2017-06-11 16:35 ` Alan Third
2017-06-12 6:09 ` martin rudalics
2017-06-12 17:59 ` Alan Third
2017-06-13 7:24 ` martin rudalics
2017-06-22 9:10 ` martin rudalics
2017-06-25 14:22 ` Alan Third
2017-06-25 15:58 ` martin rudalics
2017-07-15 21:27 ` Alan Third
2017-07-16 8:28 ` martin rudalics
2017-04-19 11:24 ` Anders Lindgren
2017-04-19 12:50 ` martin rudalics
2017-04-19 13:51 ` Alan Third
2017-01-11 8:38 ` bug#25408: Remove Decorations Around Emacs Frame (Windows OS) martin rudalics
2017-01-11 16:39 ` Richard Stallman
2017-01-10 19:36 ` Richard Stallman
2017-01-11 13:50 ` bug#25408: SV: " arthur.miller.no1
2017-01-11 13:57 ` martin rudalics
2017-01-11 14:59 ` arthur.miller.no1 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yirnl1pscwwoixbp0t1qur95.1484146274497@email.android.com \
--to=arthur.miller.no1@gmail.com \
--cc=25408@debbugs.gnu.org \
--cc=clement.pit@gmail.com \
--cc=rudalics@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).