unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363)
@ 2009-09-22 18:10 Ulrich Neumerkel
  2009-11-14 18:57 ` Jan Djärv
  2009-11-14 19:05 ` bug#4523: marked as done (23.1.50; Cannot set Motif Hints (Reopen of bug#4363)) Emacs bug Tracking System
  0 siblings, 2 replies; 3+ messages in thread
From: Ulrich Neumerkel @ 2009-09-22 18:10 UTC (permalink / raw)
  To: emacs-pretest-bug

--text follows this line--

There is no way to set Motif Hints like the nodecoration hint which is
needed to go fullscreen with the qvwm windowmanager.  I need this for
older IGEL-X-Terminals were qvwm is preinstalled.

Unfortunatly Emacs still needs "manual" customization going into
C-sources and guessing where those hints should be put.  That is not
everybody's turf.  I try to avoid that myself delaying upgrades by
years.  Last time I upgraded was 2002/2003.  Everytime the relevant
files change a bit so it takes time to adjust.  I wonder how other
people do that.

At least some "better defined" way as simply patching sources manually
would be nice.  Maybe there is no need to put Motif hints by default.
But it would be very helpful to avoid any customization that goes
beyond .emacs.el editing.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363)
  2009-09-22 18:10 bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363) Ulrich Neumerkel
@ 2009-11-14 18:57 ` Jan Djärv
  2009-11-14 19:05 ` bug#4523: marked as done (23.1.50; Cannot set Motif Hints (Reopen of bug#4363)) Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Djärv @ 2009-11-14 18:57 UTC (permalink / raw)
  To: Ulrich Neumerkel, 4523; +Cc: emacs-pretest-bug, 4523-done

Ulrich Neumerkel skrev:
> --text follows this line--
> 
> There is no way to set Motif Hints like the nodecoration hint which is
> needed to go fullscreen with the qvwm windowmanager.  I need this for
> older IGEL-X-Terminals were qvwm is preinstalled.
> 
> Unfortunatly Emacs still needs "manual" customization going into
> C-sources and guessing where those hints should be put.  That is not
> everybody's turf.  I try to avoid that myself delaying upgrades by
> years.  Last time I upgraded was 2002/2003.  Everytime the relevant
> files change a bit so it takes time to adjust.  I wonder how other
> people do that.
> 
> At least some "better defined" way as simply patching sources manually
> would be nice.  Maybe there is no need to put Motif hints by default.
> But it would be very helpful to avoid any customization that goes
> beyond .emacs.el editing.
>

Motif wm hits is just a property with 5 values. Just use x-change-window-property.

(defun make-special-frame (data)
   (let ((ff (make-frame '((visibility . nil)))))
     (progn
       (x-change-window-property "_MOTIF_WM_HINTS" data ff
                                 "_MOTIF_WM_HINTS" 32 t)
        (make-frame-visible ff))))

To make a frame without decoration:

(make-special-frame '(2 0 0 0 0))

The first value tells what to change (from /usr/include/Xm/MwmUtils.h):
#define MWM_HINTS_FUNCTIONS     (1L << 0)
#define MWM_HINTS_DECORATIONS   (1L << 1)
#define MWM_HINTS_INPUT_MODE    (1L << 2)
#define MWM_HINTS_STATUS        (1L << 3)

The third is the decorations:
#define MWM_DECOR_ALL           (1L << 0)
#define MWM_DECOR_BORDER        (1L << 1)
#define MWM_DECOR_RESIZEH       (1L << 2)
#define MWM_DECOR_TITLE         (1L << 3)
#define MWM_DECOR_MENU          (1L << 4)
#define MWM_DECOR_MINIMIZE      (1L << 5)
#define MWM_DECOR_MAXIMIZE      (1L << 6)

Note that most wm:s just check MWM_HINTS when the window is mapped, thats why 
the function creates it invisible at first.
If a frame is visible, you must (make-frame-invisble), 
(x-change-window-properties...) (make-frame-visible).

We are not putting in code for old deprecated stuff.  There are new and better 
ways than MOTIF WM HINTS nowdays.

	Jan D.










^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4523: marked as done (23.1.50; Cannot set Motif Hints (Reopen of bug#4363))
  2009-09-22 18:10 bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363) Ulrich Neumerkel
  2009-11-14 18:57 ` Jan Djärv
@ 2009-11-14 19:05 ` Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-11-14 19:05 UTC (permalink / raw)
  To: Jan Djärv

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Your message dated Sat, 14 Nov 2009 19:57:26 +0100
with message-id <4AFEFD96.4010207@swipnet.se>
and subject line Re: bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363)
has caused the Emacs bug report #4523,
regarding 23.1.50; Cannot set Motif Hints (Reopen of bug#4363)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4523: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4523
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 2732 bytes --]

From: Ulrich Neumerkel <ulrich@complang.tuwien.ac.at>
To: emacs-pretest-bug@gnu.org
Subject: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363)
Date: Tue, 22 Sep 2009 20:10:30 +0200
Message-ID: <E1Mq9os-0006Ae-T7@a4.complang.tuwien.ac.at>

--text follows this line--

There is no way to set Motif Hints like the nodecoration hint which is
needed to go fullscreen with the qvwm windowmanager.  I need this for
older IGEL-X-Terminals were qvwm is preinstalled.

Unfortunatly Emacs still needs "manual" customization going into
C-sources and guessing where those hints should be put.  That is not
everybody's turf.  I try to avoid that myself delaying upgrades by
years.  Last time I upgraded was 2002/2003.  Everytime the relevant
files change a bit so it takes time to adjust.  I wonder how other
people do that.

At least some "better defined" way as simply patching sources manually
would be nice.  Maybe there is no need to put Motif hints by default.
But it would be very helpful to avoid any customization that goes
beyond .emacs.el editing.


[-- Attachment #3: Type: message/rfc822, Size: 4175 bytes --]

From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Ulrich Neumerkel <ulrich@complang.tuwien.ac.at>, 4523@emacsbugs.donarmstrong.com
Cc: emacs-pretest-bug@gnu.org, 4523-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363)
Date: Sat, 14 Nov 2009 19:57:26 +0100
Message-ID: <4AFEFD96.4010207@swipnet.se>

Ulrich Neumerkel skrev:
> --text follows this line--
> 
> There is no way to set Motif Hints like the nodecoration hint which is
> needed to go fullscreen with the qvwm windowmanager.  I need this for
> older IGEL-X-Terminals were qvwm is preinstalled.
> 
> Unfortunatly Emacs still needs "manual" customization going into
> C-sources and guessing where those hints should be put.  That is not
> everybody's turf.  I try to avoid that myself delaying upgrades by
> years.  Last time I upgraded was 2002/2003.  Everytime the relevant
> files change a bit so it takes time to adjust.  I wonder how other
> people do that.
> 
> At least some "better defined" way as simply patching sources manually
> would be nice.  Maybe there is no need to put Motif hints by default.
> But it would be very helpful to avoid any customization that goes
> beyond .emacs.el editing.
>

Motif wm hits is just a property with 5 values. Just use x-change-window-property.

(defun make-special-frame (data)
   (let ((ff (make-frame '((visibility . nil)))))
     (progn
       (x-change-window-property "_MOTIF_WM_HINTS" data ff
                                 "_MOTIF_WM_HINTS" 32 t)
        (make-frame-visible ff))))

To make a frame without decoration:

(make-special-frame '(2 0 0 0 0))

The first value tells what to change (from /usr/include/Xm/MwmUtils.h):
#define MWM_HINTS_FUNCTIONS     (1L << 0)
#define MWM_HINTS_DECORATIONS   (1L << 1)
#define MWM_HINTS_INPUT_MODE    (1L << 2)
#define MWM_HINTS_STATUS        (1L << 3)

The third is the decorations:
#define MWM_DECOR_ALL           (1L << 0)
#define MWM_DECOR_BORDER        (1L << 1)
#define MWM_DECOR_RESIZEH       (1L << 2)
#define MWM_DECOR_TITLE         (1L << 3)
#define MWM_DECOR_MENU          (1L << 4)
#define MWM_DECOR_MINIMIZE      (1L << 5)
#define MWM_DECOR_MAXIMIZE      (1L << 6)

Note that most wm:s just check MWM_HINTS when the window is mapped, thats why 
the function creates it invisible at first.
If a frame is visible, you must (make-frame-invisble), 
(x-change-window-properties...) (make-frame-visible).

We are not putting in code for old deprecated stuff.  There are new and better 
ways than MOTIF WM HINTS nowdays.

	Jan D.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-14 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22 18:10 bug#4523: 23.1.50; Cannot set Motif Hints (Reopen of bug#4363) Ulrich Neumerkel
2009-11-14 18:57 ` Jan Djärv
2009-11-14 19:05 ` bug#4523: marked as done (23.1.50; Cannot set Motif Hints (Reopen of bug#4363)) Emacs bug Tracking System

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).