Dumb magic question (/ possibly a bug with dual di...
# magic
w
Dumb magic question (/ possibly a bug with dual displays and openGL?): How do I change the width of the toolbar with the layers? The toolbar is going off the bottom of my screen so I cant toggle some of the layers on or off. Right now its only two columns. But if it was 3 columns it would fit the vertical dimensions of my screen
Ah, yes. This seems to be somewhat of a bug. My second smaller monitor is vertical and magic seems to be using that monitor to set the width of the bar. But the other monitor is my primary monitor so when Magic starts it displays on that monitor and the toolbar goes off screen
t
@Weston Braun: The toolbar height is set from
wrapper.tcl
line 893:
Copy code
set winheight [expr {[winfo height ${framename}] - \
                [winfo height ${framename}.titlebar]}]
I would think that the height of the layout window is pretty obvious, so this seems like it must be some obscure Tcl/Tk problem. The Tcl code here could be written to check some environment variable, say, like
$LAYOUT_ICON_COLS
, and set the number of columns to that up front (at wrapper.tcl line 861):
Copy code
set ncols 0
if {[info exists ::env(LAYOUT_ICON_COLS)]} {set ncols [expr $::env(LAYOUT_ICON_COLS) - 1]}
This is usually a window manager problem; the test for how many icons can fit in the height of the window requires generating the icon column and querying the height of it from the window manager. If the window manager doesn't map the window in response to an "update idletasks" command in Tcl, then the window manager can report an out-of-date value and screw up the measurement.
w
Thats a TCL command, so I should be able to revise the width after boot via the Magic command prompt?
I think this may be a new issue. I have much the same monitor and computer setup I had when I was doing all my OpenPMIC work last year and dont remember this issue
trying to remember. I might have had my second monitor on the right side of the main monitor instead of the left?
or I might have been running at a higher resolution. Perhaps it assumes that the higher resolution monitor is the main monitor or something
I will play with the TCL commands. Seems like I should be able to fix it after Magic launches
t
Things having to do with the window can be fixed after magic launches, but often can't be made to change the existing window; sometimes you just have to open a new window for whatever it is that you're trying to change to take effect.