[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] Fwd: default key bindings for "prevscreen" and "nextscreen"
From: |
Nicolas Rachinsky |
Subject: |
Re: [RP] Fwd: default key bindings for "prevscreen" and "nextscreen" |
Date: |
Wed, 10 Sep 2008 13:01:35 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* Brian May <address@hidden> [2008-09-10 20:18 +1000]:
> working perfectly, but after a while of spliting frames and changing
> windows ratpoison gets very confused and resizes some windows to the LCD
> screen size and some windows to the external monitor size.
I had the same (or at least a similar) problem. I applied the
following patch, which seems to fix it.
diff -rup src.ori/events.c src/events.c
--- src.ori/events.c Mon Mar 24 11:04:29 2008
+++ src/events.c Mon Mar 24 11:07:57 2008
@@ -110,6 +110,7 @@ unmap_notify (XEvent *ev)
{
rp_frame *frame;
rp_window *win;
+ int oscr;
/* ignore SubstructureNotify unmaps. */
if(ev->xunmap.event != ev->xunmap.window
@@ -135,10 +136,13 @@ unmap_notify (XEvent *ev)
frame = find_windows_frame (win);
if (frame)
{
+ oscr=rp_current_screen;
+ rp_current_screen=win->scr->xine_screen_num;
cleanup_frame (frame);
if (frame->number == win->scr->current_frame
&& current_screen() == win->scr)
set_active_frame (frame, 0);
+ rp_current_screen=oscr;
/* Since we may have switched windows, call the hook. */
if (frame->win_number != EMPTY)
hook_run (&rp_switch_win_hook);
Nicolas
--
http://www.rachinsky.de/nicolas