LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dwm always opens firefox on workspace 9 (https://www.linuxquestions.org/questions/slackware-14/dwm-always-opens-firefox-on-workspace-9-a-776914/)

Allamgir 12-19-2009 02:10 PM

dwm always opens firefox on workspace 9
 
This is a really strange problem. For some reason, whenever I start x and dwm and use dmenu to start firefox, it opens in workspace 9. I've even tried opening firefox from xterm, and still, even if I'm on workspace 1, 2, 5, 8, etc., it always opens on the ninth. This has never happened to me when I used dwm on Arch linux, so I'm wondering if this is the result of something slackware-specific.

Can anyone shed some light on what this may be? It's really annoying to have to jump to workspace 9 every time I want to browse the web.


Thanks,
Allamgir

Mol_Bolom 12-19-2009 02:42 PM

The reason is because of the rules in the config.h file. In order to change that you would need to change the tags mask to 0 then recompile dwm.

Code:

static const Rule rules[] = {
        /* class      instance    title      tags mask    isfloating  monitor */
        { "Firefox",  NULL,      NULL,      1 << 8,      True,      -1 }//Change 1<<8 to 0.
};


Allamgir 12-19-2009 04:36 PM

Yes! That worked perfectly! Thanks :)


All times are GMT -5. The time now is 05:34 AM.