Wireshark-bugs: [Wireshark-bugs] [Bug 3034] Wireshark hides under Taskbar

Date: Mon, 8 Oct 2012 08:56:31 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3034

kproth@xxxxxxxxxxxxxxxxxxxxx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kproth@xxxxxxxxxxxxxxxxxxxx
                   |                            |m

--- Comment #5 from kproth@xxxxxxxxxxxxxxxxxxxxx 2012-10-08 08:56:31 PDT ---
I ran into this issue while validating a recent change committed against bug
553.  I put some potentially relevant comments on that bug (comment 55), and
will copy them here as well:

--------------------

I noticed that [the new logic for re-positioning to keep the
upper-left corner visible] is not taking the taskbar into
account.  If I place my taskbar at the top of the screen, wireshark's window
(including the entire title bar) can end up hidden by the M$ Windows taskbar.  

To reproduce on an XP SP3 system (probably doesn't have to be multi-monitor):

  1 - edit the recent_common file in the user's wireshark folder, and set
gui.geometry_main_y to a value larger than the bottom edge of the desktop (i.e.
set it to 1100 if your screen is 1280x1024).

  2 - move the M$ windows taskbar to the top edge of the screen

  3 - launch wireshark

  4 - observe that the resulting wireshark window's title bar is now hiding
behind the taskbar.

I'd attempt to fix it myself, but I don't have a development environment setup,
and I have no experience developing Gtk-based UI code...  I did find a post
from Gnome, that appears to have dealt with a similar issue in their Gtk-based
code: 
https://mail.gnome.org/archives/commits-list/2011-November/msg00521.html.  You
might also look at this post:
http://ntcoder.com/bab/2007/06/15/get-work-area-rectangle-along-with-main-rectangle-of-desktop/.
 The basic change is that you'd need to find a way to access the monitor
geometry that uses the "rcWork" structure from the underlying GetMonitorInfo
call, rather than the "rcMonitor" structure.  I don't know, however, if there's
a good way to do that while still following the normal coding constructs used
in the wireshark code-base.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.