Bug 420117 - Emacs continually getting shoved to background
Summary: Emacs continually getting shoved to background
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-15 12:59 UTC by roland
Modified: 2023-09-06 10:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roland 2020-04-15 12:59:06 UTC
SUMMARY
After all of the updates pushed out over the past 3-4 days, Emacs is continually shoved to the background.

STEPS TO REPRODUCE
1. Open Firefox and go to KDE Bugs (or any other page in full screen mode)
2. Open Emacs in same monitor.
3. Use mouse to click Buffers menu

OBSERVED RESULT
Emacs goes behind the browser but buffer dropdown menu appears over your browser. Clicking on Emacs in the bottom bar will not bring it forward. The only way it can become the top window is if you close all other windows.

EXPECTED RESULT
Emacs should have stayed on top. Menu should have dropped down. Life should have been good like it was early last week and the weeks before.


SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Kernel Version: 5.0.0-37-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 23.3 GiB of RAM

ADDITIONAL INFORMATION
Things worked just fine before updates.

Has nothing to do with browser. LibreOffice, KNotes, every other application puts itself on top of Emacs.
Comment 1 Christoph Feck 2020-05-06 22:38:13 UTC
Could you please use 'xprop' in Konsole and click on the Emacs window to get its properties?
Comment 2 Vlad Zahorodnii 2020-05-07 06:38:27 UTC
Hmm, it seems to me like the stacking order of x server and kwin's are out of sync.

Are you able to reproduce this bug with downgraded kwin?
Comment 3 roland 2020-05-07 11:38:21 UTC
roland@roland-HP-EliteDesk-800-G2-SFF:~/COBOL/tui-idx$ xprop
_NET_WM_ICON_GEOMETRY(CARDINAL) = 718, 1046, 168, 32
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 29, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 29, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "abb78924-7486-418c-8620-d672bd9c259f"
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                bitmap id # to use for icon: 0x5802405
                bitmap id # of mask for icon: 0x580240b
                window id # of group leader: 0x5800001
_GTK_THEME_VARIANT(UTF8_STRING) = 
_NET_WM_ICON(CARDINAL) =        Icon (48 x 48):
                                                        
                           ░░░▒▒▒░░░                    
                        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                
                      ░▒▒▒▒░░░░░░░░░▒▒▒▒▒░              
                    ░▒▒▒░░░░░░░░░░░░░░░▒▒▒▒░            
                   ▒▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒           
                 ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒░         
                ░▒▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░        
               ░▒▒░░░░░░░░░░░░░░░       ░▒▒▒▒▒▒▓░       
              ░▒▒░░░░░░░░░░░░░           ░▒▒▒▒▒▒▒       
              ▒▒░░░░░░░░░░░░░░░░░░░░░    ░▒▒▒▒▒▒▒▒      
             ▒▒░░░░░░░░░░░░░░░░░░░░░      ▒▒▒▒▒▒▒▒▒     
            ░▒░░░░░░░░░░░░░░░            ░▒▒▒▒▒▒▒▒▓░    
            ▒▒░░░░░░░░░                  ░▒▒▒▒▒▒▒▒▒▒    
           ░▒░░░░░░░░░                 ░▒▒▒▒▒▒▒▒▒▒▒▓░   
           ▒▒░░░░░░░░         ░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
          ░▒░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓   
          ▒▒░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░  
          ▒▒░░░░░░░░░░░░     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
          ▒▒░░░░░░░░░░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
         ░▒░░░░░░░░░░░▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
         ░▒░░░░░░░░░░▒▒▒▒▒▒▒░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
         ░▒░░░░░░░░░▒▒▒▒▒▒▒░░░░      ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
         ▒▒░░░░░░░▒▒▒▒▒░░             ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
         ▒▒░░░░░░▒▒▒▒░             ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
         ░▒░░░░░▒▒▒░           ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
         ░▒░░░▒▒▒▒░          ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░ 
         ░▒░░▒▒▒▒░         ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
          ▓▒▒▒▒▒▒░        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓  
          ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  
          ▒▒▒▒▒▒▒░       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░  
          ░▒▒▒▒▒▒▒        ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓   
           ▒▒▒▒▒▒▒▒░         ░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
           ░▒▒▒▒▒▒▒▒░                     ░░▒▒▒▒▒▒▒▓░   
            ▒▒▒▒▒▒▒▒▒▒░░                    ░▒▒▒▒▒▒▒    
            ░▒▒▒▒▒▒▒▒▒▒▒▒▒░░                ▒▒▒▒▒▒▓░    
             ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░     ░▒▒▒▒▒▒▓▒     
             ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      ░░▒▒▒▒▒▒▒▒▓      
              ░▓▒▒▒▒▒▒▒▒▒▒▒░░      ░░▒▒▒▒▒▒▒▒▒▒▒▓░      
               ░▓▒▒▒▒▒▒▒▒░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░       
                ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░        
                 ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░         
                  ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒           
                    ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓░            
                     ░▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒              
                        ░▒▓▓▒▒▒▒▒▒▒▓▓▓▒░                
                           ░░▒▒▒▒▒▒░░                   
                                                        


_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 131288371
XdndAware(ATOM) = BITMAP
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1913, 999
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 92274829, 92274830
_NET_WM_USER_TIME(CARDINAL) = 160574813
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x580008c
WM_CLIENT_LEADER(WINDOW): window id # 0x5800001
_NET_WM_PID(CARDINAL) = 12895
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "roland-HP-EliteDesk-800-G2-SFF"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified minimum size: 41 by 45
                program specified resize increment: 9 by 18
                program specified base size: 41 by 45
                window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "emacs25", "Emacs"
WM_ICON_NAME(STRING) = "emacs25@roland-HP-EliteDesk-800-G2-SFF"
_NET_WM_ICON_NAME(UTF8_STRING) = "emacs25@roland-HP-EliteDesk-800-G2-SFF"
WM_NAME(STRING) = "emacs25@roland-HP-EliteDesk-800-G2-SFF"
_NET_WM_NAME(UTF8_STRING) = "emacs25@roland-HP-EliteDesk-800-G2-SFF"
roland@roland-HP-EliteDesk-800-G2-SFF:~/COBOL/tui-idx$
Comment 4 roland 2020-05-07 11:40:13 UTC
(In reply to Vlad Zahorodnii from comment #2)
> Hmm, it seems to me like the stacking order of x server and kwin's are out
> of sync.
> 
> Are you able to reproduce this bug with downgraded kwin?

It wasnt' happening, and then it was. 

I don't know how to "downgrade" kwin nor would I consider breaking my machine for a "test." I'm just reporting the bug.

It should be easy for anyone to install KDE Neon and reproduce this.
Comment 5 David Edmundson 2023-09-06 10:38:06 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.