[ui_x11.c] formatting

This commit is contained in:
Gwenhael Le Moine 2024-05-16 16:41:25 +02:00
parent 976ec1f1cb
commit ca38afdfa8
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -2879,7 +2879,6 @@ int x11_get_event( void )
switch ( ( int )xev.type ) { switch ( ( int )xev.type ) {
case KeyPress: case KeyPress:
release_pending = 0; release_pending = 0;
if ( ( xev.xkey.time - last_release_time ) <= 1 ) { if ( ( xev.xkey.time - last_release_time ) <= 1 ) {
release_pending = 0; release_pending = 0;
@ -2892,7 +2891,6 @@ int x11_get_event( void )
break; break;
case KeyRelease: case KeyRelease:
i = XLookupString( &xev.xkey, buf, bufs, &sym, NULL ); i = XLookupString( &xev.xkey, buf, bufs, &sym, NULL );
first_key = 0; first_key = 0;
release_pending = 1; release_pending = 1;
@ -2901,11 +2899,9 @@ int x11_get_event( void )
break; break;
case NoExpose: case NoExpose:
break; break;
case Expose: case Expose:
if ( xev.xexpose.count == 0 ) { if ( xev.xexpose.count == 0 ) {
if ( xev.xexpose.window == lcd.win ) if ( xev.xexpose.window == lcd.win )
DrawDisp(); DrawDisp();
@ -2922,13 +2918,12 @@ int x11_get_event( void )
} }
} }
break; break;
case UnmapNotify:
case UnmapNotify:
mapped = 0; mapped = 0;
break; break;
case MapNotify: case MapNotify:
if ( !mapped ) { if ( !mapped ) {
mapped = 1; mapped = 1;
x11_update_LCD(); x11_update_LCD();
@ -2937,7 +2932,6 @@ int x11_get_event( void )
break; break;
case ButtonPress: case ButtonPress:
if ( xev.xbutton.subwindow == lcd.win ) { if ( xev.xbutton.subwindow == lcd.win ) {
if ( xev.xbutton.button == Button2 ) { if ( xev.xbutton.button == Button2 ) {
if ( xev.xbutton.subwindow == lcd.win ) { if ( xev.xbutton.subwindow == lcd.win ) {
@ -3316,7 +3310,6 @@ int x11_get_event( void )
break; break;
case ButtonRelease: case ButtonRelease:
first_key = 0; first_key = 0;
if ( xev.xbutton.button == Button1 ) if ( xev.xbutton.button == Button1 )
x11_release_all_keys(); x11_release_all_keys();
@ -3336,7 +3329,6 @@ int x11_get_event( void )
break; break;
case MappingNotify: case MappingNotify:
switch ( xev.xmapping.request ) { switch ( xev.xmapping.request ) {
case MappingModifier: case MappingModifier:
case MappingKeyboard: case MappingKeyboard:
@ -3350,11 +3342,9 @@ int x11_get_event( void )
case EnterNotify: case EnterNotify:
case LeaveNotify: case LeaveNotify:
break; break;
case ClientMessage: case ClientMessage:
cm = ( XClientMessageEvent* )&xev; cm = ( XClientMessageEvent* )&xev;
if ( cm->message_type == wm_protocols ) { if ( cm->message_type == wm_protocols ) {
@ -3365,11 +3355,10 @@ int x11_get_event( void )
} }
break; break;
default:
case KeymapNotify: case KeymapNotify:
case ConfigureNotify: case ConfigureNotify:
case ReparentNotify: case ReparentNotify:
default:
break; break;
} }
} }