siduck / chadwm

Making dwm as beautiful as possible!
MIT License
2.16k stars 170 forks source link

[Question] Which patch implement the feature in the below screenshot? #19

Closed Avimitin closed 3 years ago

Avimitin commented 3 years ago

image

This feature seems like a tabbed windows manager. It's great for coding and compiling.

siduck commented 3 years ago

Check the recent closed issue!

Avimitin commented 3 years ago

I gave up, it’s full of invalid parameters error and crash. Thanks for your reply.

Avimitin commented 3 years ago

For people who have errors: X_Error BadMatch Invalid parameters, you can try to replace the tab win create parameters to:

m->tabwin = XCreateWindow(dpy, root, m->wx, m->ty, m->ww, th, 0, depth,
              InputOutput, visual,
              CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
Avimitin commented 3 years ago

For people who have errors: X_Error BadMatch Invalid parameters, you can try to replace the tab win create parameters to:

m->tabwin = XCreateWindow(dpy, root, m->wx, m->ty, m->ww, th, 0, depth,
            InputOutput, visual,
            CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);

Exactly, this error is coming from the alpha patch. You must create a tab window like the status bar. For more detail please check out https://dwm.suckless.org/patches/alpha/dwm-alpha-20201019-61bb8b2.diff and search the keyword XCreateWindow at function updatebars(void).

siduck commented 3 years ago

For people who have errors: X_Error BadMatch Invalid parameters, you can try to replace the tab win create parameters to:

m->tabwin = XCreateWindow(dpy, root, m->wx, m->ty, m->ww, th, 0, depth,
              InputOutput, visual,
              CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);

Exactly, this error is coming from the alpha patch. You must create a tab window like the status bar. For more detail please check out https://dwm.suckless.org/patches/alpha/dwm-alpha-20201019-61bb8b2.diff and search the keyword XCreateWindow at function updatebars(void).

yeah chadwm doesnt have the alpha patch so I didnt had those issues

Avimitin commented 3 years ago

For people who have errors: X_Error BadMatch Invalid parameters, you can try to replace the tab win create parameters to:

m->tabwin = XCreateWindow(dpy, root, m->wx, m->ty, m->ww, th, 0, depth,
            InputOutput, visual,
            CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);

Exactly, this error is coming from the alpha patch. You must create a tab window like the status bar. For more detail please check out https://dwm.suckless.org/patches/alpha/dwm-alpha-20201019-61bb8b2.diff and search the keyword XCreateWindow at function updatebars(void).

yeah chadwm doesnt have the alpha patch so I didnt had those issues

Hope google can guide those people who have the same problem to this issue. There are lots of patches that are not compatible with the alpha patch. I have struggled with systray and alpha patch for a long time too.

Avimitin commented 3 years ago

Tab patch file link: https://github.com/siduck76/chadwm/issues/17#issuecomment-896920317