twm issueshttps://gitlab.freedesktop.org/xorg/app/twm/-/issues2020-06-21T17:25:03Zhttps://gitlab.freedesktop.org/xorg/app/twm/-/issues/3twm dynamic configuration files2020-06-21T17:25:03ZBugzilla Migration Usertwm dynamic configuration files## Submitted by Preston Crow
Assigned to **Xorg Project Team**
**[Link to original bug (#71557)](https://bugs.freedesktop.org/show_bug.cgi?id=71557)**
## Description
Created attachment 89117
twm open .twmrc with popen() if executa...## Submitted by Preston Crow
Assigned to **Xorg Project Team**
**[Link to original bug (#71557)](https://bugs.freedesktop.org/show_bug.cgi?id=71557)**
## Description
Created attachment 89117
twm open .twmrc with popen() if executable
I've long wanted to use the same .twmrc on all the systems I use, but have been thwarted by the lack of any way to adjust it automatically for the needs of each particular system. I thought about adding some sort of include mechanism, passing the file through the C preprocessor, or something else, but I realized that the simplest solution is to use a script that generates the file. The simplest way to handle such a script is to have twm open the file with popen() to run it and parse the output instead of with fopen(). The attached patch does just this if the file is executable.
I'm sure this breaks on non-Unix file systems where there is no executable permission bit, but I've found the patch to be very useful to me, so this seemed like a good place to share it, and perhaps someone has a good general solution for those file systems.
**Attachment 89117**, "twm open .twmrc with popen() if executable":
[twm_popen.patch](/uploads/5350ec9d020e632c593920d9103125ca/twm_popen.patch)https://gitlab.freedesktop.org/xorg/app/twm/-/issues/1twm random window placement handles large windows poorly2020-06-16T00:11:35ZBugzilla Migration Usertwm random window placement handles large windows poorly## Submitted by Preston Crow
Assigned to **Xorg Project Team**
**[Link to original bug (#71554)](https://bugs.freedesktop.org/show_bug.cgi?id=71554)**
## Description
Created attachment 89114
Patch for improved window placement
Wh...## Submitted by Preston Crow
Assigned to **Xorg Project Team**
**[Link to original bug (#71554)](https://bugs.freedesktop.org/show_bug.cgi?id=71554)**
## Description
Created attachment 89114
Patch for improved window placement
When twm is told to use random placement for new windows, and a window will appear off the edge of the screen with the current position, it is moved back to 50 pixels from the top or left of the screen. This works fine, except for windows that will still go off the edge of the screen with that 50 pixels.
With the attached patch, the placement is between 0 and 50 pixels as needed to avoid pushing the window off the screen. This patch works particularly well with applications that open windows that are the same dimensions as the screen for full-screen mode without specifying the position.
**Attachment 89114**, "Patch for improved window placement":
[twm_large_window.patch](/uploads/27baf535c96b07392031b2b39a48d927/twm_large_window.patch)Thomas E. DickeyThomas E. Dickeyhttps://gitlab.freedesktop.org/xorg/app/twm/-/issues/7[Regression] twm does not function properly2019-08-02T22:24:21ZBugzilla Migration User[Regression] twm does not function properly## Submitted by geo..@..il.com
Assigned to **Xorg Project Team**
**[Link to original bug (#105919)](https://bugs.freedesktop.org/show_bug.cgi?id=105919)**
## Description
Under Arch linux, upgrading from xorg-twm-1.0.9 to xorg-twm-...## Submitted by geo..@..il.com
Assigned to **Xorg Project Team**
**[Link to original bug (#105919)](https://bugs.freedesktop.org/show_bug.cgi?id=105919)**
## Description
Under Arch linux, upgrading from xorg-twm-1.0.9 to xorg-twm-1.0.10 did the following:
- twm windows title bars are not visible
– windows cannot be moved/set onto foreground/background
- all menus from firefox (v59), including contextual menus, disappear as soon as clicked making them unusable
It is very similar to starting X with twm uninstalled. However I could observe that the twm process was running.
I noticed that replacing the /usr/bin/twm binary with the previous version fixed the problem.
I have no ~/.xinitrc, nor ~/.twmrc.Thomas E. DickeyThomas E. Dickeyhttps://gitlab.freedesktop.org/xorg/app/twm/-/issues/2twm doesn't handle RandR screen size changes2019-07-17T00:46:19ZBugzilla Migration Usertwm doesn't handle RandR screen size changes## Submitted by Preston Crow
Assigned to **Xorg Project Team**
**[Link to original bug (#71555)](https://bugs.freedesktop.org/show_bug.cgi?id=71555)**
## Description
Created attachment 89115
Patch for twm to adjust screen size dyn...## Submitted by Preston Crow
Assigned to **Xorg Project Team**
**[Link to original bug (#71555)](https://bugs.freedesktop.org/show_bug.cgi?id=71555)**
## Description
Created attachment 89115
Patch for twm to adjust screen size dynamically
I use twm on a laptop, and I set it up to use the Xrandr extension to handle switching displays when I attach or remove an external monitor. Unfortunately, this has always required restarting twm for it to recognize the new screen dimensions.
I wrote this patch so that twm will receive the notification of the change and adjust it's notion of the screen size.
**Attachment 89115**, "Patch for twm to adjust screen size dynamically":
[twm_randr.patch](/uploads/6e9e3ec18318a97259bc46d193b9f188/twm_randr.patch)Thomas E. DickeyThomas E. Dickeyhttps://gitlab.freedesktop.org/xorg/app/twm/-/issues/4twm makes windows too wide2019-07-17T00:43:42ZBugzilla Migration Usertwm makes windows too wide## Submitted by Jes Bodi Klinke
Assigned to **Xorg Project Team**
**[Link to original bug (#79598)](https://bugs.freedesktop.org/show_bug.cgi?id=79598)**
## Description
Created attachment 100364
Patch to correct the behavior
When...## Submitted by Jes Bodi Klinke
Assigned to **Xorg Project Team**
**[Link to original bug (#79598)](https://bugs.freedesktop.org/show_bug.cgi?id=79598)**
## Description
Created attachment 100364
Patch to correct the behavior
When placing windows using right-click (to make them extend all the way to the bottom of the screen), twm will make the windows wider than their preferred width by twice the frame width, (unless the window is so far to the right, that size is clamped to fit on the screen).
This is especially noticeable when placing a console, Emacs, or some other window for which you expect exactly 80 character width, but get 81 characters, if you frame width is at least half a character.
I have taken the liberty of providing a patch
**Attachment 100364**, "Patch to correct the behavior":
[twm_size.patch](/uploads/16ea177ee75fd204f3249e1c11c4c6d2/twm_size.patch)Thomas E. DickeyThomas E. Dickey