LinuxQuestions.org
Visit Jeremy's Blog.
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, 04:25 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 413
Blog Entries: 53

Rep: Reputation: 57
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, 04:30 PM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Posts: 1,275

Rep: Reputation: 509Reputation: 509Reputation: 509Reputation: 509Reputation: 509Reputation: 509
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, 01:59 PM   #3
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 388

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, 09:33 PM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 413

Original Poster
Blog Entries: 53

Rep: Reputation: 57
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, 10:29 PM   #5
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 388

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


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
Suggestion for specific window management with dwm FlinchX Linux - Software 6 01-09-2018 03:31 AM
LXer: Top 5: dwm Linux window manager, why be a sysadmin, and more LXer Syndicated Linux News 0 07-21-2017 09:05 PM
LXer: Top 4 reasons I use dwm for my Linux window manager LXer Syndicated Linux News 0 07-19-2017 05: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 09:49 PM
Config-file for DWM window manager on Debian. tirka Linux - Newbie 1 06-25-2011 07:30 PM

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

All times are GMT -5. The time now is 04:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration