"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/aguix/awindow.cc" between
worker-4.7.0.tar.bz2 and worker-4.8.0.tar.bz2

About: Worker is a file manager for the X Window System with the classical two panel interface.

awindow.cc  (worker-4.7.0.tar.bz2):awindow.cc  (worker-4.8.0.tar.bz2)
/* awindow.cc /* awindow.cc
* This file belongs to Worker, a file manager for UN*X/X11. * This file belongs to Worker, a file manager for UN*X/X11.
* Copyright (C) 2001-2020 Ralf Hoffmann. * Copyright (C) 2001-2021 Ralf Hoffmann.
* You can contact me at: ralf@boomerangsworld.de * You can contact me at: ralf@boomerangsworld.de
* or http://www.boomerangsworld.de/worker * or http://www.boomerangsworld.de/worker
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 337 skipping to change at line 337
case FocusIn: case FocusIn:
#ifdef USE_XIM #ifdef USE_XIM
if ( inputcontext != NULL ) { if ( inputcontext != NULL ) {
if ( msg->window == win ) { if ( msg->window == win ) {
XSetICFocus( inputcontext ); XSetICFocus( inputcontext );
} }
} }
#endif #endif
if ( ( getForbidInput() == true ) && ( conLock == false ) ) return return value; if ( ( getForbidInput() == true ) && ( conLock == false ) ) return return value;
break; break;
case FocusOut: case FocusOut:
#ifdef USE_XIM #ifdef USE_XIM
if ( inputcontext != NULL ) { if ( inputcontext != NULL ) {
if ( msg->window == win ) { if ( msg->window == win ) {
XUnsetICFocus( inputcontext ); XUnsetICFocus( inputcontext );
} }
} }
#endif #endif
if ( ( getForbidInput() == true ) && ( conLock == false ) ) return return _aguix->closeBubbleHelp( this );
value;
break; if ( ( getForbidInput() == true ) && ( conLock == false ) ) return r
eturnvalue;
break;
} }
if(msg->window==win) { if(msg->window==win) {
if(msg->type==ConfigureNotify) { if(msg->type==ConfigureNotify) {
if ( ( msg->width != msgW ) || ( msg->height != msgH ) ) { if ( ( msg->width != msgW ) || ( msg->height != msgH ) ) {
msgW = msg->width; msgW = msg->width;
msgH = msg->height; msgH = msg->height;
sizeChanged( msg->width, msg->height, false ); sizeChanged( msg->width, msg->height, false );
} }
} }
skipping to change at line 1167 skipping to change at line 1169
#endif #endif
#ifdef USE_XIM #ifdef USE_XIM
closeXIC(); closeXIC();
#endif #endif
if ( win != 0 ) { if ( win != 0 ) {
XDestroyWindow( dsp, win ); XDestroyWindow( dsp, win );
win = 0; win = 0;
} }
_aguix->Flush(); _aguix->Flush();
// to avoid a possible bug in xfw4
// (https://gitlab.xfce.org/xfce/xfwm4/-/issues/514) I call XSync
// here. AWindows are not opened/closed that often so it should be fine.
_aguix->xSync();
if ( m_size_hints ) { if ( m_size_hints ) {
XFree( m_size_hints ); XFree( m_size_hints );
m_size_hints = NULL; m_size_hints = NULL;
} }
} }
onScreen = false; onScreen = false;
_title = ""; _title = "";
Widget::doDestroyStuff(); Widget::doDestroyStuff();
} }
 End of changes. 5 change blocks. 
10 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)