You are not logged in.

#476 2013-03-01 23:02:18

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

I've added an option to allow using a keyboard shortcut without a modifier key to snapwm.

KEY NULL;F11;spawn;xtermcmd;

That should be a bit friendlier with multimedia keys.

Edit: After a report on github I've fixed the flicker in fullscreen mode when changing desktops.

Cheers

Last edited by moetunes (2013-04-14 06:52:29)


You're just jealous because the voices only talk to me.

Offline

#477 2013-03-18 18:53:03

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

I've been without net access at home for three weeks and while I wasn't expanding my porn collection I did some playing around with the code...

I've added the option to set the number of extra windows in the master area for each desktop in snapwm's rc.conf file. It defaults to none so the line isn't needed if it's not wanted. With six desktops and extra windows wanted in the master area in desktops one and three the line looks like:

NMASTER 1;0;2;

I did the same in larrythewindowmanager too. As there were some issues with snapwm's fullscreen mode brought up on github I changed the way larrythewindowmanager does fullscreen mode which seems to work ok here so far. If I can't reproduce any previous bugs or find any new ones with it I'll port it to snapwm.

There was an issue brought up on github with snapwm-stable where double clicking an empty desktop in the switcher would crash the wm, which suprised me as it doesn't happen with the Makefile I've set up, just with the PKGBUILD, and there is sufficient checks in the code for it not to happen. I seem to have fixed that and have updated snapwm-stable to current snapwm and updated the Makefiles to avoid such future suprises(hopefully).

That's about all the major points for now.

Cheers


You're just jealous because the voices only talk to me.

Offline

#478 2013-03-21 18:41:53

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

A couple of fixes for snapwm and snapwm-stable.

It was brought up on github that trying to select the previous window when there are no open windows would crash the wm. Sloppy coding there on my part...
When some apps were removed on an unfocused desktop, focus wasn't being returned to the current window on the focused desktop.(Thunderbird sends alot of destroy notify events to close one window!!!)

Cheers


You're just jealous because the voices only talk to me.

Offline

#479 2013-03-22 01:56:46

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: dminiwm snapwm & bipolarbar

I'm getting a make error for snapwm-stable after the latest update:

gcc -g -std=c99 -pedantic -Wall -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2   -c -o snapwm.o snapwm.c
snapwm.c: In function ‘destroynotify’:
snapwm.c:1040:17: error: ‘foundit’ undeclared (first use in this function)
snapwm.c:1040:17: note: each undeclared identifier is reported only once for each function it appears in
make: *** [snapwm.o] Error 1

Offline

#480 2013-03-22 08:06:58

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

That's what happens when I copy and paste at 4am before rushing off to work...
Thanks for pointing it out stlarch.


You're just jealous because the voices only talk to me.

Offline

#481 2013-03-22 15:21:51

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: dminiwm snapwm & bipolarbar

Thanks moe!

Offline

#482 2013-03-22 20:47:39

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

Some snapwm news.

I've added a small marker to the top left of the previously focused desktop in the switcher to, well, mark the previously focused desktop in the switcher for easy reference.

taHVuMw

Cheers


You're just jealous because the voices only talk to me.

Offline

#483 2013-03-26 20:15:03

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: dminiwm snapwm & bipolarbar

I've been having some problems with the menu and transient windows in firefox losing focus. Anyone else having this? All of the latest changes to rc.conf/key.conf were optional, right? I noticed it a couple days ago and wasn't sure if it was firefox or what. I just tried in in openbox and it seems to work fine there.

Offline

#484 2013-03-27 08:38:06

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

I had the menu in firefox behave funny in one session with snapwm, it's been fine since. I update the os daily so I put it down to some lib or something...

Edit: I just spent a bit of time with snapwm-stable and firefox and all seems fine there. If the troubles persist let me know and I'll see what I can do.

Cheers

Last edited by moetunes (2013-03-27 09:01:36)


You're just jealous because the voices only talk to me.

Offline

#485 2013-04-05 17:57:10

aecepoglu
Member
Registered: 2012-09-05
Posts: 16
Website

Re: dminiwm snapwm & bipolarbar

How do you go about debugging a window manager. Where does its stdout and stderr point to?

I tried to test dminiwm this morning, and couldn't get most of the keys to work.

Offline

#486 2013-04-05 19:22:17

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

Any errors when it was being built?
I haven't put any debugging options in the code so there won't be any info about what's going on at stdout/error.
There's an option in the config.h to have dminiwm output info about what's happening on the desktops. Set that to one and you'll see how quiet stdout/error is.

#define OUTPUT_INFO     1 /* 1=Don't 0=Output info for bipolarbar */

Post your config.h and I'll check it out. My guess is there's something not quite right with it but who knows.
I just noticed I have my config.h as the config.h.def so I'll simplify that file which should make it easier for people to make a start.


You're just jealous because the voices only talk to me.

Offline

#487 2013-04-06 08:29:12

aecepoglu
Member
Registered: 2012-09-05
Posts: 16
Website

Re: dminiwm snapwm & bipolarbar

I tried it with the default config file too, some functions just wouldn't trigger.
I think it's best that I find out what's wrong.

And, I meant: where would the stdout of an X11 window manager be, under normal circumstances? I was thinking of the tty where I started the window manager, but I couldn't see th e output of printf s I put in the code.

I'll try again and let you know.

Edit:
I have tried ( by starting X with startx>log.txt), and here are the results:

1) I went in the code and printed the keysyms of characters as I grabbed them. I then checked the result of XGrabKey function, and it didn't return BadWindow,BadValue or such error.
2) I printed the keysyms in the keypress-event-handler function. I saw that I didn't get any events for MOD1+XK_t or MOD1_XK_n, and plenty others.

I am able to test on one computer only, but to reproduce the errors:
1) go to the config file and change
.....XK_j to XK_t
.....XK_k to XK_n.
2) remove their duplicates, if any. I personally deleted pretty much all of the keybindings except
.....desktop-switching
.....prev-win
.....next-win
.....terminal spawner

This is the pastebin of what I am doing:
http://pastebin.com/rCDxTjQA (expires by May)
(I marked what doesn't work with comments, but I only marked few of those that doesn't work.)

How should I go about fixing this? Can I query the XServer for what keys are  grabbed by a client?

Last edited by aecepoglu (2013-04-06 10:21:54)

Offline

#488 2013-04-06 20:58:00

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

With the way things are set up now with systemd you need to change /etc/X11/xinit/xserverrc or make a ~/.xserverrc to have X run on a different tty than the one it was started from so you can read the output from a wm, but redirecting output to a file works ok as you've found.

I ran dminiwm with your keyboard shortcuts and all of them worked fine here.
I can only suggest things to check since it must be something on your end as setting the keyboard shortcuts in dminiwm has worked fine for everyone else for years.

What does xev say those keyboard shortcuts are? <- best place to start
What does the X log say about your keyboard?
Have you set the locale up right for your system?

If anyone else has some suggestions they would be appreciated.


You're just jealous because the voices only talk to me.

Offline

#489 2013-04-06 21:27:17

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

If, in your ~/.xinitrc, you are redirecting dminiwm's output to a fifo then the output won't be shown on the tty either. Try

fprintf(stderr, "pressed key %s\n", XKeysymToString(keysym));

There were errors using the code you have to try and have the keysym printed.

Some other stuffs:
In dminiwm the swap master function wasn't working with just two windows open so I fixed that.

Cheers


You're just jealous because the voices only talk to me.

Offline

#490 2013-04-09 06:24:40

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

Did you have any luck aecepoglu ?


You're just jealous because the voices only talk to me.

Offline

#491 2013-04-09 07:55:09

aecepoglu
Member
Registered: 2012-09-05
Posts: 16
Website

Re: dminiwm snapwm & bipolarbar

Oh, well, I have yet to try.
I recall playing with xev though, the keysyms were fine as far as I remember.

It has to be something stupid on my end. dminiwm is only doing a trivial key-grab.
I will let you know when I try and figure it out, or have more questions to ask, okay?

Cheers

Offline

#492 2013-04-10 06:18:06

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

I'm happy to try and answer any questions.

I appreciate it's never fun trying to play with things when they don't just work..
smile


You're just jealous because the voices only talk to me.

Offline

#493 2013-04-14 07:00:07

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

Some snapwm news.

The window border colours weren't updating when the config was updated without a desktop change or similar so I've fixed that.

Cheers


You're just jealous because the voices only talk to me.

Offline

#494 2013-04-15 06:59:51

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

In case no one's noticed I don't change wm themes much but on the weekend I moved to a light theme for a change
taTNubQ
turns out on a previous edit I moved one too many lines and noticed the above error...

Cheers


You're just jealous because the voices only talk to me.

Offline

#495 2013-04-20 21:09:36

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

stlarch mentioned having problems with the menus in firefox. Turns out it happens when you try to move entries around. Sorry I didn't explore it further before considering an update fixed it stlarch... A fix has been pushed to both the stable and non stable versions of snapwm.

Cheers

Last edited by moetunes (2013-04-20 22:12:12)


You're just jealous because the voices only talk to me.

Offline

#496 2013-04-21 03:42:50

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

The SHOWBAR setting in rc.conf doesnt seem to work for me.

Offline

#497 2013-04-21 16:56:24

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

hellomynameisphil wrote:

The SHOWBAR setting in rc.conf doesnt seem to work for me.

I'm not suprised... there was nothing in readrc.c to do anything with that setting. I must have been distracted half way through setting that up and never made my way back to it. A git pull and setting SHOW_BAR to one will have no bar showing on any desktop, then you can toggle it on a desktop if you like. (Notice the underscore between SHOW and BAR - that's how it is in the sample rc.conf).
Apologies for that. It's been a magnificent summer for distractions.

Cheers


You're just jealous because the voices only talk to me.

Offline

#498 2013-04-21 17:34:38

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

I've just made a point release for snapwm-stable.

Major talking points are:
    Better handling of mozilla products multiple destroy notify events
    Added a marker for the previously focused desktop in the switcher
    Have the SHOW_BAR option in rc.conf actually do something (Thanks Phil)


You're just jealous because the voices only talk to me.

Offline

#499 2013-04-25 20:17:39

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: dminiwm snapwm & bipolarbar

thanks moe, it seems to be working now with firefox

Offline

#500 2013-05-06 18:48:12

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: dminiwm snapwm & bipolarbar

Some snapwm news.

I don't know why I haven't already done this...
I added the option to have an app open on a desktop or at a size going by its' name
e.g. urxvtc -name "Ralph"
In apps.conf it would look like:

DESKTOP Ralph;2;0;
POSITION Ralph;1166;668;150;80;

There's probably more ways it can be used.
I'll update dminiwm and larrythewindowmanager this afternoon after work.

Cheers


You're just jealous because the voices only talk to me.

Offline

Board footer

Powered by FluxBB