Bug 248080 - On a multihead setup, plasma panel max width is equals to the smallest screen width
Summary: On a multihead setup, plasma panel max width is equals to the smallest screen...
Status: CLOSED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: multiscreen (show other bugs)
Version: 4.6.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 20:02 UTC by Luiz Angelo De Luca
Modified: 2014-05-22 18:37 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (470.17 KB, image/jpeg)
2010-08-16 20:15 UTC, Luiz Angelo De Luca
Details
plasma-desktop-appletsrc (47.06 KB, application/octet-stream)
2010-08-16 20:40 UTC, Luiz Angelo De Luca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo De Luca 2010-08-16 20:02:03 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

Hello.

My screen setup is this:

Screen 0: minimum 320 x 200, current 2448 x 1050, maximum 4096 x 4096
DVI-I-1 connected 1680x1050+768+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      59.9*+
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
DVI-I-2 connected 768x1024+0+0 left (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768       60.0*+   75.1     70.1  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  

My main screen is on the right and secondary screen on the left. This left one, a 15' screen, is rotated to left.

When I try to resize a panel on the main screen (21', 1680x1050), my panel is limited to 768px.

Reproducible: Always

Steps to Reproduce:
1) Setup the env like mine
2) try to resize the panel


Actual Results:  
Panel cannot cross the limit of 768px width on a screen with 1680x1050.

Expected Results:  
The same behavior on 4.4. I can resize the panel to the limit of screen width.

OS: Linux (x86_64) release 2.6.34-12-desktop
Compiler: gcc
Comment 1 Luiz Angelo De Luca 2010-08-16 20:15:19 UTC
Created attachment 50625 [details]
Screenshot

This shows how the panel become after trying to resize it. It is in its maximum allowed width.
Comment 2 Luiz Angelo De Luca 2010-08-16 20:40:54 UTC
Created attachment 50627 [details]
plasma-desktop-appletsrc

This is a config with the problem.
Comment 3 Luiz Angelo De Luca 2010-08-16 20:42:46 UTC
I removed the panel and added it again. The new panel does not have the same problem. However, I think that this problem can affect other users that migrate from 4.4 to 4.5.
Comment 4 Dima Ryazanov 2010-08-18 04:19:44 UTC
I deleted all ~/.kde/share/config/plasma* files and restarted KDE. The panel got the correct width; however, as soon as I tried resizing it, the problem came up again.
Comment 5 Dima Ryazanov 2010-08-18 20:40:04 UTC
I tried moving the panel to other edges of the screen, trying to work around the bug. Now, it got stuck in an infinite loop, flickering at the bottom right corner, and causing X to use 90% of the CPU. The whole desktop is unusable now. Restarting plasma doesn't help.

Here's a sample stack trace from plasma-desktop:

#0  0x00007f56ddf29f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f56d3fe829a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f56d3fe9c2c in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f56dcaba8d3 in _XReply (dpy=0x16c58b0, rep=0x7fffbba28ad0, extra=0, discard=0) at ../../src/xcb_io.c:461
#4  0x00007f56dca97697 in XGetWindowProperty (dpy=0x16c58b0, w=<value optimized out>, property=301, offset=0, length=2048, delete=0, req_type=4, 
    actual_type=0x7fffbba28c20, actual_format=0x7fffbba28c2c, nitems=0x7fffbba28c18, bytesafter=0x7fffbba28c10, prop=0x7fffbba28c08)
    at ../../src/GetProp.c:64
#5  0x00007f56dc380b24 in NETWinInfo::update (this=0x7fffbba28c70, dirty_props=<value optimized out>) at ../../kdeui/windowmanagement/netwm.cpp:3951
#6  0x00007f56dc3765da in KWindowSystem::setState (win=29365987, state=1024) at ../../kdeui/windowmanagement/kwindowsystem_x11.cpp:712
#7  0x00007f56de219dd0 in PanelView::checkShadow (this=0x2302340) at ../../../../plasma/desktop/shell/panelview.cpp:473
#8  0x00007f56de21d6f1 in PanelView::qt_metacall (this=0x2302340, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x399b6f0)
    at ./panelview.moc:143
#9  0x00007f56db59387e in QObject::event (this=0x2302340, e=0x7fffbba28940) at kernel/qobject.cpp:1219
#10 0x00007f56da72ad2f in QWidget::event (this=0x2302340, event=0x399b650) at kernel/qwidget.cpp:8616
#11 0x00007f56daaefb06 in QFrame::event (this=0x2302340, e=0x399b650) at widgets/qframe.cpp:557
#12 0x00007f56dab7d32b in QAbstractScrollArea::event (this=0x2302340, e=0x399b650) at widgets/qabstractscrollarea.cpp:996
#13 0x00007f56de219a80 in PanelView::event (this=0x2302340, event=0x399b650) at ../../../../plasma/desktop/shell/panelview.cpp:1507
#14 0x00007f56da6d5cdc in QApplicationPrivate::notify_helper (this=0x16c06f0, receiver=0x2302340, e=0x399b650) at kernel/qapplication.cpp:4389
#15 0x00007f56da6db7cd in QApplication::notify (this=0x16a4a40, receiver=0x2302340, e=0x399b650) at kernel/qapplication.cpp:4270
#16 0x00007f56dc237eb6 in KApplication::notify (this=0x16a4a40, receiver=0x2302340, event=0x399b650) at ../../kdeui/kernel/kapplication.cpp:310
#17 0x00007f56db581a8c in QCoreApplication::notifyInternal (this=0x16a4a40, receiver=0x2302340, event=0x399b650) at kernel/qcoreapplication.cpp:732
#18 0x00007f56db5849b2 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1689080)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1689080) at kernel/qcoreapplication.cpp:1373
#20 0x00007f56db5ae043 in QCoreApplication::sendPostedEvents (s=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#21 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#22 0x00007f56d2aa98c2 in g_main_dispatch (context=0x16c2cc0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#23 IA__g_main_context_dispatch (context=0x16c2cc0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#24 0x00007f56d2aad748 in g_main_context_iterate (context=0x16c2cc0, block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#25 0x00007f56d2aad8fc in IA__g_main_context_iteration (context=0x16c2cc0, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#26 0x00007f56db5adb83 in QEventDispatcherGlib::processEvents (this=0x1688790, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#27 0x00007f56da7877ee in QGuiEventDispatcherGlib::processEvents (this=0x7fffbba28940, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f56db5807b2 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used eithr alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#29 0x00007f56db580b9c in QEventLoop::exec (this=0x7fffbba29b70, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in cnjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#30 0x00007f56db584c4b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#31 0x00007f56de20fd06 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../../plasma/desktop/shell/main.cpp:118
#32 0x00007f56dde6ec4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, 
    init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffbba29f38) at libc-start.c:226
#33 0x00000000004006c9 in _start ()

(That's what I see any time I interrupt it in GDB.)
Comment 6 Dura 2010-09-14 11:39:31 UTC
(In reply to comment #4)
> I deleted all ~/.kde/share/config/plasma* files and restarted KDE. The panel
> got the correct width; however, as soon as I tried resizing it, the problem
> came up again.

Are you able to recompile KDE 4.5.x? If yes can you try to recompile kdebase-workspace with the change I suggest here: https://bugs.kde.org/show_bug.cgi?id=249948#c2 and see if it solves the problem?
Comment 7 Luiz Angelo De Luca 2010-09-22 15:54:24 UTC
I think that recompiling all kde is a little too big task for me. :)
I'll check if I can use the Suse src.rpm package that includes workspace.
Comment 8 Todd 2010-12-11 22:35:16 UTC
I am still having this problem in KDE SC 4.6 Beta 2.
Comment 9 Todd 2011-01-01 20:58:09 UTC
This is still a problem in 4.6 RC 1.
Comment 10 John Layt 2011-02-17 20:20:31 UTC
I can confirm this is an ongoing problem in 4.6.0.  It's most obvious with the panel resizing, but there may be other ways it shows up, e.g. when trying to full screen a flash video it only goes to the size of the smaller screen.
Comment 11 Luiz Angelo De Luca 2011-02-17 21:42:47 UTC
I also confirm the flash fullscreen problem. They might be related.
Comment 12 Andreas Hermann 2011-06-09 23:38:29 UTC
I still can confirm this bug on in 4.6.2. Maximum panel width is
restricted to width of smallest monitor. I have a TwinView setup (2 Monitors) with nvidia driver. However, on my system, this only affects panel on the bottom of the larger screen. Placing the panel on the top of the screen works perfect,
the maximum size will be correct.
Comment 13 Thijs 2012-05-31 07:51:19 UTC
In 4.8.3, I cannot reproduce this anymore. (Nor the full screen video issue, but that's not this bug per se). Can anyone here reproduce on a current version of KDE SC?
Comment 14 Luiz Angelo De Luca 2012-05-31 12:23:00 UTC
I'm away from my office, where I have different screen sizes. I'll return in two weeks. So, I'll keep this at my TODO. As soon as I return, I'll update this bug.