LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-28-2021, 08:04 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
slackware 64 current: fvwm window buttons look different


I had been running a snapshot of slackware 64 current from August. On Sunday or Saturday I performed a fresh install of slackware 64 current (referred to from here on as "January).

The window buttons in Fvwm look different between January and August.

screenshot of January Fvwm, note the xmag views

Near as I can tell, something about the shadow and/or highlight lines on the buttons are misaligned by a pixel?

The Fvwm config I used is the same.

Oddly enough, it turns out the version of Fvwm is the same. The only difference is (a) the compiler & lib toolchain and (b) Patrick's Fvwm slackbuild for January has a build of 3 while the August one has a build of 2. I do not have the source from August so cannot compare to ascertain the difference.

Is this happening to anyone else's install?

Thank you.
 
Old 01-28-2021, 10:46 AM   #2
ThomasAdam
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 46
Hi,

Is this fvwm3 or fvwm2? I haven't changed the rendering of borders in either -- but I would be keen of you could repeat a few screenshots showing how it used to work, versus how it's broken.

Interestingly though, I wonder if I too am seeing the same thing (this is on Debian though):

Here's a screenshot

Kindly,
Thomas

Last edited by ThomasAdam; 01-28-2021 at 10:51 AM. Reason: Added screenshot
 
Old 01-28-2021, 02:17 PM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
fvwm 2.Specifically, version 2.6.9. Both August and January installs of Slackare are using the same version of Fvwm (though a build of "2" is assigned to August and "3" assigned to January).

screenshot as it is in August Slackware: https://blockhead.neocities.org/picc..._slackware.png


p.s. Off topic, but your screenshot is interesting in that it shows each of the four sides of the window a different color. I did not realize that was possible. Interesting!
 
Old 01-28-2021, 03:04 PM   #4
ThomasAdam
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 46
Quote:
Originally Posted by jr_bob_dobbs View Post
fvwm 2.Specifically, version 2.6.9. Both August and January installs of Slackare are using the same version of Fvwm (though a build of "2" is assigned to August and "3" assigned to January).

screenshot as it is in August Slackware: https://blockhead.neocities.org/picc..._slackware.png
It does seem rather borked. Interestingly though, on my laptop, I don't see the same glitch:

Screenshot working.

This must be an xlib problem.

Quote:
Originally Posted by jr_bob_dobbs View Post
p.s. Off topic, but your screenshot is interesting in that it shows each of the four sides of the window a different color. I did not realize that was possible. Interesting!
It's a patch to fvwm3 which I've not released yet. Probably won't do until I rewrite the decor code.

Kindly,
Thomas
 
Old 01-28-2021, 05:22 PM   #5
ThomasAdam
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 46
If you can send me your fvwm config, that might help, too.
 
Old 01-28-2021, 06:10 PM   #6
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by ThomasAdam View Post
If you can send me your fvwm config, that might help, too.
Can do. I have attached it to this post (around 30k).
Attached Files
File Type: txt fvwm_config.txt (31.0 KB, 29 views)
 
Old 01-29-2021, 03:35 PM   #7
ThomasAdam
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 46
Hi,

Thanks for your config. This problem isn't in fvwm2, it's in fvwm3, and the problem is with commit 'e8c3efc53dcf5ffae5183c271accc1f38a6a5c69'.

If you can compile fvwm3 from source (by checking out the git repo for it: https://github.com/fvwmorg/fvwm3), please have a look at the "ta/revert-sh-hi-fix" branch which fixes the rendering issue for me, but would be good to let me know.

Kindly,
Thomas
 
Old 01-29-2021, 05:18 PM   #8
ThomasAdam
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 46
As an aside,

In your config, I noticed you were quite rightly having to do this:

Code:
DestroyFunc ToggleTitle
AddToFunc   ToggleTitle
+ I ThisWindow (State 1) WindowStyle Title
+ I TestRc (Match) State 1 False
+ I TestRc (Match) Break
+ I WindowStyle !Title
+ I State 1 True
I've now committed this to master (https://github.com/fvwmorg/fvwm3/com...574a7b7f.patch)

HTH,
Thomas
 
Old 02-01-2021, 07:44 PM   #9
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by ThomasAdam View Post
Hi,

Thanks for your config. This problem isn't in fvwm2, it's in fvwm3,
Umm, now I am confused. I'm having the problem with fvwm 2, in January Slackware, yet not in fvwm 2 in August Slackware. I've not yet ever run 3. Could you clarify please?

edit:
as for the "ToggleTitle" thing, that's not something I did. Because I'd tried FVWM like a year ago and it had gone horribly wrong, this time (though still in Slackware) I grabbed a fresh default config from a Devuan VM, so credit would go to either the Devuan or Debian team. I'd done this in the hope of a more stable and sane starting point.

Last edited by jr_bob_dobbs; 02-01-2021 at 07:51 PM.
 
Old 12-12-2023, 12:37 PM   #10
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Why am I necro-posting the thread? Because it was never solved (instead I switched distros, the problem doesn't happen in Void) and because I have new data as to the original problem.

In April I started an a build of BLFS 11.3. When I got to the point where I put FVWM in, it had the same problem. A day or so later, after installing more packages, the problem went away. So the presence or absence of a particular package, program or file made the problem go away.

Because I used the slackware package manager for my BLFS, I have a record of the order of installation of packages. Here is a excerpt from an ls -trl (sort by date in "reverse" order) that shows the next few packages installed after FVWM:
Code:
-rw-r--r-- 1 root root  12287 Aug 14 14:24 fvwm-2.7.0-x86_64-1_lfs
-rw-r--r-- 1 root root   1292 Aug 16 09:47 xorg_intel_driver-20230223-x86_64-1_lfs
-rw-r--r-- 1 root root   1059 Aug 16 09:54 xorg_ati_driver-19.1.0-x86_64-1_lfs
-rw-r--r-- 1 root root   1153 Aug 16 10:03 pciutils-3.9.0-x86_64-1_lfs
-rw-r--r-- 1 root root  43571 Aug 16 12:59 imagemagick-7.1.0_61-x86_64-1_lfs
-rw-r--r-- 1 root root    746 Aug 16 13:00 autocutsel-0.10.1-x86_64-1_lfs
-rw-r--r-- 1 root root  12952 Aug 16 14:51 cryptopp-8.8.0-x86_64-1_lfs
-rw-r--r-- 1 root root   1449 Aug 19 13:17 treewm-0.4.501-x86_64-1_lfs
The above excerpt ends at treewm becuase I'd noticed the problem had gone away before putting in treewm.

I can't imagine that imagemagick, autocutsel nor cryptopp would affect graphics rendering in a window manager, but I left them for completeness, in case there is some unexpected interrelationship that I am unaware of.

One could tentatively conclude that the intel and ati drivers for xorg fixed this problem. My computer has Intel and Nvidia graphics cards in it.

More recently, in my Devuan system, I have the same visual glitch in FVWM ... and also in the Blackbox window manager. This would indicate that it's not unique to FVWM and/or not a FVWM problem. The complicating thing is this: Devuan has those two xorg drivers already in. This apparent contradiction has me confused, and with glitch buttons & borders

I hope someone can shed some light on this matter. Thank you.
 
1 members found this post helpful.
Old 01-16-2024, 05:01 PM   #11
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
BTW, in topic with the original topic, it happens in a Slackware 15.0 install as well.
 
Old 06-08-2024, 02:24 PM   #12
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Last update to a semi necro thread, I think.

I installed Slackare current (as of a few weeks ago) and, in Qemu, the one-pixel bug was gone. Thus encouraged, I installed again, to bare metal, in a logical volume. Booted that, startx annnnnd ... the one pixel big was back. Poop! Threw my hands in the air and bagged it.

Now, a few weeks later, I botted into S;ackware Current, puttered around and, by the Xorg, xorg.conf man pages, plus trial and error, I made this .conf file and put it in /etc/X11/xorg.conf.d/ ...
Code:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection
That tells Xorg to use my Intel gfx card, not the Radeon, to use DRI & hardware acceleration.

Bam! It worked. Not only was the 1-pixel bug fixed in FVWM but also in Blackbox. Yay!
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Consistant Look of Window Buttons for different Programs tiuz Linux - Desktop 5 08-30-2019 11:02 AM
fvwm & fvwm-crystal? festhead Linux - Desktop 1 09-23-2007 09:49 AM
transparency not correct with fvwm + fvwm-crystal + radeon hedpe Linux - Desktop 0 01-30-2007 07:59 PM
clock not working in fvwm with fvwm-crystal hedpe Linux - Software 0 09-13-2005 08:04 PM
2 fvwm processes with 2 displays, only want one fvwm enzo250gto Linux - Software 0 01-27-2005 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration