LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2019, 03:25 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
dwm sometimes stuck in impossible window layout


I was giving dwm a try. Fetched it fine. Set the options and compiled it fine. Was able to run it. Applied a patch to get sys tray without mishap. There is just one odd problem.

Randomly the layout will go go from:
Code:
+-----------------+-------+
|                 |       |
|                 |       |
|                 +-------|
|                 |       |
|                 |       |
|                 +-------|
|                 |       |
+-----------------+-------+
to:
Code:
+-------------------------+
|                         |
+-------------------------+
|                         |
+-------------------------+
|                         |
+-------------------------+
|                         |
+-------------------------+
Once this happens, it is stuck in that layout until I exit dwm.

Has anyone else gotten this to occur? If so, were you able to fix it?
 
Old 01-29-2019, 03:30 PM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I've had this happen and I believe I thought I had put it in the wrong mode but the docs (https://dwm.suckless.org/tutorial/) don't say anything about this. I believe I also had to exit and come back. I have since stopped using DWM but not for that reason. I want to say it only did that to me once - it certainly was not something that happened all the time.
 
1 members found this post helpful.
Old 02-02-2019, 12:59 PM   #3
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
You're not mentioning which dwm version, one can assume it's 6.1. ALso, do you mean the dwm-6.1-systray.diff patch from here https://dwm.suckless.org/patches/systray/ ? If positive, is it the only patch you've applied?

I am using this setup (and a couple of other patches) and I've never experienced the bug you're describing. I'm pretty clueless about the inner machinery of dwm, but if I were you and I succeeded to reproduce the bug with vanilla dwm and the systray patch only on top of it, I would probably email the authors of the patch directly.
 
Old 02-04-2019, 08:33 PM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Well, after some time away, and then some trial and error, I found out how to cause the problem to manifest. It seems that mod-i and mod-d (where in my case, mod is the win key) were how I did it.

The problem was caused by my lack of understanding of what those two key combinations do.

mod-i Increments and mod-d Decrement the number of windows that can be in the Master area at the same time. This is initially one. Increasing it to two is often useful and one sees that in many screen shots of dwm.

What I had been doing was hitting mod-d while there was still only one window in the Master area. This resulted in ZERO windows in the Master area, causing the "stack" (non-master) windows to expand to the full width of the screen in an oddball layout. So, not a bug: dwm acting as intended.
 
Old 02-04-2019, 09:29 PM   #5
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
If you find yourself accidentally hitting some key combos, it really helps commenting them out in the config file and recompiling.
 
  


Reply



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
Suggestion for specific window management with dwm FlinchX Linux - Software 6 01-09-2018 02:31 AM
LXer: Top 5: dwm Linux window manager, why be a sysadmin, and more LXer Syndicated Linux News 0 07-21-2017 08:05 PM
LXer: Top 4 reasons I use dwm for my Linux window manager LXer Syndicated Linux News 0 07-19-2017 04:40 AM
dwm window manager: conky eats 100%CPU when it has its own window (window_type normal) ondoho Linux - Software 0 10-11-2016 08:49 PM
Config-file for DWM window manager on Debian. tirka Linux - Newbie 1 06-25-2011 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 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