Giter VIP home page Giter VIP logo

Comments (7)

mathstuf avatar mathstuf commented on June 3, 2024

Hmm, comparing to zenity (minus the icon noise) which does work:

_NET_WM_STATE(ATOM) =
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                bitmap id # to use for icon: 0x2000007
                bitmap id # of mask for icon: 0x2000012
                window id # of group leader: 0x2000001
XdndAware(ATOM) = BITMAP
WM_TRANSIENT_FOR(WINDOW): window id # 0x6000f1
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 294, 82
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 33554437, 33554438
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x2000004
WM_CLIENT_LEADER(WINDOW): window id # 0x2000001
_NET_WM_PID(CARDINAL) = 30356
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "bronto-burt"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified location: 0, 0
                program specified minimum size: 296 by 84
                program specified base size: 0 by 0
                window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "zenity", "Zenity"
WM_ICON_NAME(STRING) = "Add a new entry"
_NET_WM_ICON_NAME(UTF8_STRING) = "Add a new entry"
WM_NAME(STRING) = "Add a new entry"
_NET_WM_NAME(UTF8_STRING) = "Add a new entry"

It looks like the difference is WM_TRANSIENT_FOR(WINDOW): window id # 0x6000f1. Both udiskie and zenity do have a message from Gtk:

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Looking into zenity to see if they set something else on the dialog before showing it…

from udiskie.

mathstuf avatar mathstuf commented on June 3, 2024

Well, it does some nasty X calls. Fun.

from udiskie.

coldfix avatar coldfix commented on June 3, 2024

Can you describe your problem in more detail? I'm afraid I didn't understand what's wrong. Does no dialog show up?

from udiskie.

mathstuf avatar mathstuf commented on June 3, 2024

Oh, sorry, yeah. I'm using XMonad and have a policy in there to float all dialog windows rather than tiling them. Dialogs by zenity properly float; the udiskie prompt does not and instead gets tiled.

from udiskie.

coldfix avatar coldfix commented on June 3, 2024

Curious.

I'll have to take a look at that another day if you don't figure it out before me;) It's getting late (6:30 AM here).

from udiskie.

mathstuf avatar mathstuf commented on June 3, 2024

It looks like zenity gets around it by setting the X root window as the transient_for property manually (hence getting the warning, but still working). I think there's a Gdk call to get the root window as a Gdk handle, but I don't know if Python can call it :/ .

from udiskie.

mathstuf avatar mathstuf commented on June 3, 2024

Woo, this function looks promising.

from udiskie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.