Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Popup windows #272

Closed
neuromagus opened this issue Jul 19, 2022 · 3 comments · Fixed by #273
Closed

Popup windows #272

neuromagus opened this issue Jul 19, 2022 · 3 comments · Fixed by #273
Labels
A: bug Something isn't working

Comments

@neuromagus
Copy link

dwl from git. Arch linux blah-blah

If write in config this parameter for ANY GTK programs (transmission, LO, FF), all popup windows (open, close, file choice etc) work on tiled mode

static const Rule rules[] = {
        /* app_id     title       tags mask     isfloating   monitor */
         { "firefox",  NULL,       1 << 1,          0,          -1 },
};

If remove line, for example { "firefox", NULL, 1 << 1, 0, -1 } or set isfloating 1 and open FF - all popup windows work well (in float mode)

P.S. sorry for my english.

@neuromagus neuromagus added the A: bug Something isn't working label Jul 19, 2022
@sevz17
Copy link
Collaborator

sevz17 commented Jul 19, 2022

That is expected, those windows share the same app_id, so the unique solution is add another rule setting it floating by title instead of app_id.

{ NULL, "Open File", 1 << 1, 1, -1 } or { "firefox", "Open File", 1 << 1, 1, -1 }

@neuromagus
Copy link
Author

thanks

@neuromagus
Copy link
Author

I thinking... This is strange behavior. In DWM all work fine. I want just open program in selected tag. For all windows I need write this rules? { "firefox", "Open File", 1 << 1, 1, -1 } And I have more, than one FF in my config.h. And I have more, than 1 monitor...

I think this behavior need fix

@sevz17 sevz17 closed this as completed in 90a12c9 Jul 23, 2022
dimkr added a commit to dimkr/dwl that referenced this issue Jul 24, 2022
commit f775bdb
Merge: f1122d1 b04c73b
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Sun Jul 24 08:49:59 2022 +0300

    Merge branch 'main' of https://github.com/djpohly/dwl into dwl-kiosk-v2

commit f1122d1
Merge: 2564d9e 3972193
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Sun Jul 24 08:35:20 2022 +0300

    Merge branch 'en-keycodes' into dwl-kiosk-v2

commit 3972193
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Sun Jul 24 08:30:40 2022 +0300

    always use the English keymap to get keycodes

commit b04c73b
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Sat Jul 23 13:25:47 2022 -0500

    make sure we do not create a double fullscreen_bg

    and also make sure we do not destroy it if it does not exist
    Fixes: djpohly#274

commit 8cdb997
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Sat Jul 23 02:08:10 2022 -0500

    conform the xdg-protocol with fullscreen translucent clients

    see `setfullscreen()` for more info

commit 2564d9e
Merge: ca51741 bc71d3d
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 15:58:39 2022 +0300

    Merge branch 'kiosk' into dwl-kiosk-v2

commit bc71d3d
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 15:57:57 2022 +0300

    run the first client in kiosk mode if -k

commit ca51741
Merge: 85ea4b6 ad59bd1
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:45:04 2022 +0300

    Merge branch 'snail' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit 85ea4b6
Merge: a267488 b0bd1b8
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:08:29 2022 +0300

    Merge branch 'right' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit a267488
Merge: d6db947 8f50f26
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:08:25 2022 +0300

    Merge branch 'fallback' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit d6db947
Merge: 9d3fc47 d4e2055
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:08:11 2022 +0300

    Merge branch 'env' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit 9d3fc47
Merge: 341911c 37f08b4
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:07:57 2022 +0300

    Merge branch 'csd' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit 341911c
Merge: 4f2460c a12f38e
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:07:50 2022 +0300

    Merge branch 'toplevel-requests' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit 4f2460c
Merge: 1c7f1ab c4ed358
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:07:47 2022 +0300

    Merge branch 'center-cursor' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit 1c7f1ab
Merge: ff0546f 7113862
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:07:42 2022 +0300

    Merge branch 'center' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit ff0546f
Merge: 6cd90ba e6377f1
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:07:24 2022 +0300

    Merge branch 'kiosk' of http://github.com/dimkr/dwl into dwl-kiosk-v2

commit 6cd90ba
Merge: ec138df c0bdaf9
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:07:11 2022 +0300

    Merge branch 'output-power-management' of https://github.com/guidocella/dwl into dwl-kiosk-v2

commit ec138df
Merge: e082292 77fd3b1
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:06:51 2022 +0300

    Merge branch 'point' of https://github.com/PalanixYT/dwl into dwl-kiosk-v2

commit e6377f1
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jul 22 00:06:18 2022 +0300

    run the first client in kiosk mode if -k

commit c4ed358
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Fri Jun 17 06:26:34 2022 +0000

    center the cursor on startup

commit d4e2055
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Thu Jul 21 21:47:15 2022 +0300

    allow environment variables to override config.h

commit 37f08b4
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Thu Jul 21 21:33:22 2022 +0300

    ask clients to draw their own decorations

commit 8f50f26
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Thu Jul 21 21:26:31 2022 +0300

    fall back to a lower output mode if needed (swaywm/sway@4cdc4ac)

commit a12f38e
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Thu Jul 21 21:24:52 2022 +0300

    add support for titlebar actions

commit b0bd1b8
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Thu Jul 21 21:14:14 2022 +0300

    extend the display to the right

commit 7113862
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Thu Jul 21 20:59:19 2022 +0300

    center floating windows

commit 90a12c9
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Tue Jul 19 20:13:56 2022 -0500

    always set the same monitor and tags for child clients of a client

    fixes djpohly#272

commit ad59bd1
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Tue Jul 19 10:01:26 2022 +0300

    add the snail layout

    This layout is a scalable alternative to the "tile" and "spiral" layouts, optimized for wide monitors. Both the master area and the stack are "spirals", but windows in the master area are split horizontally as long as the master area has enough horizontal space, and the first window in the stack is split vertically unless the stack is wide.

    With one window in the master area and mfact = 0.5, it behaves like the spiral layout:

    ┌───────────────┬────────────────┐
    │               │                │
    │               │                │
    │               │                │
    │               │                │
    │               ├───┬───┬────────┤
    │               │   │   │        │
    │               ├───┴───┤        │
    │               │       │        │
    │               │       │        │
    └───────────────┴───────┴────────┘

    With 2 windows in the master area and 2 in the stack:

    ┌───────────────┬────────────────┐
    │               │                │
    │               │                │
    │               │                │
    │               │                │
    ├───────────────┼────────────────┤
    │               │                │
    │               │                │
    │               │                │
    │               │                │
    └───────────────┴────────────────┘

    With 3 windows in the master area and 2 in the stack:

    ┌───────────────┬────────────────┐
    │               │                │
    │               │                │
    │               │                │
    │               │                │
    ├───────┬───────┼────────────────┤
    │       │       │                │
    │       │       │                │
    │       │       │                │
    │       │       │                │
    └───────┴───────┴────────────────┘

    With many windows in both areas:

    ┌───────────────┬────────────────┐
    │               │                │
    │               │                │
    │               │                │
    │               │                │
    ├───┬───┬───────┼───┬───┬────────┤
    │   │   │       │   │   │        │
    ├───┴───┤       ├───┴───┤        │
    │       │       │       │        │
    │       │       │       │        │
    └───────┴───────┴───────┴────────┘

    With 2 windows in the master area, many windows in the stack and high mfact:

    ┌──────────┬──────────┬──────────┐
    │          │          │          │
    │          │          │          │
    │          │          │          │
    │          │          │          │
    │        master       ├──┬stack──┤
    │          │          │  │  │    │
    │          │          ├──┴──┤    │
    │          │          │     │    │
    │          │          │     │    │
    └──────────┴──────────┴─────┴────┘

    With 2 windows in the master area, many windows in the stack and low mfact:

    ┌──────────┬──────────┬──────────┐
    │          │          │          │
    │          │          │          │
    │          │          │          │
    │          │          │          │
    ├──master──┤        stack┬──┬────┤
    │          │          │  │  │    │
    │          │          ├──┴──┤    │
    │          │          │     │    │
    │          │          │     │    │
    └──────────┴──────────┴─────┴────┘

commit 77fd3b1
Author: Palanix <palanixyt@gmail.com>
Date:   Sun Jul 3 18:46:18 2022 +0200

    Fix pointerconstraints

commit c0bdaf9
Author: Dima Krasner <dima@dimakrasner.com>
Date:   Mon Apr 4 01:20:06 2022 +0800

    damage the output after wlopm --on

commit 89fd86b
Author: Guido Cella <guido@guidocella.xyz>
Date:   Sun Mar 20 21:19:29 2022 +0100

    Implement the output power management protocol.

    I thought wlr-randr used this, but it doesn't so I don't even know what
    this is for.
@sevz17 sevz17 mentioned this issue Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants