Bugs item #610807, was opened at 2002-09-17 14:29
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428680&aid=610807&group_id=40696
Category: Behaviour
Group: 0.65.x
>Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Sean 'Shaleh' Perry (shaleh)
Summary: Incorrect nedit window placement
Initial Comment:
I noticed something this morning... When I open a new nedit
window by choosing Open* from the File menu, it does
not place
the new window correctly - the window just winds up top
left,
over whatever happens to be there. Opening a new nedit
window
from the blackbox menu works just fine.
I grabbed the latest cvs (--version says 0.65.0pre2),
but no
change...
Here is the xprop and xwininfo information, as
requested. The incorrect window was spawned by
clicking 'File', then 'New' in the correctly spawned
window.
###### XPROP of correctly placed window ######
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) =
0x6c, 0x0, 0x5, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x17, 0x40, 0x10, 0x0, 0x0, 0x0
_BLACKBOX_ATTRIBUTES(_BLACKBOX_ATTRIBUTES) = 0x50, 0x0,
0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x0, 0xffffffff,
0xffffffff, 0xffffffff, 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW,
WM_SAVE_YOURSELF
WM_CLIENT_LEADER(WINDOW): window id # 0x1e00148
WM_LOCALE_NAME(STRING) = "C"
WM_CLASS(STRING) = "nedit", "NEdit"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x1e0000d
bitmap id # of mask for icon: 0x1e0000f
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
program specified size: 618 by 346
program specified minimum size: 65 by 47
program specified resize increment: 7 by 13
program specified base size: 58 by 34
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "erato"
WM_ICON_NAME(STRING) = "Untitled"
WM_NAME(STRING) = "Untitled"
###### XWININFO of correctly placed window ######
xwininfo: Window id: 0x1e00148 "Untitled"
Absolute upper-left X: 617
Absolute upper-left Y: 21
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 618
Height: 346
Depth: 24
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +617+21 -45+21 -45-657 +617-657
-geometry 80x24-44+0
###### XPROP of incorrectly placed window ######
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) =
0x6c, 0x0, 0x5, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x17, 0x40, 0x10, 0x0, 0x0, 0x0
_BLACKBOX_ATTRIBUTES(_BLACKBOX_ATTRIBUTES) = 0x50, 0x0,
0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x0, 0xffffffff,
0xffffffff, 0xffffffff, 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW,
WM_SAVE_YOURSELF
WM_CLIENT_LEADER(WINDOW): window id # 0x1e00299
WM_LOCALE_NAME(STRING) = "C"
WM_CLASS(STRING) = "nedit", "NEdit"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x1e0000d
bitmap id # of mask for icon: 0x1e0000f
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
program specified size: 618 by 346
program specified minimum size: 65 by 47
program specified resize increment: 7 by 13
program specified base size: 58 by 34
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "erato"
WM_ICON_NAME(STRING) = "Untitled_1"
WM_NAME(STRING) = "Untitled_1"
###### XWININFO of incorrectly placed window ######
xwininfo: Window id: 0x1e00299 "Untitled_1"
Absolute upper-left X: 1
Absolute upper-left Y: 21
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 618
Height: 346
Depth: 24
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +1+21 -661+21 -661-657 +1-657
-geometry 80x24+0+0
----------------------------------------------------------------------
Comment By: Sean 'Shaleh' Perry (shaleh)
Date: 2002-09-18 11:49
Message:
Logged In: YES
user_id=37132
>From the nedit source (5.2):
/* If window geometry was specified, split it apart into a window position
component and a window size component. Create a new geometry
string
containing the position component only. Rows and cols are stripped
off
because we can't easily calculate the size in pixels from them until the
whole window is put together. Note that the preference resource is
only
for clueless users who decide to specify the standard X geometry
application resource, which is pretty useless because width and height
are the same as the rows and cols preferences, and specifying a
window
location will force all the windows to pile on top of one another */
if (geometry == NULL || geometry[0] == '\0')
geometry = GetPrefGeometry();
if (geometry == NULL || geometry[0] == '\0') {
rows = GetPrefRows();
cols = GetPrefCols();
newGeometry[0] = '\0';
} else {
bitmask = XParseGeometry(geometry, &x, &y, &cols, &rows);
if (bitmask == 0)
fprintf(stderr, "Bad window geometry specified: %s\n", geometry);
else {
if (!(bitmask & WidthValue))
cols = GetPrefCols();
if (!(bitmask & HeightValue))
rows = GetPrefRows();
}
CreateGeometryString(newGeometry, x, y, 0, 0,
bitmask & ~(WidthValue | HeightValue));
}
When File-->new is selected NULL is passed as the geometry string so
getUserPref() is called. My guess is this is setting x and y to 0 and thus
nedit ends up stacking the windows on top of each other as the comment
says it will.
Sounds like a nedit problem and not a blackbox one.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428680&aid=610807&group_id=40696
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives: http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]