Comments (7)
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.
Well, it does some nasty X calls. Fun.
from udiskie.
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.
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.
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.
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.
Woo, this function looks promising.
from udiskie.
Related Issues (20)
- [Sway/Wayland] Smart tray is never hidden? HOT 2
- Tray icon HOT 9
- Autostart at boot HOT 2
- Locking LUKS device: Not authorized HOT 4
- Open file manager by click on notification HOT 5
- Unable to automount internal device HOT 6
- Configure file permission HOT 5
- Automount mounts in Read only HOT 15
- Automount only specific device HOT 1
- Automatic unmounting from file manager HOT 1
- Tell daemon to pause automounting HOT 1
- Tray menu shows invalid entry on first launch and icons are hard to see HOT 1
- Unmounting Btrfs partition: Error finding object for block device
- shell completions: need to escape spaces in labels HOT 2
- Not showing "internal HDD" HOT 1
- When use together with `tomb`, it cause problem because of the loop device password prompt. HOT 1
- make appimage or static binary file HOT 1
- Not authorized to mount on Linux Mint HOT 1
- Hide unpower (at least for optical devices) HOT 2
- Fedora package is wrong name on the installation manual HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from udiskie.