michaelforney / dmenu

MIT License
22 stars 8 forks source link

How to use with Weston #1

Closed onny closed 9 years ago

onny commented 9 years ago

When I try to use _dmenurun-wl with Weston, I get following error message:

% dmenu_run-wl
% find_driver: Trying DRM driver `intel'
# wld_font_open_name: Opening font with name: fixed
# wld_font_open_pattern: Loading font file: /usr/share/fonts/misc/7x13-ISO8859-1.pcf.gz

Is there any possibility to use your version with Weston?

michaelforney commented 9 years ago

I don't think so because as far as I know, weston doesn't expose an interface to allow applications to dock to the edge of a screen. For swc, I am using a small protocol extension to allow this (https://github.com/michaelforney/swc/blob/master/protocol/swc.xml#L33). There is a unmaintained branch "wayland" that doesn't use this protocol extension, but this means that the menu will appear in a random spot on the screen.

You could talk with the weston developers and see if an interface like swc_panel{_manager,} is something they would want to support.

onny commented 9 years ago

And whats about a fixed position on screen? Because the X-version of dmenu is able to dock at the borders of the screen. Unfortunately it doesn't get focus until you hover over it with your mouse pointer.

michaelforney commented 9 years ago

I think weston always places windows in a "random" place. I'm not sure if you can tell it to place a window in a certain position. In any case, I think you'll have to extend weston's desktop shell in some way to get dmenu to work properly in it.