Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
dmenu, dwm and two screens
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
v4hn  
View profile  
 More options Aug 14 2012, 9:01 am
From: v4hn <m...@v4hn.de>
Date: Tue, 14 Aug 2012 15:01:08 +0200
Local: Tues, Aug 14 2012 9:01 am
Subject: [dev] dmenu, dwm and two screens

Hey everyone,

I got a new monitor recently and started to work with
two screens and dwm.
No problem at all. Everything works fine, except for one
_really annoying_ issue with dmenu and dwm.

If no windows are open on the current tag of one screen
and I switch to this screen&tag using the keyboard
then if I invoke dmenu it doesn't always appear on the focused
screen, but on the screen where the cursor currently is!
The issue is gone if I open at least one client on the focused
screen before invoking dmenu.

I've got no time at the moment to investigate this and don't even know
where to start looking. Could someone who knows a bit more about
X internals than me please investigate this problem!

v4hn

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Torres  
View profile  
 More options Aug 14 2012, 9:23 am
From: Carlos Torres <vlaadbr...@gmail.com>
Date: Tue, 14 Aug 2012 09:23:28 -0400
Local: Tues, Aug 14 2012 9:23 am
Subject: Re: [dev] dmenu, dwm and two screens

< top

On Tue, Aug 14, 2012 at 9:01 AM, v4hn <m...@v4hn.de> wrote:
> Hey everyone,

> I got a new monitor recently and started to work with
> two screens and dwm.
> No problem at all. Everything works fine, except for one
> _really annoying_ issue with dmenu and dwm.

> If no windows are open on the current tag of one screen
> and I switch to this screen&tag using the keyboard
> then if I invoke dmenu it doesn't always appear on the focused
> screen, but on the screen where the cursor currently is!
> The issue is gone if I open at least one client on the focused
> screen before invoking dmenu.

I started using warp because moving my mouse from one screen to another
manually was a pain in the arse. That might fix your issue.

--Carlos

> I've got no time at the moment to investigate this and don't even know
> where to start looking. Could someone who knows a bit more about
> X internals than me please investigate this problem!

> v4hn

< bottom

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martti Kühne  
View profile  
 More options Aug 14 2012, 9:33 am
From: Martti Kühne <mysat...@gmail.com>
Date: Tue, 14 Aug 2012 15:33:45 +0200
Local: Tues, Aug 14 2012 9:33 am
Subject: Re: [dev] dmenu, dwm and two screens

[1] for dwm, [2] for dmenu, accordingly.
I did publish it before, no idea where it got lost.
Otoh, it's a fairly simple addition, which to figure out isn't much to imo.

have a nice day.
mar77i

[1] https://github.com/mar77i/dwm-patches/blob/master/dmenumon/dmenumon.p...
[2] https://gist.github.com/3349298

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Torres  
View profile  
 More options Aug 14 2012, 1:26 pm
From: Carlos Torres <vlaadbr...@gmail.com>
Date: Tue, 14 Aug 2012 13:26:06 -0400
Local: Tues, Aug 14 2012 1:26 pm
Subject: Re: [dev] dmenu, dwm and two screens

What happened to *arg?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martti Kühne  
View profile  
 More options Aug 14 2012, 7:00 pm
From: Martti Kühne <mysat...@gmail.com>
Date: Wed, 15 Aug 2012 01:00:28 +0200
Local: Tues, Aug 14 2012 7:00 pm
Subject: Re: [dev] dmenu, dwm and two screens

On Tue, Aug 14, 2012 at 01:26:06PM -0400, Carlos Torres wrote:
> > [1]
> > https://github.com/mar77i/dwm-patches/blob/master/dmenumon/dmenumon.p...

> What happened to *arg?

> > [2] https://gist.github.com/3349298

pass NULL in config.h keys[], as an arg, it's needed to provide a common ground
call structure for all keyboard functions. Also, line 32 of the dwm patch might
be written shorter with +=, since it's initialized correctly in 16

cheers!
mar77i

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
v4hn  
View profile   Translate to Translated (View Original)
 More options Aug 16 2012, 8:14 am
From: v4hn <m...@v4hn.de>
Date: Thu, 16 Aug 2012 14:14:53 +0200
Local: Thurs, Aug 16 2012 8:14 am
Subject: Re: [dev] dmenu, dwm and two screens

Hey Martti,

these patches work like a charme, thanks!
If this is the most simple way of fixing this mess,
then I vote for adding it to upstream.

Still this looks like patchwork to me..
dmenu fails to detect the active screen in dwm.
So either the detection is broken or dwm does not support
the detection used. Is there a standardized way of doing this?

Could the authors of the respective code lines please have a look at this?

v4hn

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martti Kühne  
View profile   Translate to Translated (View Original)
 More options Aug 16 2012, 4:33 pm
From: Martti Kühne <mysat...@gmail.com>
Date: Thu, 16 Aug 2012 22:33:09 +0200
Local: Thurs, Aug 16 2012 4:33 pm
Subject: Re: [dev] dmenu, dwm and two screens

On Thu, Aug 16, 2012 at 02:14:53PM +0200, v4hn wrote:
> Hey Martti,

> these patches work like a charme, thanks!
> If this is the most simple way of fixing this mess,
> then I vote for adding it to upstream.

> Still this looks like patchwork to me..
> dmenu fails to detect the active screen in dwm.
> So either the detection is broken or dwm does not support
> the detection used. Is there a standardized way of doing this?

> Could the authors of the respective code lines please have a look at this?

Urm, afaik I am the author, and I wrote it for lack a better alternative. If
there would be the whole integration would be easier.
If I remember it correctly, X can tell what monitor the mouse is on, but that
state was made invalid when a key combo to switch monitor was introduced.

Don't know, maybe someone else can clarify this more thoroughly or you could
read into Xlib docs or code from other (fully keyboard controllable) wms to see
if/how they do it right...

Also the patch against dwm I provided about ewmh is still not working as it
should, but I wasn't annoyed enough yet to write a patch to dump the whole ewmh
murks. Ironically that one was actually added upstream.

cheers!
mar77i

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »