wake_up() call from init_notification to onNotify
This commit is contained in:
		
							parent
							
								
									e15d918a3c
								
							
						
					
					
						commit
						1ac31d9397
					
				
							
								
								
									
										1
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								dunst.c
									
									
									
									
									
								
							| @ -1271,7 +1271,6 @@ int init_notification(notification * n, int id) | ||||
|         if (print_notifications) | ||||
|                 print_notification(n); | ||||
| 
 | ||||
|         wake_up(); | ||||
|         return n->id; | ||||
| } | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										1
									
								
								dunst.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								dunst.h
									
									
									
									
									
								
							| @ -105,5 +105,6 @@ int close_notification(notification * n, int reason); | ||||
| int close_notification_by_id(int id, int reason); | ||||
| void map_win(void); | ||||
| gboolean run(void *data); | ||||
| void wake_up(void); | ||||
| 
 | ||||
| /* vim: set ts=8 sw=8 tw=0: */ | ||||
|  | ||||
| @ -231,6 +231,7 @@ static void onNotify(GDBusConnection *connection, | ||||
|         n->color_strings[ColBG] = bgcolor; | ||||
| 
 | ||||
|         int id = init_notification(n, replaces_id); | ||||
|         wake_up(); | ||||
| 
 | ||||
|         GVariant *reply = g_variant_new ("(u)", id); | ||||
|         g_dbus_method_invocation_return_value(invocation, reply); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse