#473715 openbox & xrootconsole don't play nice anymore

Package:
xrootconsole
Source:
xrootconsole
Description:
Fancy X console display
Submitter:
Laurent CARON
Date:
2022-04-27 18:51:03 UTC
Severity:
normal
Tags:
#473715#5
Date:
2008-04-01 06:20:15 UTC
From:
To:
Hi,

Since i dist-upgraded two of my sid boxes, i'm unable on those machines
to right click on the desktop.
When i do so, no menu appears.
If i reduce xrootconsole i can click outside of it (not very practical).
--------------------------------------------------------------------
contents of .xsession:
xrootconsole -geo 266x120+0+0 /dev/xconsole -fn 6X10 --wrap &
exec openbox
--------------------------------------------------------------------
contents of xorg.conf:
Section "Extensions"
    Option "Composite" "Enable"
EndSection

Section "ServerLayout"
    Identifier     "XFree86 Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/X11/misc:unscaled"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/75dpi:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/usr/share/fonts/X11/100dpi:unscaled"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/PEX"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/share/fonts/ttf/western"
    FontPath        "/usr/share/fonts/ttf/decoratives"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/truetype/openoffice"
    FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath        "/usr/share/fonts/latex-ttf-fonts"
    FontPath        "/usr/local/share/fonts/truetype"
    FontPath        "/usr/share/fonts/X11/defoma/CID"
    FontPath        "/usr/share/fonts/X11/defoma/TrueType"
    FontPath        "unix/:7100"
EndSection

Section "Module"
    Load           "ddc"  # ddc probing of monitor
    Load           "bitmap"
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "type1"
    Load           "freetype"
    Load           "record"
    Load           "int10"
    Load           "vbe"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "Xinerama" "false"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xfree86"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "fr"
EndSection

Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "DEL"
    ModelName      "DELa00b"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS" "true"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "DEL"
    ModelName      "DELa00c"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS" "true"
EndSection


Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    Screen          0
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "nvidia"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "on"
    Option         "MetaModes" "1600x1200,1600x1200; 1280x1024,1280x1024; 1024x768,1024x768; 800x600,800x600"
    Option         "TwinViewOrientation" "RightOf"
    Option         "SecondMonitorHorizSync" "UseEdidFreqs"
    Option         "SecondMonitorVertRefresh" "UseEdidFreqs"
    Option         "RenderAccel"
    Option          "AddARGBGLXVisuals"     "True"
    Option         "HWcursor"
    Option         "CursorShadow"
    Option         "CursorShadowAlpha" "32"
    Option         "CursorShadowXOffset" "3"
    Option         "CursorShadowYOffset" "3"
    Option         "AllowGLXWithComposite"
    SubSection     "Display"
        Depth       1
        Modes      "1600x1200"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1600x1200"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1600x1200"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1600x1200"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1600x1200"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200"
    EndSubSection
    SubSection     "Display"
        Depth       32
        Modes      "1600x1200"
    EndSubSection
EndSection
--------------------------------------------------------------------


Thanks

Laurent

#473715#12
Date:
2008-04-01 11:25:41 UTC
From:
To:
reassign 473715 xrootconsole
thanks

Hi Laurent,
* Laurent CARON <lcaron@gw.unix-scripts.info> [2008-04-01 13:05]:

If this worked before this was a bug in openbox. If it does
not work now this is no bug. xrootconsole opens a window on
top of the X root window so openbox can't get the click
event on it. This should be fixed in xrootconsole if it's
not intended there. I suggest you using root-tail instead
which does not open a new window but draws on the root
window.

I reassign this bug to xrootconsole. If this is intended
behaviour please close the bug later.

Kind regards
Nico

#473715#19
Date:
2008-04-17 05:38:57 UTC
From:
To:
Hi. Sorry my delayed opinion about this issue but I still have some
little comments.

I tested with openbox 3.4.5-1 and I confirm the program xrootconsole
worked fine (the same version). Indeed xrootconsole is a very old
program (the latest version was since 2004). The latest changes on
openbox 3.4.6.1 to affect its behaviour.

The openbox's menu doesn't appear anymore when the xrootconsole is
running.  Although the problem is on xrootconsole because creates a
new root window  I don't know if was a good idea to change the
original openbox behaviour.

I found where were the changes:

On openbox 3.4.5 on the file openbox/event.c, the program had this:

 673     if (e->type == ButtonPress || e->type == ButtonRelease ||
 674         e->type == MotionNotify || e->type == KeyPress ||
 675         e->type == KeyRelease)
 676     {
 677         event_handle_user_input(client, e);
 678     }

Now on openbox 3.4.6.1 the program has this:

 702     if (e->type == ButtonPress || e->type == ButtonRelease) {
 703         /* If the button press was on some non-root window, or
was physically
 704            on the root window, then process it */
 705         if (window != RootWindow(ob_display, ob_screen) ||
 706             e->xbutton.subwindow == None)
 707         {
 708             event_handle_user_input(client, e);
 709         }
 710         /* Otherwise only process it if it was physically on an openbox
 711            internal window */
 712         else {
 713             ObWindow *w;
 714
 715             if ((w = g_hash_table_lookup(window_map,
&e->xbutton.subwindow)) &&
 716                 WINDOW_IS_INTERNAL(w))
 717             {
 718                 event_handle_user_input(client, e);
 719             }
 720         }
 721     }
 722     else if (e->type == KeyPress || e->type == KeyRelease ||
 723              e->type == MotionNotify)
 724         event_handle_user_input(client, e);

This blocks the ButtonPress event coming from an external root window
(like xrootconsole). Before it let pass that event.

Although for example root-tail works fine because just defines a
root-window if there isn't one before, in other case uses the previous
root-window defined.

My concern is that other apps like xrootwindow will be affect with this change.

Regards.

#473715#24
Date:
2008-04-17 06:53:16 UTC
From:
To:
Anibal Avelar wrote:

Although (very?) old, wrootconsole is a great tool.
root-tail seems more recent, .... but one feature is missing.
Root-tail doesn't allow to display stdin (at least not easily).

I was using xrootconsole that way to display remote logs:
ssh -t $MAILSERVER "tail -F /var/log/mail.log" | xrootconsole -geo
210x51+1280+0 -fn 6x10 -fg blue --wrap &


Thanks for your time & reply.

Laurent

#473715#29
Date:
2008-04-17 08:48:54 UTC
From:
To:
Hi Anibal,
* Anibal Avelar <aavelar@cofradia.org> [2008-04-17 10:28]:

It is since everything else would be a bug. There is no
reason xrootconsole should open a window on top of the root
window.

[...]

If they are they should be fixed as well.
Kind regards
Nico

#473715#42
Date:
2008-05-01 23:24:04 UTC
From:
To:
severity 478664 normal
tags 478664 +wontfix

The only way to fix this would be to re-write xrootconsole, so if this
behavior is not acceptable, I recommend using root-tail instead.

#473715#49
Date:
2017-02-19 13:24:55 UTC
From:
To:
Dear Customer,

Your item has arrived at February 17, but our courier was not able to deliver the parcel.

Please check the attachment for details!

Thank you for your time,
Dustin Reeves,
UPS Mail Delivery Manager.

#473715#54
Date:
2017-02-26 15:12:37 UTC
From:
To:
Dear Customer,

UPS courier was unable to contact you for your parcel delivery.

Please check delivery label attached!

Sincerely,
Jeffery Ayers,
UPS Station Agent.