This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Solved]Disable panel showing when covered by another window

Tags: None
(comma "," separated)
User avatar
codestation
Registered Member
Posts
4
Karma
0
OS
Hi,

I have put a small superior panel with the yaWP plasmoid added so it can be in compact mode (the normal plasmoid is too big for me), then changed the panel properties so it can be covered by other windows. Works great except when i move the cursor to the border of the panel covered by the window then it shows up. Is very annoying when i try to change tabs in chromium then the panel appears and blocks me >:( .

Is that the intended behaviour or a bug? I know that is intended when the panel is hidden, but it must happen too when the panel is covered by another window? Is there a way to disable that? (i dont care if i have to modify the source code) or at least force the plasmoid into panel mode so i can get rid of the superior panel.

Sorry for my english and thanks in advance.

Last edited by codestation on Sun Sep 26, 2010 3:10 am, edited 1 time in total.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
I'm seeing this as well, but I don't know if it is intended behavior or not.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is likely expected behaviour I believe.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
codestation
Registered Member
Posts
4
Karma
0
OS
bcooksley wrote:This is likely expected behaviour I believe.


Thanks for the indirect help ;) , it gave me an idea: if is the expected behaviour then probably the code must be near the autohide one, so with that (and grep + free time), i found and patched the code that handles the visibility in that configuration. Ah, the wonders of open source ;D

The patch for those interested:
Code: Select all
--- plasma/desktop/shell/panelview.cpp.orig   2010-09-25 22:05:59.666999898 -0430
+++ plasma/desktop/shell/panelview.cpp   2010-09-25 22:08:49.384000054 -0430
@@ -1051,7 +1051,7 @@
     containment()->closeToolBox();
     updateStruts();
 
-    if (m_visibilityMode == LetWindowsCover || m_visibilityMode == AutoHide) {
+    if (m_visibilityMode == AutoHide) {
         hideIfNotInUse();
     }
 }
@@ -1381,7 +1381,7 @@
     }
 
     //non-hiding panels stop here
-    if (m_visibilityMode == NormalPanel || m_visibilityMode == WindowsGoBelow) {
+    if (m_visibilityMode != AutoHide) {
         return;
     }
 


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]